Let's say I make a module.
How can I generate a .po files for this module?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
First we have to load the terms on OpenERP.
Log on OpenERP and ensure you are in Technical Features group
Synchronize translations in
Settings -> Translations -> Application Terms -> Synchronize Terms
Then use the following command line to generate your po file:
server/openerp-server --log-level=error --i18n-export=/tmp/<lang>.po -l <lang_code> -d <database> --modules=<module_name>
Ex.
lang_code = fr_FR
lang = fr
Then you can use msgmerge to merge the new po file with an existing one.
Thanks for the tip, do you know for which versions does it work ?
This is what I use for v6.1 and v7 in a script.
If you can't run openerp but can only use it, go to
Settings -> Translations -> Import / Export -> Export Translation
and folow the step to extract your po file
This does not extract text from `_("Python code")`, only from XML files. Instead, Yannick Vaucher's method does.
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
14
de des. 24
|
71514 | |||
|
What's the context?
Solved
|
9
de març 24
|
120529 | ||
|
1
de juny 20
|
12815 | |||
|
Editing process in openerp
Solved
|
2
de març 16
|
11006 | ||
|
1
de març 15
|
8231 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.