Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.1.8, 6.1.6, 6.3.14, 6.3.15
-
None
-
5.01
-
Description
When viewing project permissions the names of permissions are not translated.
Steps to Reproduce
- Set a non-default language in JIRA's General Configuration
- Spanish for example
- Notice there are several strings not being translated. The property value is being overruled as the translated string appears to be picked up:
Original description below:
For more info see https://jira.atlassian.com/browse/JRA-28198?focusedCommentId=429561&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-429561
I also try to fix it and I think I did. I did not test fully yet. But correct text is showing as permission name and InProduct Translation lists new value as available for translation.
I made changes in
package com.atlassian.jira.projectconfig.contextproviders;
...
public class ProjectPermissionContextProvider implements CacheableContextProvider
...
method private List<SimplePermission> getPermission(I18nHelper i18nHelper, GenericValue scheme, Collection<Permission> permissions)I replaced this line
returnPermissions.add(new SimplePermission(Permissions.getShortName(Integer.valueOf(permission.getId())), permission.getName()), permission.getDescription(), entityDisplays));
with this line
returnPermissions.add(new SimplePermission(Permissions.getShortName(Integer.valueOf(permission.getId())), i18nHelper.getText(permission.getNameKey()), permission.getDescription(), entityDisplays));
Attachments
Issue Links
- is duplicated by
-
JRASERVER-31931 Project Permissions Page is not Translated when New Language is Selected
- Closed
- is related to
-
JRASERVER-28198 German translations don't apply
- Gathering Impact