Bug #1593: Fix issue translating the options while rendering
FEA: ItEr77S04BugFixing
This commit is contained in:
parent
5603148c1b
commit
2ff100d3ad
1 changed files with 8 additions and 1 deletions
|
|
@ -187,6 +187,13 @@ public class WorkerCRUDController extends GenericForwardComposer implements
|
|||
this.label = label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to mark text to be translated
|
||||
*/
|
||||
private static String _(String text) {
|
||||
return text;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
public WorkerCRUDController() {
|
||||
|
|
@ -487,7 +494,7 @@ public class WorkerCRUDController extends GenericForwardComposer implements
|
|||
private void initUserBindingOptions() {
|
||||
UserBindingOption[] values = UserBindingOption.values();
|
||||
for (UserBindingOption option : values) {
|
||||
Radio radio = new Radio(option.label);
|
||||
Radio radio = new Radio(_(option.label));
|
||||
if (option.equals(UserBindingOption.CREATE_NEW_USER)
|
||||
&& !SecurityUtils
|
||||
.isSuperuserOrUserInRoles(UserRole.ROLE_USER_ACCOUNTS)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue