Page 1 of 1
How to change to another language?
Posted: Mon Aug 06, 2012 1:59 am
by vinceyang
Hi all,
I want to change the language to Traditional Chinese(zh_TW)(include frontend and administration).
I'd spent few days to solve this issue.
The doc link
http://docs.cmsmadesimple.org/customizi ... ge-strings
==============
The initial administration language folder like

- init folder list in admin
- cmsms_001.png (6.38 KiB) Viewed 3037 times
If I replace the en_US folder to zh_TW, right?

- modify folder
- cmsms_002.png (6.2 KiB) Viewed 3037 times
But, the "--Add Me - xxxxx --" tag was showing

- --Add Me - XXXXX --
It's meaning that cannot found lang parameter.
How can I do ?
Thanks!
Re: How to change to another language?
Posted: Mon Aug 06, 2012 7:05 am
by uniqu3
There is no reason of replacing any files anywhere. There is a reason why languages are delivered in a manner of /lang/en_US.php and lang/ext/some_OTHER-LANG.php
You can easily switch your language in "Site Admin -> Global Settings" or for your user profile under "My Preferences -> User Preferences"
Re: How to change to another language?
Posted: Mon Aug 06, 2012 1:19 pm
by vinceyang
uniqu3 wrote:There is no reason of replacing any files anywhere. There is a reason why languages are delivered in a manner of /lang/en_US.php and lang/ext/some_OTHER-LANG.php
You can easily switch your language in "Site Admin -> Global Settings" or for your user profile under "My Preferences -> User Preferences"
Thanks for your reply. I got it.
I have another questions.
At frontend , where are these lang files locate?
(1.Previous page , 2.You are here, 3.Month in News)

- frontend
I found the parameter Previous page/Next page at lib/lang/cms_selflink/en_US.php

- lib folder lang
- cmsms_011.png (11.15 KiB) Viewed 3004 times
But cannot find ext/zh_TW.php, so I created it and modified them

- modified
- cmsms_013.png (3.66 KiB) Viewed 3004 times
The result
Next page is OK , but
Previous page is not OK (Please ref. next Post)
Re: How to change to another language?
Posted: Mon Aug 06, 2012 1:22 pm
by vinceyang
The result as

- result
- cmsms_014.png (3.62 KiB) Viewed 3004 times
Re: How to change to another language?
Posted: Mon Aug 06, 2012 2:09 pm
by uniqu3
NCleanGrey is using:
Code: Select all
{cms_selflink dir="previous" label="Previous page: "}
So you can change text inside label='' to whatever you need.
Obviously translations aren't up to date, that's why some of language strings are missing, you could apply to
http://dev.cmsmadesimple.org/projects/trad-chinese and help translating, if you got some spair time

Re: How to change to another language?
Posted: Mon Aug 06, 2012 3:07 pm
by vinceyang
Thanks for your reply.
I had made a request and waiting for response.
Re: How to change to another language?
Posted: Tue Aug 07, 2012 7:59 am
by vinceyang
Does anyone know how to change the long/short month name?
Re: How to change to another language?
Posted: Tue Aug 07, 2012 8:59 am
by Jean le Chauve
Perhaps this work for you : config.php
$config['locale'] = 'zh_TW.utf8';
Re: How to change to another language?
Posted: Wed Aug 08, 2012 1:04 pm
by vinceyang
Jean le Chauve wrote:Perhaps this work for you : config.php
$config['locale'] = 'zh_TW.utf8';
Yes! It's a good solution.
I got it.
Thanks for your suggestion.

- month name for zh_TW utf-8
- cmsms_017.png (4.03 KiB) Viewed 2905 times

- admin modify date for zh_TW utf-8
- cmsms_018.png (2.71 KiB) Viewed 2905 times
Do you have the translation suggestion for "You are here"( and "Previous page")?