Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to translate an OpenERP module?

I've just built a custom OpenERP module, let's say /addons/the_meaning_of_life. Now I want to translate it to another language. I now I'm supposed to have an i18n folder containing a .pot and .pofiles. How do I generate these ? It would be nice to have a step-by-step guide.

like image 553
Daniel Reis Avatar asked Jul 19 '12 08:07

Daniel Reis


People also ask

What is translate in Odoo?

Odoo language translation allows us to translate the text in our desired language without customizing the module. Odoo can use different languages for different users and can also can convert website pages into multiple languages.

How do I translate a Drupal site?

Select a content type you want translated, and select "edit", then "Workflow settings" for Drupal 6 or "Publishing options" for Drupal 7. At the "Multilingual support" section, select "Enabled, with translation". Be sure to save each content type after enabling multilingual support.

Does Weglot use Google Translate?

Weglot uses Google Translate's technology (and Microsoft, DeepL, and Yandex depending on the language) to ensure you get the best possible multilingual content on your WordPress site.


1 Answers

Ok here what you can do is:

  1. Install your desire lang in your db.
  2. Once you are done with your module development, install module on test server then go to the follwing Wizard Setting(or Configuration) > Translation> Import/Export/Export Translation. Then Choose the module the_meaning_of_life and desire lang. and export it in .po format.
  3. Save that po file then add the translation that you want in the po file. Then you can import back that po file in database or add it under your module under folder /addons/the_meaning_of_life/i18n and it is available with your module.
  4. (only for new modules), you need to have also the "pot" file in the same i18n folder, if you don't yet have it you can generate one by repeating step 2 but without choosing any language. This how you can make available translation for the some lang in your module but if you want use Launchpad translation service then check following url this will guide you using .pot but for that you need project on lp clearly.

Hope this will answer you, Regards

like image 61
ifixthat Avatar answered Oct 13 '22 08:10

ifixthat