Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-22428

Internationalisation using JSP servlets : ability to link another .properties file

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Hello ;

      I am currently developing a new Jira plugin. As a result, I have to create new pages in the administration menu. These pages are build on the same metamodel as the "Add a new project" page.

      As a matter of fact, I developed them using some features provided by JSP, based on the same way as the new project page.

      The thing is :
      I cannot use any internationalisation language file for displaying some text information on my JSP. For instance, the addproject.jsp uses some keys (common.words.name) to display elements. The values of these keys are located in some .properties language files (like JiraWebActionSupport.properties). In the JSP I am developing, I have to create my own keys, because they are specific to my plugin.

      Actually, I have already my own .properties file (located in my plugin dir : myPlugin/src/main/resources/com/.../jira/plugins/myPlugin.properties). This file works perfectly for the atlassian-plugin.xml file (My keys appear properly in the admin panel menu). If I call the JSP directly, it works, my .properties file is properly loaded too. But this is not a good way to use JSP in Jira. This is not true if I call my .jspa class, my page will appear, but it will not load my .properties file : the page will display my keys instead (myplugin.words.name for instance)

      Is it possible to find a way to give Jira an extra feature to include a new .properties file? I don't want to modify Jira files directly, because they are about to be overwritten at each new upgrade of Jira.

      I want to develop these pages using JSP because :

      • I need to use the component to select users using JQL features (which is implemented by the userselect.jsp template)
      • Java Server Pages are far easier to use than the Velocity views

      I submitted this as a new feature, because I believe that the use of JSP will affect more and more Jira developers ; Anyway, if I made something wrong in my development, if my request is already implemented, please could you give me a trick on how to use it?

      Yours sincerely,
      Nicolas L

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              d31cd4493512 Nicolas Lethellier
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: