Bug #1593: Fix issue translating the options while rendering

FEA: ItEr77S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-12-10 13:14:16 +01:00
parent 5603148c1b
commit 2ff100d3ad

View file

@ -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)) {