How to add missing translation terms

Asked by Tanel Kurvits

Administration (<- ok can translate)

     On Demand Control (<- Missing in *.po files)
                > Hours per User (<- Missing in *.po files)
                > Hours per Month (<- Missing in *.po files)

Searched that strings everywhere in all *.po files but not success.

I tryd edit /usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/i18n/et_EE.po
Added there:

msgid "Hours per User"
msgstr "Tunde kasutajakohta"

But after db update and server restart still not working! Tested and changed different string there and changes working so not my update fault. Where i do mistake?

Can you add that strings in launchpad and in *.po files?
So please help me that point and i can continue help translate your amazing software.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #537305.

Revision history for this message
Tanel Kurvits (tanel-kurvits) said :
#1

Founded how fix at least one string

Add in your_lamguage. po
*.po file rows

#. module: base
#: model:ir.ui.menu,name:base.menu_use
msgid "On Demand Control"
msgstr "YOUR LANGUAGE STRING"

Now i mast think how fix strings:
                > Hours per User (<- Missing in *.po files)
                > Hours per Month (<- Missing in *.po files)

Devs can you add my fix?

Revision history for this message
Tanel Kurvits (tanel-kurvits) said :
#2

WOW i hero!
Notice i do not know at Python nothing so please no hit me at face.

So i use Kubuntu 9.10 i describe how fix it there.

1. Open files:
/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/i18n/*.po

2. Add there:

#. module: base
#: model:ir.ui.menu,name:base.menu_use
msgid "On Demand Control"
msgstr ""

#. module: base
#: model:ir.ui.menu,name:base.action_control_time_user_tree
msgid "Hours per User"
msgstr ""

#. module: base
#: model:ir.ui.menu,name:base.action_control_time_tree
msgid "Hours per Month"
msgstr ""

3. translate strings

4. Reload official language

5. Restart openerp-server
/etc/init.d/openerp-server restart

6. Refresh openerp-client
ctrl+r and ctrl+t

7. Devs add fix please! (I want see how long it takes now for add it)

Revision history for this message
Tanel Kurvits (tanel-kurvits) said :
#3

Founded fix not was completed.

#. module: base
#: model:ir.ui.menu,name:base.menu_use
msgid "On Demand Control"
msgstr ""

#. module: base
#: model:ir.actions.act_window,name:base.action_control_time_user_tree
#: model:ir.ui.menu,name:base.action_control_time_user_tree
msgid "Hours per User"
msgstr ""

#. module: base
#: model:ir.actions.act_window,name:base.action_control_time_tree
#: model:ir.ui.menu,name:base.action_control_time_tree
msgid "Hours per Month"
msgstr ""

Now mast be all ok ;)

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) said :
#4

Hello Tanel,

I am converting this bug to a question as it may help others (converting marks the bug invalid)

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) said :
#5

The comments above explain how you can add manual translations in .po files, but there are several simpler ways of doing it, for example:

- within OpenERP go to the translation terms list in the Administration menu, and you can directly add new translations there, effective immediately
- after adding new translations in OpenERP you can use the export wizard in the Administration menu to export updated .po files
- instead of manually editing the .po files you can also use a PO Editor software, such as POEdit

Can you help with this problem?

Provide an answer of your own, or ask Tanel Kurvits for more information if necessary.

To post a message you must log in.