Why are some items not transferred to Odoo?

I have a problem with translations in the Project module. Some menu items are not translated. What could be the problem?

enter image description here

Here project_view.xml

<!-- Top menu item --> <menuitem name="Project" id="base.menu_main_pm" groups="group_project_manager,group_project_user" icon="fa-calendar" web_icon="project,static/description/icon.png" sequence="50"/> 

Here ru.po

 #. module: project #: model:ir.model,name:project.model_project_project #: model:ir.model.fields,field_description:project.field_project_task_history_cumulative_project_id #: model:ir.model.fields,field_description:project.field_project_task_project_id #: model:ir.model.fields,field_description:project.field_report_project_task_user_project_id #: model:ir.ui.view,arch_db:project.edit_project #: model:ir.ui.view,arch_db:project.view_task_form2 #: model:ir.ui.view,arch_db:project.view_task_history_search #: model:ir.ui.view,arch_db:project.view_task_project_user_search #: model:ir.ui.view,arch_db:project.view_task_search_form #: model:res.request.link,name:project.req_link_project msgid "Project" msgstr "" 
+8
python xml odoo-9 odoo odoo-8
source share
4 answers

I also had a problem with translations. I updated the base module many times and it worked, but sometimes it was not necessary. I did the following process:

  • Choose Settings> Translations> Download Translation, select a language and select the “Overwrite existing conditions” checkbox, then click the “Download button.”

  • After that, press F5 to update the browser, then go to Settings> Translations> Terms of Use> Sync Terms, select and click "Update". Then press F5 again to see if the conditions have been updated.

Sincerely.

+8
source share

Sometimes translations do not work very well. Try clicking the Refresh button in the Basic module. This should solve the problem.

+1
source share

Yes, sometimes localization doesn't work that way. Here is another strategy from v8 that can still help you in v9.

  • First upgrade your module as described
  • Then remove all translated lines for your module from the database. This is safe because you have them in your ru.po file.
    • Go to Settings> Translations> Application Terms> Translation Terms
    • Do an “Advanced Search” with the “Contains” module to find all your conditions.
    • select them all (it is possible for the pager to be "unlimited")
    • Choose More> Delete.
    • Make sure
  • Update your module again.
  • Export the ru.po file again; it should now contain all missing terms.

The problem is that the module sometimes takes some values ​​from the default language (en) to the target language, which then prohibits the term, which will be indicated as "for translation".

+1
source share

Sometimes, updating the base module is not enough. I have implemented a message based solution. What I am doing is to clear the whole language using a query and then load the language again. "Download translation" from the configuration menu.

The query that made it possible is as follows: for example, for es_CL:

DELETE FROM ir_translation WHERE lang = 'es_CL';

I put this in a module that you can use to adapt it to your needs:

https://github.com/odoo-chile/l10n_cl_clear_translation

When this module is installed, it launches a request. Then you can reload your language using the menu.

+1
source share

All Articles