Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] cdt.ui strings


Some stray strings in cdt.ui:
Editor context menu: "Search",
Note to translator in default-templates.xml,
CEditor preferences behavior page: "Show Line Number", "Color:" and list of colored items.



Cheers,
Tanya
Index: ChangeLog
===================================================================
retrieving revision 1.322
diff -u -r1.322 ChangeLog
--- ChangeLog	21 Mar 2004 07:04:01 -0000	1.322
+++ ChangeLog	22 Mar 2004 22:02:20 -0000
@@ -1,5 +1,14 @@
 2004-03-21 Alain Magloire
 
+	Externalized stray strings.
+	* src/org/eclipse/cdt/internal/corext/template/default-templates.xml
+	* src/org/eclipse/cdt/internal/ui/editor/CEditor.java
+	* src/org/eclipse/cdt/internal/ui/editor/CEditorMessages.properties
+	* src/org/eclipse/cdt/internal/ui/editor/CEditorPreferencePage.java
+	* src/org/eclipse/cdt/internal/ui/editor/PreferencesMessages.properties
+	
+2004-03-21 Alain Magloire
+
 	Show the binaries in the CView even if the parent
 	is a resource, this happen for IBinary/IArchive on 
 	the IOutputEntry path.
Index: src/org/eclipse/cdt/internal/corext/template/default-templates.xml
===================================================================
retrieving revision 1.5
diff -u -r1.5 default-templates.xml
--- src/org/eclipse/cdt/internal/corext/template/default-templates.xml	18 Mar 2004 23:34:30 -0000	1.5
+++ src/org/eclipse/cdt/internal/corext/template/default-templates.xml	22 Mar 2004 22:02:25 -0000
@@ -1,4 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
+<!-- NOTE TO TRANSLATOR:
+* Only these ENTITY strings listed in the DOCTYPE definition
+* are to be translated. The rest of this file should remain
+* English as it produces compilable code. 
+-->
+
 <!DOCTYPE document [
 	<!ENTITY withtempvar "with temporary variable">
 	<!ENTITY statement "statement">
@@ -13,6 +20,8 @@
 	<!ENTITY printtostdout "print to standard output">
 	<!ENTITY printtostderr "print to standard error">
 	<!ENTITY authorname "author name">
+	<!ENTITY commentText "To change this generated comment edit the template variable &quot;comment&quot;:
+ * Window&gt;Preferences&gt;C&gt;Templates.">
 	
 ]>
 
@@ -56,8 +65,7 @@
 }</template><template name="new" description="&createnewobject;" context="C++ Function" enabled="true">${type} ${name} = new ${type}(${arguments});</template><template name="comment" description="&defaultmultilinecomment;" context="C Global" enabled="true">/*
  * author ${user}
  *
- * To change this generated comment edit the template variable &quot;comment&quot;:
- * Window&gt;Preferences&gt;C&gt;Templates.
+ * &commentText;
  */</template>
  <template name="stdout" description="&printtostdout;" context="C Function" enabled="true">printf(${cursor});</template>
  <template name="stderr" description="&printtostderr;" context="C Function" enabled="true">fprintf(stderr, ${cursor});</template>
Index: src/org/eclipse/cdt/internal/ui/editor/CEditor.java
===================================================================
retrieving revision 1.47
diff -u -r1.47 CEditor.java
--- src/org/eclipse/cdt/internal/ui/editor/CEditor.java	16 Mar 2004 21:22:47 -0000	1.47
+++ src/org/eclipse/cdt/internal/ui/editor/CEditor.java	22 Mar 2004 22:02:25 -0000
@@ -529,7 +529,7 @@
 		// @@@ disabled for now until we get it to do something...
 		//addAction(menu, ITextEditorActionConstants.GROUP_EDIT, "Format"); //$NON-NLS-1$
 
-		MenuManager search = new MenuManager("Search", IContextMenuConstants.GROUP_SEARCH); //$NON-NLS-1$
+		MenuManager search = new MenuManager(CEditorMessages.getString("CEditor.menu.search"), IContextMenuConstants.GROUP_SEARCH); //$NON-NLS-1$
 		menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, search);
 		
 		if (SearchDialogAction.canActionBeAdded(getSelectionProvider().getSelection())){
Index: src/org/eclipse/cdt/internal/ui/editor/CEditorMessages.properties
===================================================================
retrieving revision 1.8
diff -u -r1.8 CEditorMessages.properties
--- src/org/eclipse/cdt/internal/ui/editor/CEditorMessages.properties	26 Feb 2004 19:30:35 -0000	1.8
+++ src/org/eclipse/cdt/internal/ui/editor/CEditorMessages.properties	22 Mar 2004 22:02:25 -0000
@@ -145,3 +145,4 @@
 CContentOutlinePage.menu.fileSearch=File Search
 CContentOutlinePage.error.noInput=no Editor Input
 CEditor.menu.fileSearch=File Search
+CEditor.menu.search=Search
Index: src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
===================================================================
retrieving revision 1.25
diff -u -r1.25 CEditorPreferencePage.java
--- src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java	17 Mar 2004 15:26:34 -0000	1.25
+++ src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java	22 Mar 2004 22:02:26 -0000
@@ -79,15 +79,15 @@
             PreferencesMessages.getString("CEditorPreferencePage.cCommentTaskTags"), PreferenceConstants.EDITOR_TASK_TAG_COLOR } //$NON-NLS-1$
 	};
 
