Community « Discussion forum « Post your requirements here « How to translation? «
Comment: How to translation?
To translate YACS you have to edit every PHP script that displays something.
You will find snippets like the following one:
To add a new language, for example Chinese, you will have to use the 2-letter ISO code like this:
The advantage of this approach is that translation can be progressive.
Then I will have to add the ability to select zh as the general language for a site in the Control Panel, but his is very easy compared to the translation itself.
I am very excited about the idea of translating YACS, so do not hesitate to ask for more.
Thank you for your interest into YACS.
You will find snippets like the following one:
// the title of the page
$local['title_en'] = 'All servers';
$local['title_fr'] = 'Tous les serveurs';
$context['page_title'] = get_local('title');
To add a new language, for example Chinese, you will have to use the 2-letter ISO code like this:
// the title of the page
$local['title_en'] = 'All servers';
$local['title_fr'] = 'Tous les serveurs';
$local['title_zh'] = '* the string in Chinese *';
$context['page_title'] = get_local('title');
The advantage of this approach is that translation can be progressive.
Then I will have to add the ability to select zh as the general language for a site in the Control Panel, but his is very easy compared to the translation itself.
I am very excited about the idea of translating YACS, so do not hesitate to ask for more.
Thank you for your interest into YACS.
by Bernard on Oct. 25 2005
