Page 1 of 1

Translations and user registration

PostPosted: Wed Mar 16, 2011 5:29 am
by Hello
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!

Re: Translations and user registration

PostPosted: Thu Mar 17, 2011 11:53 am
by shannah
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

Re: Translations and user registration

PostPosted: Thu Mar 24, 2011 4:17 am
by Hello
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!

Re: Translations and user registration

PostPosted: Sun Mar 27, 2011 11:15 am
by Hello
Can somebody please help me? I still haven't figured out how to solve these problems.. :?

Thanks :)

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 9:49 am
by Hello
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.

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 10:35 am
by shannah
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

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 10:48 am
by Hello
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?

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 10:56 am
by shannah
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

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 11:19 am
by Hello
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..

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 11:27 am
by shannah
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.

Re: Translations and user registration

PostPosted: Mon Mar 28, 2011 12:47 pm
by Hello
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.

Re: Translations and user registration

PostPosted: Tue Mar 29, 2011 12:15 am
by Hello
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:

Re: Translations and user registration

PostPosted: Tue Mar 29, 2011 12:35 pm
by shannah
This solution should be fine. It is still puzzling to me why it wasn't picking these values up from the auction settings.

Re: Translations and user registration

PostPosted: Thu Mar 31, 2011 1:38 am
by Hello
All right, thanks for your help!