Translating Omnistar Drive
If you need to translate Omnistar Drive to a new language
then you should translate Omnistar Drive before you install
the software.
There is lang.php file inside the dm/lib folder which
contains the array
of the languages. By default there are 2 language i.e.
english-iso-8859-1
and russian-windows-1251. The attributes of array is:
'name' => 'english-iso-8859-1',
'charset' => 'latin1',
'collation' => 'latin1_swedish_ci',
'codepage' => 'iso-8859-1',
The name attribute will appear in the dropdown list while
you install the DM
application if you select english-iso-8859-1, it will
take the charset as
"latin1" and collation as "'latin1_swedish_ci'"
which are defined in the
array. If you want any other language you have to add
new element (3rd) in
the array. For example: The array
0 => array(
'name' => 'english-iso-8859-1',
'charset' => 'latin1',
'collation' => 'latin1_swedish_ci',
'codepage' => 'iso-8859-1',
),
1 => array(
'name' => 'russian-windows-1251',
'charset' => 'cp1251',
'collation' => 'cp1251_general_cs',
'codepage' => 'windows-1251',
)
Can become (If you are adding third language):
0 => array(
'name' => 'english-iso-8859-1',
'charset' => 'latin1',
'collation' => 'latin1_swedish_ci',
'codepage' => 'iso-8859-1',
),
1 => array(
'name' => 'russian-windows-1251',
'charset' => 'cp1251',
'collation' => 'cp1251_general_cs',
'codepage' => 'windows-1251',
),
2 => array(
'name' => 'greek',
'charset' => 'greek',
'collation' => 'greek_general_ci',
'codepage' => ' iso-8859-7',
)
2.
In the directory:
/dm/config/_lang
there is a file:
english-iso-8859-1.inc.php
you should copy this file and call it whatever you called
the array in step 1.
For example if in step 1 you had:
'name' => 'english-iso-8859-1',
then the name of this file should be:
“english.iso-8559-1”
then after you backup this file, go ahead and translate
this file.
3. Install the software and choose your new language.