Hi,
I need urgent help.
I completed the PO file of the language 'fa.po' and compiled it to 'fa.mo' .
I have created locale/fa/LC_MESSAGES directory, and saved my 'fa.mo' file in that folder with the name of 'themes_matrix.mo' for my matrix theme.
I also added the following lines to 'GalleryTranslator.class' in MODULES/CORE/CLASSES folder :
/* Persian */
$supportedLanguages['fa']['IR']['description'] =
'Persian';
$supportedLanguages['fa']['IR']['right-to-left'] = true;
$defaultCountry['fa'] = 'IR';
NOTE that the language name has been added to my Languages combo box but when I change to that language it seems that it does not work. nothing will be changed even I try to logout and again login!
The direction of my Gallery has been changed but not the words !!!
Should I translate other .PO file in modules\core\po directory to my language and save it in that directory also?
how about exif/po directory ?
what are these files used for?
where is the problem?
if someone help me I will appreciate him.
Regards,
Jalal
Posts: 6818
Hello Jalal,
the .mo file needs to be named like the module, or the theme etc.
Have a look at the .mo of other languages and you will see how you have to name it.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 6
Hi Tim_j,
Thanks but I know how to name them.
right now I have translated the Comment section of the Gallery to Persian. and it works well. the address is http://gallery.comet.ir/
in module directory of the Gallery installation folder there are many folders and all of them has some PO and MO files for them, I want to know If I need to translate all of them and create a corresponding folder for all of them?
( sorry for my bad english ) :p
thanks.
Posts: 6818
Hello,
yes, for every part you want to be translated you need to do the same procedure.
I dont know if your english is bad ;) mine is too
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 32509
nioton
that's excellent! can't wait to see you submit some fa.po files to the translation tracker such that we can include it in Gallery 2.2!
btw: i'd start by translating the most important strings of the core module. that's what people see the most.
maybe also the register module and the install/ wizard too.
i know it takes time, but you don't have to do it all at once.
happy translating! it's appreciated!