I've faced the issue described here - https://answers.atlassian.com/questions/20241, but the mentioned solution doesn't work for me. Could you please suggest me a way to debug the issue when the call to AJS.I18n.getText
returns the key instead of value?
Community moderators have prevented the ability to post new answers.
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}"/> <param name="plugin-icon">images/icon.png</param> <param name="plugin-logo">images/logo.png</param> </plugin-info> <web-resource key="my-web-resource"> <transformation extension="js"> <transformer key="jsI18n"/> </transformation> <dependency>com.atlassian.auiplugin:ajs</dependency> <dependency>com.atlassian.auiplugin:dialog2</dependency> <resource type="download" name="my-plugin.js" location="/js/my-plugin.js"/> <resource type="download" name="my-plugin.js.map" location="/js/my-plugin.js.map"/> <context>atl.general</context> <context>atl.admin</context> </web-resource> <resource type="i18n" name="i18n" location="my-plugin" /> </atlassian-plugin>
I have the same in at least 3 plugins. Only difference I have <resource type="i18n" tag before <web-resource but I guess it does not matter. Maybe the wrong name for the properties files. For you descriptor you should have my-plugin.properties under src/main/resources folder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
did you resolve your issue, since i have the same problem and i do not know how to check if he even tries to use my properties file.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Key instead of values usually means that there is no matching ley/value in your property file. Check spelling for the key in the property file and in JavaScript.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Checked once again now. Everything is correct. 1) How to check that the function (AJS.I18n.getText) is working for me? 2) How to check the list of available keys?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess something wrong in your atlassian-plugin.xml. Please post it as a new answer enclosing it into the "code" block.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.