Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-24450

Keyboard shortcuts added by plugins show the i18n string in the keybaord shortcuts dialog

    XMLWordPrintable

Details

    Description

      If a plugin adds a keyboard shortcut module the i18n string may be shown in the keyboard shortcut help dialog instead of the name of the shortcut. This is happening because the i18n resources for that plugin are not available in the front end.

      Workaround

      There is a workaround until this is fixed:

      Create a new JS file containing the following:

      AJS.toInit(function($) {
          AJS.I18n.get("plugin.key");
      });
      

      Where "plugin.key" is your plugin key. This will make sure your i18n resources are loaded for the dialog. You will need to make sure this code is available in the admin and main contexts, so you will want to add something like this in your atlassian-plugin.xml file:

      <web-resource key="test-shortcuts" name="Test Shortcuts" i18n-name-key="test">
          <resource name="test.js" type="download" location="test.js"/>
          <context>main</context>
          <context>admin</context>
      </web-resource>
      

      Attachments

        Issue Links

          Activity

            People

              drichard David Richard (Inactive)
              merickson Matthew Erickson
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: