1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-16 21:45:22 +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:
David Dykstal 2008-05-14 14:16:35 +00:00
parent a2d0b8ea7b
commit 18e39b2329
3 changed files with 17 additions and 4 deletions

View file

@ -21,6 +21,7 @@
* Xuan Chen (IBM) - [222263] Need to provide a PropertySet Adapter for System Team View * 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) - [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) - [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; package org.eclipse.rse.internal.ui;
@ -1033,6 +1034,10 @@ public class SystemResources extends NLS
public static String SystemImportConnectionAction_UnexpectedException; public static String SystemImportConnectionAction_UnexpectedException;
public static String SystemTypeFieldEditor_false;
public static String SystemTypeFieldEditor_true;
static { static {
// load message values from bundle file // load message values from bundle file
NLS.initializeMessages(BUNDLE_NAME, SystemResources.class); NLS.initializeMessages(BUNDLE_NAME, SystemResources.class);

View file

@ -23,6 +23,7 @@
# David Dykstal (IBM) - [197018] Last Page of New Filter Wizard mentions Change Action # 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) - [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) - [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 # 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_FileNotReadableCondition=You do not have permission to read file {0}.
SystemImportConnectionAction_ImportJobName=RSE Connection Import Job SystemImportConnectionAction_ImportJobName=RSE Connection Import Job
SystemImportConnectionAction_UnexpectedException=unexpected exception SystemImportConnectionAction_UnexpectedException=unexpected exception
SystemTypeFieldEditor_false=false
SystemTypeFieldEditor_true=true

View file

@ -18,6 +18,7 @@
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
* Martin Oberhuber (Wind River) - [186779] Fix IRSESystemType.getAdapter() * Martin Oberhuber (Wind River) - [186779] Fix IRSESystemType.getAdapter()
* Martin Oberhuber (Wind River) - [196963][181939] avoid subsystem plugin activation just for enablement checking * 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; 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 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 * Constructor
@ -435,9 +436,13 @@ public class SystemTypeFieldEditor extends FieldEditor
if (columnIndex == COLUMN_NAME) if (columnIndex == COLUMN_NAME)
return currType.getLabel(); return currType.getLabel();
else if (columnIndex == COLUMN_ENABLED) else if (columnIndex == COLUMN_ENABLED) {
return Boolean.toString(currType.isEnabled()); int n = 0;
else if (columnIndex == COLUMN_USERID) { if (currType.isEnabled() == enabledStates[1]) {
n = 1;
}
return enabledStateStrings[n];
} else if (columnIndex == COLUMN_USERID) {
RSESystemTypeAdapter adapter = (RSESystemTypeAdapter) (currType.getAdapter(RSESystemTypeAdapter.class)); RSESystemTypeAdapter adapter = (RSESystemTypeAdapter) (currType.getAdapter(RSESystemTypeAdapter.class));
return (adapter.getDefaultUserId(currType)==null ? "" : adapter.getDefaultUserId(currType)); //$NON-NLS-1$ return (adapter.getDefaultUserId(currType)==null ? "" : adapter.getDefaultUserId(currType)); //$NON-NLS-1$
} }