[gtkhtml] Bug #325121 - Do not translate developer strings in g_param_spec_*



commit 718ad79bd3cc26de39ea070adea26ed7d22fefbe
Author: Milan Crha <mcrha redhat com>
Date:   Thu Apr 1 21:17:50 2010 +0200

    Bug #325121 - Do not translate developer strings in g_param_spec_*

 components/editor/gtkhtml-color-combo.c   |   42 +++++++++-------------------
 components/editor/gtkhtml-color-state.c   |   20 +++++++-------
 components/editor/gtkhtml-color-swatch.c  |    8 +++---
 components/editor/gtkhtml-combo-box.c     |    4 +-
 components/editor/gtkhtml-editor.c        |   28 +++++++++---------
 components/editor/gtkhtml-spell-checker.c |    4 +-
 components/editor/gtkhtml-spell-dialog.c  |    4 +-
 gtkhtml/gtkhtml.c                         |   40 +++++++++++++-------------
 8 files changed, 68 insertions(+), 82 deletions(-)
---
diff --git a/components/editor/gtkhtml-color-combo.c b/components/editor/gtkhtml-color-combo.c
index 76f110e..a37432f 100644
--- a/components/editor/gtkhtml-color-combo.c
+++ b/components/editor/gtkhtml-color-combo.c
@@ -724,8 +724,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_CURRENT_COLOR,
 		g_param_spec_boxed (
 			"current-color",
-			_("Current color"),
-			_("The currently selected color"),
+			"Current color",
+			"The currently selected color",
 			GDK_TYPE_COLOR,
 			G_PARAM_READWRITE));
 
@@ -734,8 +734,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_DEFAULT_COLOR,
 		g_param_spec_boxed (
 			"default-color",
-			_("Default color"),
-			_("The color associated with the default button"),
+			"Default color",
+			"The color associated with the default button",
 			GDK_TYPE_COLOR,
 			G_PARAM_CONSTRUCT |
 			G_PARAM_READWRITE));
@@ -745,8 +745,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_DEFAULT_LABEL,
 		g_param_spec_string (
 			"default-label",
-			_("Default label"),
-			_("The label for the default button"),
+			"Default label",
+			"The label for the default button",
 			_("Default"),
 			G_PARAM_CONSTRUCT |
 			G_PARAM_READWRITE));
@@ -756,8 +756,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_DEFAULT_TRANSPARENT,
 		g_param_spec_boolean (
 			"default-transparent",
-			_("Default is transparent"),
-			_("Whether the default color is transparent"),
+			"Default is transparent",
+			"Whether the default color is transparent",
 			FALSE,
 			G_PARAM_CONSTRUCT |
 			G_PARAM_READWRITE));
@@ -767,8 +767,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_PALETTE,
 		g_param_spec_object (
 			"palette",
-			_("Color palette"),
-			_("Custom color palette"),
+			"Color palette",
+			"Custom color palette",
 			GTKHTML_TYPE_COLOR_PALETTE,
 			G_PARAM_READWRITE));
 
@@ -777,14 +777,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_POPUP_SHOWN,
 		g_param_spec_boolean (
 			"popup-shown",
-			/* Translators: This is the nickname for a
-			 * GtkhtmlColorCombo property named "popup-shown",
-			 * based on a similar property in GtkComboBox. */
-			_("Popup shown"),
-			/* Translators: This is the blurb for a
-			 * GtkhtmlColorCombo property named "popup-shown",
-			 * based on a similar property in GtkComboBox. */
-			_("Whether the combo's dropdown is shown"),
+			"Popup shown",
+			"Whether the combo's dropdown is shown",
 			FALSE,
 			G_PARAM_READWRITE));
 
