How to change to another language?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
vinceyang
Forum Members
Forum Members
Posts: 22
Joined: Mon Aug 06, 2012 1:24 am

How to change to another language?

Post 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
init folder list in admin
cmsms_001.png (6.38 KiB) Viewed 3035 times
If I replace the en_US folder to zh_TW, right?
modify folder
modify folder
cmsms_002.png (6.2 KiB) Viewed 3035 times
But, the "--Add Me - xxxxx --" tag was showing
--Add Me - XXXXX --
--Add Me - XXXXX --
It's meaning that cannot found lang parameter.

How can I do ?

Thanks!
uniqu3

Re: How to change to another language?

Post 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"
vinceyang
Forum Members
Forum Members
Posts: 22
Joined: Mon Aug 06, 2012 1:24 am

Re: How to change to another language?

Post 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
frontend
I found the parameter Previous page/Next page at lib/lang/cms_selflink/en_US.php
lib folder lang
lib folder lang
cmsms_011.png (11.15 KiB) Viewed 3002 times
But cannot find ext/zh_TW.php, so I created it and modified them
modified
modified
cmsms_013.png (3.66 KiB) Viewed 3002 times
The result
Next page is OK , but
Previous page is not OK (Please ref. next Post)
vinceyang
Forum Members
Forum Members
Posts: 22
Joined: Mon Aug 06, 2012 1:24 am

Re: How to change to another language?

Post by vinceyang »

The result as
result
result
cmsms_014.png (3.62 KiB) Viewed 3002 times
uniqu3

Re: How to change to another language?

Post 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 ;)
vinceyang
Forum Members
Forum Members
Posts: 22
Joined: Mon Aug 06, 2012 1:24 am

Re: How to change to another language?

Post by vinceyang »

Thanks for your reply.
I had made a request and waiting for response.
vinceyang
Forum Members
Forum Members
Posts: 22
Joined: Mon Aug 06, 2012 1:24 am

Re: How to change to another language?

Post by vinceyang »

Does anyone know how to change the long/short month name?
Attachments
modified date showed at admin panel
modified date showed at admin panel
cmsms_016.png (5.05 KiB) Viewed 2972 times
News module
News module
cmsms_015.png (12.51 KiB) Viewed 2972 times
Jean le Chauve

Re: How to change to another language?

Post by Jean le Chauve »

Perhaps this work for you : config.php
$config['locale'] = 'zh_TW.utf8';
vinceyang
Forum Members
Forum Members
Posts: 22
Joined: Mon Aug 06, 2012 1:24 am

Re: How to change to another language?

Post 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
month name for zh_TW utf-8
cmsms_017.png (4.03 KiB) Viewed 2903 times
admin modify date for   zh_TW utf-8
admin modify date for zh_TW utf-8
cmsms_018.png (2.71 KiB) Viewed 2903 times
Do you have the translation suggestion for "You are here"( and "Previous page")?
Locked

Return to “[locked] Installation, Setup and Upgrade”