How to translate an OpenERP module?

前端 未结 3 520
名媛妹妹
名媛妹妹 2021-02-05 13:53

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 i18

3条回答
  •  花落未央
    2021-02-05 14:39

    Install your desire lang in your db.

    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.

    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.

    (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.

提交回复
热议问题