-	protected final String[][] fAppearanceColorListModel = new String[][] { { "Line number color", ExtendedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR }, //$NON-NLS-1$
+	protected final String[][] fAppearanceColorListModel = new String[][] { { PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.lineNumberColor"), ExtendedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER_COLOR }, //$NON-NLS-1$
 		{
-			"Matching bracket color", CEditor.MATCHING_BRACKETS_COLOR }, //$NON-NLS-1$
+		PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.matchingBracketColor"), CEditor.MATCHING_BRACKETS_COLOR }, //$NON-NLS-1$
 		{
-			"Current line highlight color", ExtendedTextEditorPreferenceConstants.EDITOR_CURRENT_LINE_COLOR }, //$NON-NLS-1$
+			PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.currentLineHighlightColor"), ExtendedTextEditorPreferenceConstants.EDITOR_CURRENT_LINE_COLOR }, //$NON-NLS-1$
 		{
-			"Print margin color", ExtendedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN_COLOR }, //$NON-NLS-1$
+				PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.printMarginColor"), ExtendedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN_COLOR }, //$NON-NLS-1$
 		{
-			"Linked position color", CEditor.LINKED_POSITION_COLOR }, //$NON-NLS-1$
+					PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.linkedPositionColor"), CEditor.LINKED_POSITION_COLOR }, //$NON-NLS-1$
 	};
 
 	protected OverlayPreferenceStore fOverlayStore;
@@ -746,13 +746,13 @@
 		label = PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.matchingBrackets"); //$NON-NLS-1$
 		fBracketHighlightButton = addCheckBox(behaviorComposite, label, CEditor.MATCHING_BRACKETS, 0);
 
-		label = "Show line numbers"; //$NON-NLS-1$
+		label = PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.showLineNumbers"); //$NON-NLS-1$
 		addCheckBox(behaviorComposite, label, ExtendedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER, 0);
 
 		label = PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.highlightLine"); //$NON-NLS-1$
 		fLineHighlightButton = addCheckBox(behaviorComposite, label, ExtendedTextEditorPreferenceConstants.EDITOR_CURRENT_LINE, 0);
 
-		label = "Show overview ruler"; //$NON-NLS-1$
+		label = PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.showOverviewRuler"); //$NON-NLS-1$
 		addCheckBox(behaviorComposite, label, ExtendedTextEditorPreferenceConstants.EDITOR_OVERVIEW_RULER, 0);
 
 		label = PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.printMargin"); //$NON-NLS-1$
@@ -765,7 +765,7 @@
 		l.setLayoutData(gd);
 
 		l = new Label(behaviorComposite, SWT.LEFT);
-		l.setText("Appearance color options"); //$NON-NLS-1$
+		l.setText(PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.appearanceColorOptions")); //$NON-NLS-1$
 		gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
 		gd.horizontalSpan = 2;
 		l.setLayoutData(gd);
@@ -794,7 +794,7 @@
 		stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
 
 		l = new Label(stylesComposite, SWT.LEFT);
-		l.setText("Color:"); //$NON-NLS-1$
+		l.setText(PreferencesMessages.getString("CEditorPreferencePage.behaviorPage.Color")); //$NON-NLS-1$
 		gd = new GridData();
 		gd.horizontalAlignment = GridData.BEGINNING;
 		l.setLayoutData(gd);
Index: src/org/eclipse/cdt/internal/ui/preferences/PreferencesMessages.properties
===================================================================
retrieving revision 1.7
diff -u -r1.7 PreferencesMessages.properties
--- src/org/eclipse/cdt/internal/ui/preferences/PreferencesMessages.properties	17 Mar 2004 15:26:34 -0000	1.7
+++ src/org/eclipse/cdt/internal/ui/preferences/PreferencesMessages.properties	22 Mar 2004 22:02:26 -0000
@@ -109,6 +109,15 @@
 CEditorPreferencePage.behaviorPage.matchingBrackets=Highlight &matching brackets
 CEditorPreferencePage.behaviorPage.highlightLine=Highlight &current line
 CEditorPreferencePage.behaviorPage.printMargin=Show print &margin
+CEditorPreferencePage.behaviorPage.showLineNumbers=Show &line numbers
+CEditorPreferencePage.behaviorPage.showOverviewRuler=Show &overview ruler
+CEditorPreferencePage.behaviorPage.appearanceColorOptions=Appearance color options
+CEditorPreferencePage.behaviorPage.lineNumberColor=Line number color
+CEditorPreferencePage.behaviorPage.matchingBracketColor=Matching bracket color
+CEditorPreferencePage.behaviorPage.currentLineHighlightColor=Current line highlight color
+CEditorPreferencePage.behaviorPage.printMarginColor=Print margin color
+CEditorPreferencePage.behaviorPage.linkedPositionColor=Linked position color
+CEditorPreferencePage.behaviorPage.Color=Color:
 CEditorPreferencePage.textFont.changeButton=C&hange...
 TemplatePreferencePage.Viewer.preview=Preview:
 BuildConsolePreferencePage.fieldEditors.buildConsoleLines=&Build console lines: 

Back to the top