Single episode

View full details of this episode.

Translate 2009-10-17 13:29 GMT

Category:
Keywords:, , , , ,
Description:

Quick tutorial to translate Troubadour. You can do the translation by manually editing template file, or via web interface at Launchpad.

A. Translate at Launchpad (recommended)

Preferred way is to do this is via nice web interface at Launchpad Translations of Troubadour page.

  1. Create account and set your language preferences.
  2. You should now have your language listed in the translations page. Click it!
  3. Happy submitting!
  4. After you're finished, you can then request a download of your translation file (choose .mo).
  5. Copy the file as tr-custom/languages/xx/LC_MESSAGES/troubadour.mo, (xx is language code) then select the language at Administration > Settings.

Your translation will also be automatically included in future releases.

Translations
Tutorial for translating in Launchpad.

B. Translating .pot file directly

Start by requesting translation template pot-file from Launchpad.

  1. Change the filename, eg. 'fi.po' file corresponding to the language code of the desired translation.
  2. Open the file in any text editor.
  3. Translate lines.
  4. Save and close the file. (You should possibly use UTF-8 format.)
  5. Next you need Poedit program. Download, install and start it. (First time opening it may ask your email address which will be saved in the files.)
  6. Open the '.po' file in it, and just save the file once and close Poedit.
  7. Poedit creates automatically corresponding .mo file. This is the file which is actually used by Troubadour.
  8. Upload the files to the tr-custom/languages/.... (The way existing translation(s).)
  9. Refresh the browser. Should work!

To get the file included in future Troubadour releases submit your translation to Launchpad.

Links

These tutorials are for WordPress, but may be helpful.

Localizing a WordPress Plugin Using poEdit
About translating WordPress.
Translating WordPress into another language (themes and plugins too)
About translating WordPress.
http://raulihaverinen.fi/troubadour/?id=26