Duplicated keys

Topics: Customizing Orchard, Localization, Writing modules
Apr 10, 2013 at 12:14 PM
Edited Apr 10, 2013 at 12:16 PM
Orchard .po files have a lot of duplicate msgids.

The question is, are those entries supposed to be duplicated?

As far as I know, .po files should not contain duplicate msgids unless they're disambiguate with msgctx tags.

Duplicate keys have following disadvantages:
  • breaks compatibility with editors (eg: Poedit)
  • asks to translators to translate the same key many times (with possibly mistakes and unintended duplication)
Coordinator
Apr 11, 2013 at 3:20 AM
They are in different contexts, aren't they?
Apr 12, 2013 at 10:45 AM
Yes.
I digged more on the problem.
I have posted as question here:
http://stackoverflow.com/questions/15968007/orchard-localization-po-file-usage
Apr 12, 2013 at 4:06 PM
Edited Apr 12, 2013 at 4:06 PM
And I created an Issue on TranslationManager here:
https://vandelay.codeplex.com/workitem/24
(patch included)