@@ -793,16 +787,8 @@ color_combo_class_init (GtkhtmlColorComboClass *class)
 		PROP_STATE,
 		g_param_spec_object (
 			"state",
-			/* Translators: This is the nickname for a
-			GtkHtmlColorCombo property named "state". It holds all
-			the internal values for a GtkHtml color combination box.
-			*/
-			_("Color state"),
-			/* Translators: This is the blurb for a
-			GtkHtmlColorCombo property named "state". It holds all
-			the internal values for a GtkHtml color combination box.
-			*/
-			_("The state of a color combo box"),
+			"Color state",
+			"The state of a color combo box",
 			GTKHTML_TYPE_COLOR_STATE,
 			G_PARAM_READWRITE));
 
diff --git a/components/editor/gtkhtml-color-state.c b/components/editor/gtkhtml-color-state.c
index 06cfb69..dec4979 100644
--- a/components/editor/gtkhtml-color-state.c
+++ b/components/editor/gtkhtml-color-state.c
@@ -202,8 +202,8 @@ color_state_class_init (GtkhtmlColorStateClass *class)
 		PROP_CURRENT_COLOR,
 		g_param_spec_boxed (
 			"current-color",
-			_("Current color"),
-			_("The current color"),
+			"Current color",
+			"The current color",
 			GDK_TYPE_COLOR,
 			G_PARAM_READWRITE));
 
@@ -212,8 +212,8 @@ color_state_class_init (GtkhtmlColorStateClass *class)
 		PROP_DEFAULT_COLOR,
 		g_param_spec_boxed (
 			"default-color",
-			_("Default color"),
-			_("The default color"),
+			"Default color",
+			"The default color",
 			GDK_TYPE_COLOR,
 			G_PARAM_CONSTRUCT |
 			G_PARAM_READWRITE));
@@ -223,8 +223,8 @@ color_state_class_init (GtkhtmlColorStateClass *class)
 		PROP_DEFAULT_LABEL,
 		g_param_spec_string (
 			"default-label",
-			_("Default label"),
-			_("Description of the default color"),
+			"Default label",
+			"Description of the default color",
 			_("Default"),
 			G_PARAM_CONSTRUCT |
 			G_PARAM_READWRITE));
@@ -234,8 +234,8 @@ color_state_class_init (GtkhtmlColorStateClass *class)
 		PROP_DEFAULT_TRANSPARENT,
 		g_param_spec_boolean (
 			"default-transparent",
-			_("Default is transparent"),
-			_("Whether the default color is transparent"),
+			"Default is transparent",
+			"Whether the default color is transparent",
 			FALSE,
 			G_PARAM_CONSTRUCT |
 			G_PARAM_READWRITE));
@@ -245,8 +245,8 @@ color_state_class_init (GtkhtmlColorStateClass *class)
 		PROP_PALETTE,
 		g_param_spec_object (
 			"palette",
-			_("Color palette"),
-			_("Custom color palette"),
+			"Color palette",
+			"Custom color palette",
 			GTKHTML_TYPE_COLOR_PALETTE,
 			G_PARAM_READWRITE));
 
diff --git a/components/editor/gtkhtml-color-swatch.c b/components/editor/gtkhtml-color-swatch.c
index 3cb1c02..5ff8ec2 100644
--- a/components/editor/gtkhtml-color-swatch.c
+++ b/components/editor/gtkhtml-color-swatch.c
@@ -179,8 +179,8 @@ color_swatch_class_init (GtkhtmlColorSwatchClass *class)
 		PROP_COLOR,
 		g_param_spec_boxed (
 			"color",
-			_("Color"),
-			_("The current color"),
+			"Color",
+			"The current color",
 			GDK_TYPE_COLOR,
 			G_PARAM_READWRITE));
 
@@ -189,8 +189,8 @@ color_swatch_class_init (GtkhtmlColorSwatchClass *class)
 		PROP_SHADOW_TYPE,
 		g_param_spec_enum (
 			"shadow-type",
-			_("Frame Shadow"),
-			_("Appearance of the frame border"),
+			"Frame Shadow",
+			"Appearance of the frame border",
 			GTK_TYPE_SHADOW_TYPE,
 			GTK_SHADOW_ETCHED_IN,
 			G_PARAM_READWRITE));
diff --git a/components/editor/gtkhtml-combo-box.c b/components/editor/gtkhtml-combo-box.c
index b37c87f..5a9b96d 100644
--- a/components/editor/gtkhtml-combo-box.c
+++ b/components/editor/gtkhtml-combo-box.c
@@ -320,8 +320,8 @@ combo_box_class_init (GtkhtmlComboBoxClass *class)
 		PROP_ACTION,
 		g_param_spec_object (
 			"action",
-			_("Action"),
-			_("A GtkRadioAction"),
+			"Action",
+			"A GtkRadioAction",
 			GTK_TYPE_RADIO_ACTION,
 			G_PARAM_READWRITE));
 }
diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c
index 8f10855..48e77ba 100644
--- a/components/editor/gtkhtml-editor.c
+++ b/components/editor/gtkhtml-editor.c
@@ -775,8 +775,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_CURRENT_FOLDER,
 		g_param_spec_string (
 			"current-folder",
-			_("Current Folder"),
-			_("The initial folder for file chooser dialogs"),
+			"Current Folder",
+			"The initial folder for file chooser dialogs",
 			g_get_home_dir (),
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT));
@@ -786,8 +786,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_FILENAME,
 		g_param_spec_string (
 			"filename",
-			_("Filename"),
-			_("The filename to use when saving"),
+			"Filename",
+			"The filename to use when saving",
 			NULL,
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT));
@@ -797,8 +797,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_HTML,
 		g_param_spec_object (
 			"html",
-			_("HTML Editing Widget"),
-			_("The main HTML editing widget"),
+			"HTML Editing Widget",
+			"The main HTML editing widget",
 			GTK_TYPE_HTML,
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT_ONLY));
@@ -808,8 +808,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_HTML_MODE,
 		g_param_spec_boolean (
 			"html-mode",
-			_("HTML Mode"),
-			_("Edit HTML or plain text"),
+			"HTML Mode",
+			"Edit HTML or plain text",
 			TRUE,
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT));
@@ -819,8 +819,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_INLINE_SPELLING,
 		g_param_spec_boolean (
 			"inline-spelling",
-			_("Inline Spelling"),
-			_("Check your spelling as you type"),
+			"Inline Spelling",
+			"Check your spelling as you type",
 			TRUE,
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT));
@@ -830,8 +830,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_MAGIC_LINKS,
 		g_param_spec_boolean (
 			"magic-links",
-			_("Magic Links"),
-			_("Make URIs clickable as you type"),
+			"Magic Links",
+			"Make URIs clickable as you type",
 			TRUE,
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT));
@@ -841,8 +841,8 @@ editor_class_init (GtkhtmlEditorClass *class)
 		PROP_MAGIC_SMILEYS,
 		g_param_spec_boolean (
 			"magic-smileys",
-			_("Magic Smileys"),
-			_("Convert emoticons to images as you type"),
+			"Magic Smileys",
+			"Convert emoticons to images as you type",
 			TRUE,
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT));
diff --git a/components/editor/gtkhtml-spell-checker.c b/components/editor/gtkhtml-spell-checker.c
index 61d0c2c..0b9f2fc 100644
--- a/components/editor/gtkhtml-spell-checker.c
+++ b/components/editor/gtkhtml-spell-checker.c
@@ -197,8 +197,8 @@ spell_checker_class_init (GtkhtmlSpellCheckerClass *class)
 		PROP_LANGUAGE,
 		g_param_spec_boxed (
 			"language",
-			_("Language"),
-			_("The language used by the spell checker"),
+			"Language",
+			"The language used by the spell checker",
 			GTKHTML_TYPE_SPELL_LANGUAGE,
 			G_PARAM_CONSTRUCT_ONLY |
 			G_PARAM_READWRITE));
