Attachment dialog gets shown in wrong lanuage.

      This has been logged as:
      https://support.atlassian.com/browse/JSP-18086

      Essentially my jira installation is english and keyboard mapping is danish. The dialog is shown in a wrong language.

        1. defaultlanguage.JPG
          defaultlanguage.JPG
          60 kB
        2. locale_bug.PNG
          locale_bug.PNG
          55 kB

            [JRASERVER-14108] Attachment dialog gets shown in wrong language

            Great! Thank you very much. When I get back to the office in a week then I'll upgrade. Upgrading won't be a big problem.

            Henrik Goldman added a comment - Great! Thank you very much. When I get back to the office in a week then I'll upgrade. Upgrading won't be a big problem.

            Resolving this as a duplicate of JRA-13655

            Andreas Knecht (Inactive) added a comment - Resolving this as a duplicate of JRA-13655

            Hi Hendrik,

            Thanks for logging this.

            This issue was really being caused by a number of duplicate language files being present. This is how the internationalised message is being resolved:

            1. Check for a message file with the name of the webaction and the user's locale: AttachFile_en_UK.properties
            2. If not found check for the default locale: AttachFile_da_DK.properties
            3. If not found check for the parent class of the web-action: JiraWebActionSupport_en_UK.properties
            4. If not found check for the parent class of the web-action with the default locale: JiraWebActionSupport_da_DK.properties

            The problem is that there is still a stale AttachFile_da_DK.properties file around in JIRA 3.11 but no AttachFile_en_UK.properties. This means that the lookup in step 1 above fails, but step 2 succeeds, which is why the message is being shown in Danish.

            This issue has been fixed in JIRA 3.12. Please upgrade to JIRA 3.12.x or remove the AttachFile*.properties language bundles (follow the instructions for translating JIRA). If upgrading to JIRA 3.12.x is a huge problem for you, let us know and we'll make a patch available.

            Cheers,
            Andreas

            Andreas Knecht (Inactive) added a comment - - edited Hi Hendrik, Thanks for logging this. This issue was really being caused by a number of duplicate language files being present. This is how the internationalised message is being resolved: Check for a message file with the name of the webaction and the user's locale: AttachFile_en_UK.properties If not found check for the default locale: AttachFile_da_DK.properties If not found check for the parent class of the web-action: JiraWebActionSupport_en_UK.properties If not found check for the parent class of the web-action with the default locale: JiraWebActionSupport_da_DK.properties The problem is that there is still a stale AttachFile_da_DK.properties file around in JIRA 3.11 but no AttachFile_en_UK.properties. This means that the lookup in step 1 above fails, but step 2 succeeds, which is why the message is being shown in Danish. This issue has been fixed in JIRA 3.12. Please upgrade to JIRA 3.12.x or remove the AttachFile*.properties language bundles (follow the instructions for translating JIRA). If upgrading to JIRA 3.12.x is a huge problem for you, let us know and we'll make a patch available. Cheers, Andreas

            Hi,

            I have tried to produce same environment from the user. However, I do not able to produce the exact error which attachment (locale_bug.PNG) display on this issue.

            I found that JIRA does not pick up language configure in user profile or general configuration, when startup JIRA with -Duser.language=da -Duser.country=DK. See screenshot

            Cheers,
            Eddie

            Eddie Kua [Atlassian] added a comment - Hi, I have tried to produce same environment from the user. However, I do not able to produce the exact error which attachment (locale_bug.PNG) display on this issue. I found that JIRA does not pick up language configure in user profile or general configuration, when startup JIRA with -Duser.language=da -Duser.country=DK. See screenshot Cheers, Eddie

              ekua Eddie Kua [Atlassian]
              bd49bd329574 Henrik Goldman
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: