Translate

Top  Previous 

Translating Omnistar Live

 

1.

 

There is a directory called lib/langpack.  You should backup the file name english.php

It is important to backup this file in case you make a mistake.

 

Once you backup this file, call it another name, like francais.php and then translate every string in the file.

 

Note:  In the file you should set correct locale settings. Each variable has a comments:  Here are some of the comments:

 

$charset -- this affects html pages rendering. Choose preferred encoding for your language. The list of character encodings is available in your browser (View -> Character Encoding)

 

$locale --  affects representation of dates, month and weekday names, money symbols, string operations in PHP. The list of the locales is under /usr/share/locale on most linux'es.

 

$mysql_charset -- are allowed in strings and mysql identifiers, also affects sort order and string operations in MySQL. List of charsets is available by mysql command

 

mysql> show charset;

 

$mysql_collation -- Affects string sort order in MySQL. Some charsets can have few different sort rules, for example cyrillic charset cp1251 have sort rules for russian, ukrainian, belarussian, bulgarian languages. Similarly latin1 charset have sort rules for german, english, french languages etc. List of collations can be obtained by

 

mysql> show collation;

 

--------------------------------

 

Use the right variables for dates:

 

There are also few variables for date formats. They have different names in different products, but the meaning is the same.

 

$tz_dformat_php="%m-%d-%Y";     // PHP date format. All dates which are generated

$tz_tformat_php="%H:%M %p";     // by PHP scripts will have this format.

See http://www.php.net/manual/en/function.strftime.php about available format modifiers.

 

$tz_dformat_sql="%m-%d-%Y";     // SQL date format. Affects all dates

$tz_tformat_sql=" %H:%i %p";    // which are generated by MySQL server

See http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date_format for available format modifiers

 

2.

 

Now when you install the program on the install page, there is an option for you to select the language.  

 

If you have already installed the program then login, and go to the settings page and choose the correct language.