Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40864

LangBuilder adds "(Automatic Copy)" when copying the base translation into the key in case of dissambiguation

    Details

      Description

      When brackets are used to dissambiguate a key, LangBuilder copies, for each language, the original key translation, but adds "Automatic copy".

      Consider a Language.properties containing:
      key-one=One
      key-one[context]=One

      When a language needs dissambiguation for that key, it has to define 2 different values:
      key-one=First value in a given language
      key-one[context]=Second value, context dependent, in a given language

      But when a language does not need to dissambiguate, translators just need to provide just the value for the base key:
      key-one=Unique meaning of the key

      • Observed behavior:
        ant build-lang task fills the other key with the same translation, adding a suffix:
        key-one=Unique meaning of the key
        key-one[context]=Unique meaning of the key (Automatic copy)

      This has no effect in the portal UI, but when synchronizing this with Pootle (translate.liferay.com), the automatic copy is discarded, so the key appears as untranslated in pootle, affecting completeness and forcing translators to manually provide the same value.

      • Expected behavior:
        ant build-lang task should fill the other key with the same translation, without the suffix:
        key-one=Unique meaning of the key
        key-one[context]=Unique meaning of the key

        Attachments

          Activity

            People

            • Assignee:
              daniel.sanz Daniel Sanz
              Reporter:
              daniel.sanz Daniel Sanz
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 3 weeks, 2 days ago

                Packages

                Version Package
                6.1.X EE
                6.2.0 CE RC3