-
Bug
-
Resolution: Fixed
-
Medium
-
3.4
-
None
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>
- causes
-
CONFSERVER-22165 keyboard-shortcut plugin type works incorrectly
- Closed