diff --git a/components/editor/gtkhtml-spell-dialog.c b/components/editor/gtkhtml-spell-dialog.c
index 84e33d3..8012272 100644
--- a/components/editor/gtkhtml-spell-dialog.c
+++ b/components/editor/gtkhtml-spell-dialog.c
@@ -355,8 +355,8 @@ spell_dialog_class_init (GtkhtmlSpellDialogClass *class)
 		PROP_WORD,
 		g_param_spec_string (
 			"word",
-			_("Misspelled Word"),
-			_("The current misspelled word"),
+			"Misspelled Word",
+			"The current misspelled word",
 			NULL,
 			G_PARAM_READWRITE));
 
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 5771b3c..7a4af0b 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -3065,29 +3065,29 @@ gtk_html_class_init (GtkHTMLClass *klass)
 	g_object_class_install_property (gobject_class,
 					 PROP_EDITABLE,
 					 g_param_spec_boolean ("editable",
-							       _("Editable"),
-							       _("Whether the html can be edited"),
+							       "Editable",
+							       "Whether the html can be edited",
 							       FALSE,
 							       G_PARAM_READABLE | G_PARAM_WRITABLE));
 	g_object_class_install_property (gobject_class,
 					 PROP_TITLE,
 					 g_param_spec_string ("title",
-							      _("Document Title"),
-							      _("The title of the current document"),
+							      "Document Title",
+							      "The title of the current document",
 							      NULL,
 							      G_PARAM_WRITABLE | G_PARAM_READABLE));
 	g_object_class_install_property (gobject_class,
 					 PROP_DOCUMENT_BASE,
 					 g_param_spec_string ("document_base",
-							      _("Document Base"),
-							      _("The base URL for relative references"),
+							      "Document Base",
+							      "The base URL for relative references",
 							      NULL,
 							      G_PARAM_WRITABLE | G_PARAM_READABLE));
 	g_object_class_install_property (gobject_class,
 					 PROP_TARGET_BASE,
 					 g_param_spec_string ("target_base",
-							      _("Target Base"),
-							      _("The base URL of the target frame"),
+							      "Target Base",
+							      "The base URL of the target frame",
 							      NULL,
 							      G_PARAM_WRITABLE | G_PARAM_READABLE));
 
@@ -3095,39 +3095,39 @@ gtk_html_class_init (GtkHTMLClass *klass)
 
 	gtk_widget_class_install_style_property (widget_class,
 						 g_param_spec_string ("fixed_font_name",
-								     _("Fixed Width Font"),
-								     _("The Monospace font to use for typewriter text"),
+								     "Fixed Width Font",
+								     "The Monospace font to use for typewriter text",
 								     NULL,
 								     G_PARAM_READABLE));
 
 	gtk_widget_class_install_style_property (widget_class,
 						 g_param_spec_boxed ("link_color",
-								     _("New Link Color"),
-								     _("The color of new link elements"),
+								     "New Link Color",
+								     "The color of new link elements",
 								     GDK_TYPE_COLOR,
 								     G_PARAM_READABLE));
 	gtk_widget_class_install_style_property (widget_class,
 						 g_param_spec_boxed ("vlink_color",
-								     _("Visited Link Color"),
-								     _("The color of visited link elements"),
+								     "Visited Link Color",
+								     "The color of visited link elements",
 								     GDK_TYPE_COLOR,
 								     G_PARAM_READABLE));
 	gtk_widget_class_install_style_property (widget_class,
 						 g_param_spec_boxed ("alink_color",
-								     _("Active Link Color"),
-								     _("The color of active link elements"),
+								     "Active Link Color",
+								     "The color of active link elements",
 								     GDK_TYPE_COLOR,
 								     G_PARAM_READABLE));
 	gtk_widget_class_install_style_property (widget_class,
 						 g_param_spec_boxed ("spell_error_color",
-								     _("Spelling Error Color"),
-								     _("The color of the spelling error markers"),
+								     "Spelling Error Color",
+								     "The color of the spelling error markers",
 								     GDK_TYPE_COLOR,
 								     G_PARAM_READABLE));
 	gtk_widget_class_install_style_property (widget_class,
 						 g_param_spec_boxed ("cite_color",
-								     _("Cite Quotation Color"),
-								     _("The color of the cited text"),
+								     "Cite Quotation Color",
+								     "The color of the cited text",
 								     GDK_TYPE_COLOR,
 								     G_PARAM_READABLE));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]