Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Post your requirements here «  

How to translation?

ma, zi -- on Oct. 24 2005, from ShangHai,China
I want to translations YACS into Chinese but I don't konw how to do it.Who can tell me how to translation
Bernard
avatar
from nearby-an-airport
Associate, 6728 posts

on Oct. 25 2005


To translate YACS you have to edit every PHP script that displays something.

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.

Rate this page
Posted by Rerbin on Oct. 24 2005, commented by Bernard on Oct. 24 2005, (popular)