mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 387191 - ARA: Incorrect mirrored strings occurred
on panels of right click menu selection of Invoke Autotools
This commit is contained in:
parent
bb37ddefd3
commit
f9a91f9eae
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2007, 2009 Red Hat Inc..
|
* Copyright (c) 2006, 2012 Red Hat Inc..
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Red Hat Incorporated - initial API and implementation
|
* Red Hat Incorporated - initial API and implementation
|
||||||
|
* IBM Corporation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.autotools.ui.actions;
|
package org.eclipse.cdt.internal.autotools.ui.actions;
|
||||||
|
|
||||||
|
@ -14,6 +15,8 @@ import java.text.MessageFormat;
|
||||||
import java.util.MissingResourceException;
|
import java.util.MissingResourceException;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
|
import org.eclipse.osgi.util.TextProcessor;
|
||||||
|
|
||||||
public class InvokeMessages {
|
public class InvokeMessages {
|
||||||
private static final String BUNDLE_NAME = InvokeMessages.class.getName();
|
private static final String BUNDLE_NAME = InvokeMessages.class.getName();
|
||||||
|
|
||||||
|
@ -32,7 +35,7 @@ public class InvokeMessages {
|
||||||
*/
|
*/
|
||||||
public static String getString(String key) {
|
public static String getString(String key) {
|
||||||
try {
|
try {
|
||||||
return RESOURCE_BUNDLE.getString(key);
|
return TextProcessor.process(RESOURCE_BUNDLE.getString(key));
|
||||||
} catch (MissingResourceException e) {
|
} catch (MissingResourceException e) {
|
||||||
return '!' + key + '!';
|
return '!' + key + '!';
|
||||||
}
|
}
|
||||||
|
@ -47,7 +50,7 @@ public class InvokeMessages {
|
||||||
* @return the resource bundle message
|
* @return the resource bundle message
|
||||||
*/
|
*/
|
||||||
public static String getFormattedString(String key, String[] args) {
|
public static String getFormattedString(String key, String[] args) {
|
||||||
return MessageFormat.format(getString(key), (Object[])args);
|
return TextProcessor.process(MessageFormat.format(getString(key), (Object[])args));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue