How to add new language ( newly created .mo / .po)

tohave

Joined: 2005-12-11
Posts: 9
Posted: Thu, 2005-12-15 08:17

Hi,

I am working on a new language file for my country Azerbaijan. It uses right to left alphabet. I was wondering how can I add it to the list which allows users to choose between different languages????

Do I have to modify any file in Gallery? or it is possible from Admin CP?
Also I have translated the language file of Classic theme! how can I make it active for users????

many thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-15 08:21

please read:
http://codex.gallery2.org/index.php/Gallery2:Translations

@right-to-left
you'll have to add your language to modules/core/classes/GalleryTranslator.class anyway
there, see the example
/* Arabic */
$supportedLanguages['ar']['SA']['description'] =
'العربية';
$supportedLanguages['ar']['SA']['right-to-left'] = true;
$defaultCountry['ar'] = 'SA';

on how to specify right-to-left languages.

moving the topic to the translations forum.

 
tohave

Joined: 2005-12-11
Posts: 9
Posted: Thu, 2005-12-15 14:25

Hi,

I added the code(to point my language Azeri آذری) into class file. It changes the direction of page but does not show my language!! Actually it is not finnished yet but I have completed rejistration and the them .mo file in local. I have made a folder az_AZ and the language file inside it.

the address for my gallery is:
http://www.birolmali.com/sen