[G2] HELP : Language Files .PO and .MO are created But Not Work ...

nioton

Joined: 2006-10-31
Posts: 6
Posted: Wed, 2006-11-01 00:03

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

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-11-01 21:06

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.

 
nioton

Joined: 2006-10-31
Posts: 6
Posted: Fri, 2006-11-03 15:20

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.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2006-11-03 16:14

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.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-11-18 03:58

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!