How to change the message to Chinese

How to change the message to Chinese

I would like to localize the message "You must update your password before continuing to use the site." to Chinese. I tried to update the xml file, but it doesn't work. It seems that unicode character is not allowed in "textarea" typo. I s there a work around?

Michael

[Mod edit: Added subject to post]

Edited by: alzander - May-16-10 22:21:01
mwong
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to change the message to Chinese

I would suggest trying to modify the php file directly.  The line you're looking for is line 80 of forcepasswordchange.php:

Code:

$app->redirect(

  "index.php?option=".$editProfileOption."&view=".$editProfileView."&layout=".$editProfileLayout,
  $this->params->get("message", "You must update your password before continuing to use the site.")
);

Change it to:

Code:

$app->redirect(

  "index.php?option=".$editProfileOption."&view=".$editProfileView."&layout=".$editProfileLayout,
  "YOUR MESSAGE HERE"
);

That should fix your issue, and hopefully accept the language formatting you need.  We'll take note of language issues with textboxes in the future so that we hopefully avoid this problem.  I think language files would not have this issue, but they take a little more effort to configure for some users.

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23658 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to change the message to Chinese

Thanks for your prompt reply. I tried the code. it works with English text, but doesn't work with Chinese text (though no syntax error). Please refer to the screen shots. You can test with this Chinese text "請更改你的密碼!".

Thanks.

mwong
useravatar
Offline
2 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11405
Total Polls:
0
Total Posts:
48070
Posts today:
3
User Info
 
Total Users:
47234
Newest User:
jrucker
Members Online:
0
Guests Online:
1204

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program