← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 933496] Re: Mismatching PO comments cause translation issues: translations present in PO not visible in GUI

 

I have checked deeply the patch, and it's correct. The problem with
still untranslated terms comes from pot files: they are incorrect.
Problem has been detected for example on purchase module from 6.1
addons. You have these comments in pot file for the msgid "Purchases"
(term for the main menu):

#. module: purchase
#: model:ir.actions.act_window,name:purchase.action_purchase_line_product_tree

In es.po, you can find though this other ones:

#. module: purchase
#: model:ir.actions.act_window,name:purchase.action_purchase_line_product_tree
#: model:ir.actions.act_window,name:purchase.open_board_purchase
#: model:ir.ui.menu,name:purchase.menu_board_purchase
#: model:ir.ui.menu,name:purchase.menu_purchase_config

Which is logical, because these comments are synchronized from the
translation focus branch (7.0 in this case), but there's must be one
comment on pot file that is missing:

#: model:ir.ui.menu,name:base.menu_purchase_root

With this one and the patch, "Purchases" main menu is translated.

Exporting pot file from OpenERP interface, resulting file is equal,
without that comment, so the problem seems to be with the export. I'm
going to open another bug for reflecting this.

Regards.

-- 
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is a bug assignee.
https://bugs.launchpad.net/bugs/933496

Title:
  Mismatching PO comments cause translation issues: translations present
  in PO not visible in GUI

Status in OpenERP Community Backports (Server):
  New
Status in OpenERP Community Backports (Server) 6.1 series:
  Fix Committed
Status in OpenERP Community Backports (Server) 7.0 series:
  New
Status in OpenERP Server:
  Fix Committed

Bug description:
  In v6.0, it seems that many translations are not show in the gui anymore because the corresponding comments has been removed from the .po file.
  As stated by Olivier: "The problem is that PO templates entries are not only shared between series, but their comments are shared as well, regardless of the destination series."
  So Launchpad removes the comments needed for v6.0 when they disappear from the trunk.

  For example, revno 4983 contains:
  @@ -10132,14 +10038,13 @@
   #: report:account.invoice:0
   #: view:account.invoice:0
   #: view:account.invoice.refund:0
  -#: selection:account.invoice.refund,filter_refund:0
   #: view:account.invoice.report:0
   #: model:ir.actions.act_window,name:account.action_account_invoice_refund
   msgid "Refund"
   msgstr "Créer un avoir"
  That makes the string "Refund" untranslatable in the selection on the refund wizard.

  If you export the PO file from a running instance of OpenERP, it will
  be generated correctly however.

  Lionel.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-server/+bug/933496/+subscriptions