Translations and user registration

A place to discuss and receive support for the Web Auction application.

Translations and user registration

Postby Hello » Wed Mar 16, 2011 5:29 am

Hi,

I just downloaded Web Auction and I have a some questions...

I'm translating the whole auction, and can't figure out how to translate the following:
- Title, Department etc. on the register page
- "The Current Time is" (on every page on the upper right side)
- "Current Record" (when viewing an item)
- "Logged in as" (upper right side of the page)
- "Please login to access this section of the site", "username" and "password" (the login page)

Can users see the details of other users (email, firstname and lastname etc.) ? And how can I make sure the Title and Department fields are required fields on the register page?

Is there a summary somewhere of the highest bidders on day x? (For example, on april 1, 10 auctions are closing. I want a summary of the 10 highest bidders with their phone numbers listed)

Thanks in advance!
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby shannah » Thu Mar 17, 2011 11:53 am

Some of these are field labels and descriptions. See this tutorial
http://xataface.com/documentation/tutor ... taface-0.6
particularly the section on translating field labels and descriptions for info on this.


Most of these other terms (e.g. please login) are contained in the xataface language files (e.g. dataface/lang/en.ini).
http://weblite.ca/svn/dataface/core/trunk/lang/en.ini

You can override these by adding options with the same key into your application's language file.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Translations and user registration

Postby Hello » Thu Mar 24, 2011 4:17 am

Thanks, that worked! Except I can't find a way to translate "Current Record" (when viewing an item). Where can I change this?

Also, sorry to bother you, I have one more questions:

- emails with outbid and winner notifications are sent from the wrong emailaddress. I already put the right emailaddress at the conf.ini file (twice) and "auction settings" (twice), but still the notifications are being send from the wrong address. Am I doing something wrong?

Thank you in advance!
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby Hello » Sun Mar 27, 2011 11:15 am

Can somebody please help me? I still haven't figured out how to solve these problems.. :?

Thanks :)
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby Hello » Mon Mar 28, 2011 9:49 am

I just tried http://xataface.com/wiki/getRegistrationActivationEmailInfo.

That helps, the registration e-mail is now sent from the right address. But the outbid and winner notifications are still from the wrong email address (emails are sent from the default email address of my website, instead of auction@mywebsite.com)

I would be very grateful if someone could help me.
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby shannah » Mon Mar 28, 2011 10:35 am

You should be able to set this just in the web auction settings form. The notification from address. This is where it gets the from address for the email.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Translations and user registration

Postby Hello » Mon Mar 28, 2011 10:48 am

shannah wrote:You should be able to set this just in the web auction settings form. The notification from address. This is where it gets the from address for the email.

-Steve


Thank you for your reply. But that's the problem, it doesnt work. It still sends the emails from my default emailaddress, instead of my auction emailaddress. Is there an other way to solve this problem?
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby shannah » Mon Mar 28, 2011 10:56 am

Strange. If you want to tinker, the function that sends all the email is the sendEmail() function in the include/functions.inc.php file.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Translations and user registration

Postby Hello » Mon Mar 28, 2011 11:19 am

Thank you for your reply.

Right now it ( include/functions.inc.php sendEmail() ) says:

function sendEmail($to,$subject,$msg){
$mail_headers = 'From: '.getConf('notification_from_address') . "\r\n" .
'Reply-To: '.getConf('notification_from_address') . "\r\n" ;
return mail($to, $app->_conf['title'].' - '.$subject, $msg, $mail_headers);
}


Where exactly can I put the right email address? I'm sorry for the hassle, I'm not very familiar with these codes..
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby shannah » Mon Mar 28, 2011 11:27 am

Sorry... if you're not a PHP guy then maybe this isn't the best route ...
What value do you have set in the notification from address in the auction form? Perhaps there is a character that it doesn't like.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Translations and user registration

Postby Hello » Mon Mar 28, 2011 12:47 pm

shannah wrote:Sorry... if you're not a PHP guy then maybe this isn't the best route ...
What value do you have set in the notification from address in the auction form? Perhaps there is a character that it doesn't like.

I know a bit about PHP, but not much.
Do you mean at the auction settings --> "Notification from address"-form? I only entered my auction email address . No other characters.
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby Hello » Tue Mar 29, 2011 12:15 am

Hi,

I think I solved the problem!

I made the following changes in the include/functions.inc.php file:
I changed the $mail_headers at sendEmail(), sendAdminEmail() and notifyHighBidder() to:

$mail_headers = 'From: auction@mywebsite.com' . "\r\n" .
'Reply-To: auction@mywebsite.com' . "\r\n" ;


Now the outbid notifications and winning bid notifications to the user and administrator are also sent from the right address.
Steve, do you think this solution is ok? Can these changes cause any errors or something? :oops:
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am

Re: Translations and user registration

Postby shannah » Tue Mar 29, 2011 12:35 pm

This solution should be fine. It is still puzzling to me why it wasn't picking these values up from the auction settings.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Translations and user registration

Postby Hello » Thu Mar 31, 2011 1:38 am

All right, thanks for your help!
Hello
 
Posts: 10
Joined: Wed Mar 16, 2011 5:25 am


Return to Web Auction Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved