This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
how_to:translate_moosocial [2015/06/10 07:18] mooeditor |
how_to:translate_moosocial [2016/06/03 00:17] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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/|http://www.poedit.net/]] to easily edit the .po files | ||
- | |||
- | //__**II/How to use Poedit:** __ // | ||
- | |||
- | Open poedit and select //Create new translation//: | ||
- | |||
- | {{:how_to:54f53428c587b9ed3f0288fb665f2188.jpg}} | ||
- | |||
- | #Select //Create New Translation// | ||
- | |||
- | Next, we must select //po // file and open it: | ||
- | |||
- | {{:how_to: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: | ||
- | |||
- | {{:how_to:ab230b52d12160584523ae0e339fc3dc.jpg}} | ||
- | |||
- | #Select your language. | ||