Duplicate message definitions extracted

FrankT - August 22, 2009 - 11:18
Project:Translation template extractor
Version:6.x-3.0
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

I just extracted a translation template file (.pot) for the module Revisioning (6.x-2.7), it is attached. I continued to work with it and when saving the translation I get an error about a duplicate message definition. Looking at the template I can confirm that in line 325 and 375 there is a duplicate msgid 'Delete'.

I can only assume that the error depends on the one string being in a singular/plural combination.

The error is the same if I extract a translation file (.po)

AttachmentSize
revisioning.pot9.09 KB

#1

Gábor Hojtsy - August 23, 2009 - 10:19

Uhm, well, I don't know how to overcome this. We need identification for both the singular and plural variant, and it can indeed happen that the singular variant is the same as some other string in the same .po file. While the simple I'd not say that the "Delete" string is appropriate in that singular case, I have not seen the UI, so it might as well be. The best short term fix would be IMHO to get the module maintainer fix that string to be something like "Delete revision" in the singular version to couple the plurals "Delete all @count revisions".

#2

FrankT - August 23, 2009 - 10:39

Of course we can solve it by changing one source string, I will open another issue for that.

But I thought and think the root cause should be solved (if it is not a once in a lifetime problem).

#3

Gábor Hojtsy - August 24, 2009 - 07:48

Its probably not a once in a lifetime problem, but I have not seen this issue in years, so it is certainly very rare. Because the single string needs to stay as-is and the singular version of the plural combination should also be translatable as-is, they would clash.

#4

FrankT - August 24, 2009 - 18:40
Priority:normal» minor

You may decide how to go on with this. Due to the possible workaround I set the priority to minor.

 
 

Drupal is a registered trademark of Dries Buytaert.