Topic-icon How to change the message to Chinese

Active Subscriptions:

None
13 years 11 months ago - 13 years 11 months ago #3714 by mwong
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]
Last edit: 13 years 11 months ago by alzander.
The topic has been locked.
Support Specialist
13 years 11 months ago #3724 by alzander
I would suggest trying to modify the php file directly. The line you're looking for is line 80 of forcepasswordchange.php:
$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:
$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.
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #3729 by mwong
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.
The topic has been locked.