-
Suggestion
-
Resolution: Won't Do
-
None
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Plugins (such as the commit acceptance plugin), when converted to v2 plugins, have their i18n break if they use the "magic".
The "magic" is that they have an action class Foo which extends JiraWebActionSupport, and a Foo.properties file right next to the class file in their jar with i18n keys, and no mention of it in code or plugin descriptor. This method of i18n "just works" for v1 plugins but breaks when you make them v2 plugins.
When that happens, the following shows up in the logs for every key referenced:
[INFO] [talledLocalContainer] 2011-02-16 21:52:23,785 http-2990-2 DEBUG admin 352x273x1 1wxv13h 0:0:0:0:0:0:0:1 /secure/CommitAcceptanceConfigure.jspa [commitacceptance.server.action.ConfigureAction] Cannot find key 'commitacceptance.prompt.unsavedConfig'
You can reproduce this using the commit acceptance plugin source located here:
http://svn.atlassian.com/svn/public/contrib/jira/jira-commitacceptance-plugin/trunk
By applying the following patch:
diff --git a/src/main/resources/atlassian-plugin.xml b/src/main/resources/atlassian-plugin.xml index eeefc70..d8bed9d 100644 --- a/src/main/resources/atlassian-plugin.xml +++ b/src/main/resources/atlassian-plugin.xml @@ -1,4 +1,4 @@ -<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}"> +<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
mrdon in #atlassiandev on freenode has confirmed that this should be a bug.
Thanks!
- relates to
-
JRACLOUD-23720 webwork1 "magic" for i18n is broken for v2 plugins
- Closed
Thanks for taking the time to raise this issue.
Due to the large volume of JIRA feature suggestions, we have to prioritise our development efforts. In part, that means concentrating on those issues that resonate the most with our users.
I am writing this note to advise you, that we have decided to close your Suggestion as it has not gained traction on jira.atlassian.com. We believe being upfront and direct with you will assist you in your decision making rather than believing Atlassian will eventually address this issue.
Thank you again for your suggestion and if you have any concerns or question, please don’t hesitate to email me.
Kind Regards,
Kerrod Williams
JIRA Product Management
kerrod.williams at atlassian dot com