mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 312467: Strings were not translated properly.
This commit is contained in:
parent
9061e0e6a7
commit
8fcc98e15c
3 changed files with 46 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2009 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2010 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
|
||||
|
@ -229,7 +229,7 @@ class InstructionPointerManager {
|
|||
if (frame.getLevel() == 0) {
|
||||
id = ID_CURRENT_IP;
|
||||
if (text == null) {
|
||||
text = "Debug Current Instruction Pointer"; //$NON-NLS-1$
|
||||
text = Messages.IPAnnotation_primary;
|
||||
}
|
||||
if (image == null) {
|
||||
image = DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_INSTRUCTION_POINTER_TOP);
|
||||
|
@ -237,7 +237,7 @@ class InstructionPointerManager {
|
|||
} else {
|
||||
id = ID_SECONDARY_IP;
|
||||
if (text == null) {
|
||||
text = "Debug Call Stack"; //$NON-NLS-1$
|
||||
text = Messages.IPAnnotation_secondary;
|
||||
}
|
||||
if (image == null) {
|
||||
image = DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_INSTRUCTION_POINTER);
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 Ericsson 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
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Ericsson - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.debug.ui.sourcelookup;
|
||||
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
/**
|
||||
* @since 2.1
|
||||
*/
|
||||
public class Messages extends NLS {
|
||||
|
||||
public static String IPAnnotation_primary;
|
||||
public static String IPAnnotation_secondary;
|
||||
|
||||
static {
|
||||
// initialize resource bundle
|
||||
NLS.initializeMessages(Messages.class.getName(), Messages.class);
|
||||
}
|
||||
|
||||
private Messages() {
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2010 Ericsson 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
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
# Contributors:
|
||||
# Ericsson - initial API and implementation
|
||||
###############################################################################
|
||||
|
||||
IPAnnotation_primary=Debug Current Instruction Pointer
|
||||
IPAnnotation_secondary=Debug Call Stack
|
Loading…
Add table
Reference in a new issue