Re: How to translate Classipress in another language
Good question Yann. I will be writing a blog post about this later but here are the basics.
-Download and install
poEdit
-Take the .po file from the latest ClassiPress folder (v2.8.2 or greater).
-Open that file with poEdit. You'll need to learn how poEdit works.
-Start the translation and periodically save the file as a .po
-When you are finished translating, go to File => Save as (filename.po) and after saving it as a .po, it will also automatically generate the .mo file.
The naming of your .mo files is very important and must match the desired locale. The naming convention is based on the language code (e.g. pt for Portuguese) followed by the country code (e.g. _BR for Brazil). So, the Brazilian Portuguese file would be called pt_BR.mo. Complete lists of
language codes and
country codes.
-Put the .mo file in your classipress theme directory.
-Update your
wp-config.php file with the correct language codes like the example below. If you don't have a WPLANG entry then create one.
Code:
define ('WPLANG', 'pt_BR');
(Read
this post which better explains the process.)
-Go back and refresh your ClassiPress site. You should now see the ClassiPress translated!
Note, sometimes the text you translated is too long and might wrap or look funny. You can either shorten the text or decrease the font size.
Anyone that successfully translates ClassiPress, please let me know. I would love to get the translated .MO file from you so I can offer it to all ClassiPress customers.
More information directly from
WordPress.