28, May 2012

how to translate to Portuguese? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: how to translate to Portuguese?
« previous next »
Pages: [1] Print

Author Topic: how to translate to Portuguese?  (Read 1257 times)
Raped By Google
*
Gender: Male
Posts: 27
206 credits
Members referred : 0

PPC 4 Real Estate


« on: Feb 25, 2007, 08:38:16 pm »

I translated all the messages in access_user_class.php and  and changed the case at the beginning of them to case "pt":

I added "pt" to the array in ext_user_profile.php like this
   var $avail_lang = array("nl", "de", "en", "fr", "pt");
so now "pt" shows up in the drop down menu of the update user profile page. The setting  is saved now in the db so that it gives me error messages in Portuguese also (on the update profile page).

So it is saving the data about the new language but I am getting two error messages when I tell the page to update -
Notice: Undefined offset: 1 in /home/bungeebo/public_html/bungee_jumpers/access_user_class.php on line 617

Notice: Undefined offset: 2 in /home/bungeebo/public_html/bungee_jumpers/access_user_class.php on line 617




Here is one of the messages related to time - translated (maybe it is that) -
$msg[40] = "havia um registo novo do usuário no ".date("Y-m-d").":\r\n\r\nClick aqui para incorporar o admin page:\r\n\r\n".$host.$this->admin_page."?login_id=".$this->id;

What is causing the error messages? Apart from the messages everything seems to be working fine. But I also vaguely remember this error showing up in the past but since I don't use the profile I may have just ignored the problem. So maybe the error messages is from something else I did?

I did the translation using Babelfish but I have a Brazilian friend that speaks pretty good English so she will be able to correct the flaws in the translation. Would you want it when it is done?


Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Feb 25, 2007, 09:26:32 pm »

is this row 617?

$msg[40] = "havia um registo novo do usuário no ".date("Y-m-d").":\r\n\r\nClick aqui para incorporar o admin page:\r\n\r\n".$host.$this->admin_page."?login_id=".$this->id;

if not show me this row...

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6108
Tags : language translation Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: how to translate to Portuguese?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 05:14:48 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.