hello all,
the __MSG_myproj.name palceholder is not replaced by the i18n
here is my code:
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"> <plugin-info> .... </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="gadgets/myproj/myproj" /> ..... . <gadget name="overview" i18n-name-key="myproj.overview.name" key="myproj" location="gadgets/myproj/overview.xml"> <description key="myproj.overview.description">Myproj Plugin Gadget </description> </gadget> </atlassian-plugin>
gadget.xml is:
<?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Overview" title_url="" directory_title="__MSG_myproj.name__" description="__MSG_myproj.description__" author="" author_email="" screenshot='http://www.google.com/gadgets/directory/2661487601-no_preview.gif' thumbnail='http://www.google.com/gadgets/directory/348515928-no_image_gadget_thm.png'> <Require feature="dynamic-height" /> <Require feature="oauthpopup" /> <Require feature="setprefs" /> <Require feature="settitle" /> <Require feature="views" /> <Require feature="oauthpopup" /> <Optional feature="atlassian.util" /> <Optional feature="gadget-directory"> <Param name="categories"> JIRA </Param> </Optional> ..... #oauth #supportedLocales("gadget.common,gadget.user.activity,i18n") </ModulePrefs> <UserPref name="isConfigured" datatype="hidden" default_value="false" /> <UserPref name="version" datatype="hidden" default_value="auto"/> <UserPref name="filterId" datatype="hidden"/> <UserPref name="username" datatype="hidden"/> <UserPref name="refresh" datatype="hidden" default_value="true" /> <Content type="html" view="profile"> <![CDATA[ #requireResource("com.atlassian.jira.gadgets:common") #requireResource("com.atlassian.gadgets.publisher:ajs-gadgets") #requireResource("com.atlassian.jira.gadgets:g-filter-results") #requireResource("com.atlassian.jira.gadgets:jira-global") #requireResource("com.atlassian.jira.gadgets:autocomplete") #requireResource("com.mycompany.jira.myproj:overview-resources") #includeResources() <script type="text/javascript"> .... <script> <p id="demo">hello</p> ]]> </Content> </Module>
under resource/gadgets/myproj/ I have a myproj.properties with the entries:
myproj.name=Doing something myproj.description=The SLA Plugin
still, in the 'add gadget' dialog I get "__MSG_myproj.name__" for my gadget name instead of "Doing something".
any ideas?
thanks
Community moderators have prevented the ability to post new answers.
after erading the api again I notice that the location attribute is wrong, changing th '/' to dots fixed the issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.