mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 441379 - Element Number Format option "Restore to Preference" was
not translatable Change-Id: I7c032ccf5c380c1d2445eb42575e9a6887904590 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/31233
This commit is contained in:
parent
b24a49090a
commit
4c8e2f3d91
3 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*****************************************************************
|
||||
* Copyright (c) 2011 Texas Instruments and others
|
||||
* Copyright (c) 2011, 2014 Texas Instruments and others
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -54,7 +54,8 @@ public class ElementNumberFormatsContribution extends NumberFormatsContribution
|
|||
|
||||
SelectFormatAction(IElementFormatProvider provider, IPresentationContext context, IVMNode[] nodes,
|
||||
Object viewerInput, TreePath[] elementPaths, String formatId) {
|
||||
super(formatId == null ? "Restore To Preference" : FormattedValueVMUtil.getFormatLabel(formatId), //$NON-NLS-1$
|
||||
super(formatId == null ? MessagesForNumberFormat.ElementNumberFormatContribution_RestoreToPreference_label :
|
||||
FormattedValueVMUtil.getFormatLabel(formatId),
|
||||
formatId == null ? AS_PUSH_BUTTON : AS_RADIO_BUTTON);
|
||||
fProvider = provider;
|
||||
fContext = context;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2009 IBM Corporation and others.
|
||||
* Copyright (c) 2006, 2014 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -26,7 +26,8 @@ public class MessagesForNumberFormat extends NLS {
|
|||
public static String FormattedValueVMUtil_Other_format__format_text;
|
||||
|
||||
public static String NumberFormatContribution_EmptyFormatsList_label;
|
||||
|
||||
public static String ElementNumberFormatContribution_RestoreToPreference_label;
|
||||
|
||||
public static String FormattedValueLabelText__Value__text_format;
|
||||
public static String FormattedValueLabelText__text_format;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2006, 2010 IBM Corporation and others.
|
||||
# Copyright (c) 2006, 2014 IBM Corporation and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
|
@ -27,3 +27,5 @@ FormattedValueLabelText__Value__text_format={0} ({1})
|
|||
|
||||
# {0} - Value string as formatted by ValueLabelText__Value__text_format.
|
||||
FormattedValueLabelText__text_format={0}
|
||||
|
||||
ElementNumberFormatContribution_RestoreToPreference_label=Restore To Preference
|
||||
|
|
Loading…
Add table
Reference in a new issue