← Back to team overview

openerp-india team mailing list archive

[Bug 1053970] Re: [6.1/trunk] Translations: creation of a record does not generate translation lines

 

Hi,

FYI, in v6.1 we've merged this branch: lp:~openerp-dev/openerp-
web/6.1-opw-579638-cpa.

This force "TranslationDialog" to save all translations of field if a
least one translation of that field has been modified. This partially
fixes the problem  and we don't loose translation in case the record was
not created with "English" language.

Note, that this make web behaviour consistent with what the GTK client.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1053970

Title:
  [6.1/trunk] Translations: creation of a record does not generate
  translation lines

Status in OpenERP Server:
  Confirmed

Bug description:
  Hello,

  Actually, the original behavior for the translations is quite strange. 
  Here it is:
      I'm logged in with en_US language.
      I create a record, with a (translatable) title 'My title'
      I check the source in database (table of the object), that's 'My title'
      I check the translation lines for the en_US language, no line
      I write on my record the title 'My title updated'
      I check the source in database, that's 'My title updated'
      I check the translation lines for the en_US language, no line

      I'm logged in with fr_FR language
      I create a record, with a (translatable) title 'Mon titre'
      I check the source in database (table of the object), that's 'Mon titre'
      I check the translation lines for the fr_FR language, no line
      I write on my record the title 'Mon titre mis à jour'
      I check the source in database, that's 'Mon titre' (unchanged)
      I check the translation lines for the fr_FR language, I have a line with 'Mon titre mis à jour'

  OpenERP assumes that the en_US is the reference
  language, so lets assume it completely, and generate the french
  translation line directly when we enter the value.

  As we can see, the write method creates translation lines for other
  languages than en_US, that's correct. 
  The create method does not, it has to do it.

  That's weird, because, if I create a record in french, the source
  will be the french value (of course), but programmatically, we do not
  have any means to know that someone entered a french translation.

  A simple scenario where the bug will occurs:

      User A is logged in with fr_FR
      User A creates a product with a name 'Marteau'
      User B is logged in with en_US
      User B modifies the product 'Marteau' to be 'Hammer'
      => The french translation is lost.

  It won't occurs in this slightly modified scenario:

      User A is logged in with fr_FR
      User A creates a product with a name 'Martea' (typo)
      User A modifies the product 'Martea' to be 'Marteau'
      User B is logged in with en_US
      User B modifies the product 'Marteau' to be 'Hammer'
      => The french translation isn't lost, because the write has
      correctly generated the french translation line

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


References