diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.java index 991c4939e5f..41fe0d238a4 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.java @@ -21,6 +21,7 @@ * Xuan Chen (IBM) - [222263] Need to provide a PropertySet Adapter for System Team View * David Dykstal (IBM) - [210242] Credentials dialog should look different if password is not supported or optional * David Dykstal (IBM) - [216858] Need the ability to Import/Export RSE connections for sharing + * David Dykstal (IBM) - [231943] Make "true" and "false" translatable on SystemTypeFieldEditor *******************************************************************************/ package org.eclipse.rse.internal.ui; @@ -1033,6 +1034,10 @@ public class SystemResources extends NLS public static String SystemImportConnectionAction_UnexpectedException; + public static String SystemTypeFieldEditor_false; + + public static String SystemTypeFieldEditor_true; + static { // load message values from bundle file NLS.initializeMessages(BUNDLE_NAME, SystemResources.class); diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.properties b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.properties index 42dfefe8b37..1074cb10879 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.properties +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/SystemResources.properties @@ -23,6 +23,7 @@ # David Dykstal (IBM) - [197018] Last Page of New Filter Wizard mentions Change Action # David Dykstal (IBM) - [210242] Credentials dialog should look different if password is not supported or optional # David Dykstal (IBM) - [216858] Need the ability to Import/Export RSE connections for sharing +# David Dykstal (IBM) - [231943] Make true and false translatable on SystemTypeFieldEditor ################################################################################ # NLS_MESSAGEFORMAT_VAR @@ -1083,3 +1084,5 @@ SystemImportConnectionAction_FileNotFoundCondition=File {0} does not exist. SystemImportConnectionAction_FileNotReadableCondition=You do not have permission to read file {0}. SystemImportConnectionAction_ImportJobName=RSE Connection Import Job SystemImportConnectionAction_UnexpectedException=unexpected exception +SystemTypeFieldEditor_false=false +SystemTypeFieldEditor_true=true diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/propertypages/SystemTypeFieldEditor.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/propertypages/SystemTypeFieldEditor.java index 50b5afeffbe..a4dfee58c33 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/propertypages/SystemTypeFieldEditor.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/propertypages/SystemTypeFieldEditor.java @@ -18,6 +18,7 @@ * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry * Martin Oberhuber (Wind River) - [186779] Fix IRSESystemType.getAdapter() * Martin Oberhuber (Wind River) - [196963][181939] avoid subsystem plugin activation just for enablement checking + * David Dykstal (IBM) - [231943] make "true" and "false" translatable ********************************************************************************/ package org.eclipse.rse.ui.propertypages; @@ -104,7 +105,7 @@ public class SystemTypeFieldEditor extends FieldEditor }; private static final boolean[] enabledStates = {Boolean.TRUE.booleanValue(), Boolean.FALSE.booleanValue()}; - private static final String[] enabledStateStrings = {Boolean.TRUE.toString(), Boolean.FALSE.toString()}; + private static final String[] enabledStateStrings = {SystemResources.SystemTypeFieldEditor_true, SystemResources.SystemTypeFieldEditor_false}; /** * Constructor @@ -435,9 +436,13 @@ public class SystemTypeFieldEditor extends FieldEditor if (columnIndex == COLUMN_NAME) return currType.getLabel(); - else if (columnIndex == COLUMN_ENABLED) - return Boolean.toString(currType.isEnabled()); - else if (columnIndex == COLUMN_USERID) { + else if (columnIndex == COLUMN_ENABLED) { + int n = 0; + if (currType.isEnabled() == enabledStates[1]) { + n = 1; + } + return enabledStateStrings[n]; + } else if (columnIndex == COLUMN_USERID) { RSESystemTypeAdapter adapter = (RSESystemTypeAdapter) (currType.getAdapter(RSESystemTypeAdapter.class)); return (adapter.getDefaultUserId(currType)==null ? "" : adapter.getDefaultUserId(currType)); //$NON-NLS-1$ }