mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[231943] TVT34:TCT224: Untranslated "true" and "false" values
https://bugs.eclipse.org/bugs/show_bug.cgi?id=231943
This commit is contained in:
parent
a2d0b8ea7b
commit
18e39b2329
3 changed files with 17 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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$
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue