User Tools

Site Tools


how_to:translate_moosocial

This is an old revision of the document!


Translation

I/Introduction:

It is very easy to translate mooSocial to your language. The default language file can be located at app/Locale/eng/LC_MESSAGES/default.po. If you want to translate mooSocial to a language that is not already in the Locale folder, you can copy the default language folder to a new folder (e.g. fra) and start translating the new language file using your favorite text editor (use UTF-8 to avoid problems). The language folder name must conform to the ISO 639-2 standard.

The msgid must be the english language string. This means it must not be changed. The one that contains the translation is msgstr.

To install the new language after uploading the language folder to Locale folder, go to Admin Panel → Languages Manager → Not Installed Languages then click Install. It is necessary to clear Global Cache when using a new Language by going to Admin Dashboard → Clear Global Cache.

Note: use Poedit from http://www.poedit.net/ to easily edit the .po files

II/How to use Poedit:

Open poedit and select Create new translation:

54f53428c587b9ed3f0288fb665f2188.jpg

#Select Create New Translation

Next, we must select po file and open it:

42a2ac3341a43a9af2d86b5e21f7e4dc.jpg

#1 Select PO Translation files.

#2 Choose default.po located at [mooSocial/app/locale/eng/LC_message/]

The poedit will ask your language for the translation, example, to Vietnamese:

ab230b52d12160584523ae0e339fc3dc.jpg

#Select your language.

how_to/translate_moosocial.1433920715.txt.gz · Last modified: 2015/08/24 01:13 (external edit)