Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-30725

Localization / prospero: Translating "yes" / "no" messages including hints "[y\N]"

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      This is a follow-up issue for JBEAP-30667, describing the root cause of that previous ticket, and is intended as input for the localization team so that they can asses whether any steps need to be taken on their side, to prevent the issue reappearing after next round of translations, e.g. for EAP 8.2.

      There's been two related issues, specific for the French translation: https://gitlab.cee.redhat.com/prospero/prospero-productization/-/blob/1adef1ab0820aa72976798af8f593be5b375ef05/prospero-cli/src/main/resources/UsageMessages_fr.properties

      Issue #1 (minor): Inconsistent "yes" / "no" notation

      When translating messages in prospero, following messages:

      prospero.general.prompt.yes=y
      prospero.general.prompt.no=n
      

      has been translated inconsistently into:

      prospero.general.prompt.yes=oui
      prospero.general.prompt.no=n
      

      So "yes" has been translated into full word "oui", while "no" was left as single letter "n". In our view it would have been better to either use full words for both, or single letter for both. We decided to change this to single letter, so ideally the same should be done next time:

      prospero.general.prompt.yes=o
      prospero.general.prompt.no=n
      

      Issue #2 (major): "[yes/no]" hints in other messages need to be translated as well

      In prospero there is number of question messages that contain "[y/N]" string used as a hint to a user that he needs to provide "yes" or "no" answer to proceed or cancel the operation. The user input parsing depends on the translations of the previously mentioned messages:

      prospero.general.prompt.yes=o
      prospero.general.prompt.no=n
      

      So if the "yes" and "no" messages are translated into "o" and "n", the hints need to be changed from "[y\N]" to "[o/N]" as well. Specific message example is following:

      # given that "yes" / "no" has been translated as "o" / "n":
      prospero.general.prompt.yes=o
      prospero.general.prompt.no=n
      
      # then this translated message:
      prospero.revert.prompt=Poursuivre avec l'annulation [y/N] :
      
      # should have been translated as such:
      prospero.revert.prompt=Poursuivre avec l'annulation [o/N] :
      
      # because only the letter "o" is now understood as "yes" by the program. The letter "y" is no longer understood as "yes" response, greatly confusing the users, because the hint still displayed "y".
      

      I know this was not obvious. If I didn't manage to explain clearly please get back to me. Thank you!

              darran.lofthouse@redhat.com Darran Lofthouse
              thofman Tomas Hofman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: