-
Suggestion
-
Resolution: Fixed
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Following an old issue (JRA-6481), our requirment for i18n implementation is more and mroe important at the moment.
- May we know when a such feature will be implemented in future release ?
- Trying to understand how customfield rendering is done, I found a way to apply i18n translation.
I proceed so :- Creating the CustomField as i18n keys : myCustomField
- Adding the CustomField property value in a rebuild language_fr_FR.jar
com/atlassian/jira/web/action/JiraWebActionSupport_fr.properties
myCustomField=Mon Champ personnalisé
- Adding the CustomField property value in a rebuild language_en_UK.jar
com/atlassian/jira/web/action/JiraWebActionSupport_en.properties
myCustomField=My Custom Field
- ... and alos for any other required languages.
- Modifying templates/plugins/jira/macros.vm as follow :
- a new Macro
## I18n Headers required for CustomFields #macro(i18nCustomName $action $name) #set ($wordPos = $name.indexOf(" ")) #if ($wordPos>0) #set($key=$name.substring(0,$wordPos)) $action.getText($key) $name.substring($wordPos,$name.length()) #else $action.getText($name) #end #end
- Replacement of
#if ($required) <span class="required" title="$action.getText("common.forms.requiredfields")"><sup>*</sup> $name: </span> #else $name: #end
by
#if ($required) <span class="required" title="$action.getText("common.forms.requiredfields")"><sup>*</sup> #i18nCustomName($action $name) : </span> #else #i18nCustomName($action $name) : #end
- a new Macro
- Modify includes/panels/issue/view_customfields.jsp as follow :
Replacement of<tr id="rowFor<webwork:property value="./id" />"> <td bgcolor="f0f0f0" width="20%" valign="top"><b><webwork:property value="name" />:</b></td> <td bgcolor="ffffff" width="80%"> <webwork:property value="/customFieldHtml(../fieldLayoutItem,., /issueObject)" escape="false" /> </td> </tr>
by
<tr id="rowFor<webwork:property value="./id" />"> <td bgcolor="f0f0f0" width="20%" valign="top"><b><webwork:property value="text(./name)" />:</b></td> <td bgcolor="ffffff" width="80%"> <webwork:property value="/customFieldHtml(../fieldLayoutItem,., /issueObject)" escape="false" /> </td> </tr>
Please, let me know if I may implement this, waiting the future feature ?
What other problem may I encounter ? Probably Word and Excel rendering, I suppose ?
Rgds
Vincent
- is duplicated by
-
JRASERVER-27812 Internationalisation CustomFields Easily?
- Closed
- is related to
-
JRASERVER-40049 Allow translation of custom field options
- Not Being Considered
- relates to
-
JRASERVER-39009 When using a language pack other than English, searching with JQL, system fields are all in English, custom fields are all in the other language
- Closed
-
JRASERVER-6481 I18n wth Customfield
- Closed
-
JRACLOUD-11331 I18n with CustomField
- Closed
-
JRASERVER-6798 Allow admins to translate items configurable in the administration section
- Future Consideration