[gtksourceview] Make properties descriptions untranslatable
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Make properties descriptions untranslatable
- Date: Sun, 7 Dec 2014 15:31:47 +0000 (UTC)
commit e9bc0e5d4f5c242a23f7d55d395fb2c70fa83bc9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Dec 7 15:56:10 2014 +0100
Make properties descriptions untranslatable
It's useless to translate the API. Properties are part of the API, it is
not seen by normal users, only by developers. GTK-Doc comments are
anyway not translated, so it's a bit strange to translate properties
while all the rest of the developer documentation is in English.
Moreover, translating properties is probably a difficult exercise. Some
comments for translators were needed. So it doesn't really worth the
effort.
gtksourceview/gtksourcebuffer.c | 39 +++++++---------
gtksourceview/gtksourcecompletion.c | 52 ++++++++++----------
gtksourceview/gtksourcecompletioncontext.c | 19 ++++----
gtksourceview/gtksourcecompletionitem.c | 20 ++++----
gtksourceview/gtksourcefile.c | 8 ++--
gtksourceview/gtksourcefileloader.c | 4 +-
gtksourceview/gtksourcefilesaver.c | 10 ++--
gtksourceview/gtksourcegutter.c | 19 +++----
gtksourceview/gtksourcegutterrenderer.c | 36 +++++++-------
gtksourceview/gtksourcegutterrendererpixbuf.c | 16 +++---
gtksourceview/gtksourcegutterrenderertext.c | 8 ++--
gtksourceview/gtksourcelanguage.c | 16 +++---
gtksourceview/gtksourcelanguagemanager.c | 13 ++---
gtksourceview/gtksourcemark.c | 4 +-
gtksourceview/gtksourcemarkattributes.c | 20 ++++----
gtksourceview/gtksourceprintcompositor.c | 61 +++++++++--------------
gtksourceview/gtksourcesearchcontext.c | 24 +++++-----
gtksourceview/gtksourcesearchsettings.c | 20 ++++----
gtksourceview/gtksourcestyle.c | 64 ++++++++++++------------
gtksourceview/gtksourcestylescheme.c | 16 +++---
gtksourceview/gtksourcestyleschememanager.c | 10 ++--
gtksourceview/gtksourceview.c | 62 ++++++++++++------------
22 files changed, 258 insertions(+), 283 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 1fd4d01..f29369a 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -286,9 +286,8 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
g_object_class_install_property (object_class,
PROP_HIGHLIGHT_SYNTAX,
g_param_spec_boolean ("highlight-syntax",
- _("Highlight Syntax"),
- _("Whether to highlight syntax "
- "in the buffer"),
+ "Highlight Syntax",
+ "Whether to highlight syntax in the buffer",
TRUE,
G_PARAM_READWRITE));
@@ -300,8 +299,8 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
g_object_class_install_property (object_class,
PROP_HIGHLIGHT_MATCHING_BRACKETS,
g_param_spec_boolean ("highlight-matching-brackets",
- _("Highlight Matching Brackets"),
- _("Whether to highlight matching brackets"),
+ "Highlight Matching Brackets",
+ "Whether to highlight matching brackets",
TRUE,
G_PARAM_READWRITE));
@@ -314,9 +313,8 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
g_object_class_install_property (object_class,
PROP_MAX_UNDO_LEVELS,
g_param_spec_int ("max-undo-levels",
- _("Maximum Undo Levels"),
- _("Number of undo levels for "
- "the buffer"),
+ "Maximum Undo Levels",
+ "Number of undo levels for the buffer",
-1,
G_MAXINT,
-1,
@@ -325,27 +323,24 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
g_object_class_install_property (object_class,
PROP_LANGUAGE,
g_param_spec_object ("language",
- /* Translators: throughout GtkSourceView
"language" stands
- * for "programming language", not "spoken
language" */
- _("Language"),
- _("Language object to get "
- "highlighting patterns from"),
+ "Language",
+ "Language object to get highlighting patterns
from",
GTK_SOURCE_TYPE_LANGUAGE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_CAN_UNDO,
g_param_spec_boolean ("can-undo",
- _("Can undo"),
- _("Whether Undo operation is possible"),
+ "Can undo",
+ "Whether Undo operation is possible",
FALSE,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_CAN_REDO,
g_param_spec_boolean ("can-redo",
- _("Can redo"),
- _("Whether Redo operation is possible"),
+ "Can redo",
+ "Whether Redo operation is possible",
FALSE,
G_PARAM_READABLE));
@@ -359,16 +354,16 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
g_object_class_install_property (object_class,
PROP_STYLE_SCHEME,
g_param_spec_object ("style_scheme",
- _("Style scheme"),
- _("Style scheme"),
+ "Style scheme",
+ "Style scheme",
GTK_SOURCE_TYPE_STYLE_SCHEME,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_UNDO_MANAGER,
g_param_spec_object ("undo-manager",
- _("Undo manager"),
- _("The buffer undo manager"),
+ "Undo manager",
+ "The buffer undo manager",
GTK_SOURCE_TYPE_UNDO_MANAGER,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -383,7 +378,7 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
g_object_class_install_property (object_class,
PROP_IMPLICIT_TRAILING_NEWLINE,
g_param_spec_boolean ("implicit-trailing-newline",
- _("Implicit trailing newline"),
+ "Implicit trailing newline",
"",
TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 67b0671..bd71245 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2193,8 +2193,8 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_VIEW,
g_param_spec_object ("view",
- _("View"),
- _("The GtkSourceView bound to the completion"),
+ "View",
+ "The GtkSourceView bound to the completion",
GTK_SOURCE_TYPE_VIEW,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -2208,10 +2208,10 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_REMEMBER_INFO_VISIBILITY,
g_param_spec_boolean ("remember-info-visibility",
- _("Remember Info Visibility"),
- _("Remember the last info window visibility
state"),
- FALSE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ "Remember Info Visibility",
+ "Remember the last info window visibility
state",
+ FALSE,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
/**
* GtkSourceCompletion:select-on-show:
*
@@ -2221,10 +2221,10 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_SELECT_ON_SHOW,
g_param_spec_boolean ("select-on-show",
- _("Select on Show"),
- _("Select first proposal when completion is
shown"),
- TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ "Select on Show",
+ "Select first proposal when completion is
shown",
+ TRUE,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
/**
* GtkSourceCompletion:show-headers:
@@ -2235,10 +2235,10 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_SHOW_HEADERS,
g_param_spec_boolean ("show-headers",
- _("Show Headers"),
- _("Show provider headers when proposals from
multiple providers are available"),
- TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ "Show Headers",
+ "Show provider headers when proposals from
multiple providers are available",
+ TRUE,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
/**
* GtkSourceCompletion:show-icons:
@@ -2249,10 +2249,10 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_SHOW_ICONS,
g_param_spec_boolean ("show-icons",
- _("Show Icons"),
- _("Show provider and proposal icons in the
completion popup"),
- TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ "Show Icons",
+ "Show provider and proposal icons in the
completion popup",
+ TRUE,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
/**
* GtkSourceCompletion:accelerators:
@@ -2264,8 +2264,8 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_ACCELERATORS,
g_param_spec_uint ("accelerators",
- _("Accelerators"),
- _("Number of proposal accelerators to show"),
+ "Accelerators",
+ "Number of proposal accelerators to show",
0,
10,
5,
@@ -2280,8 +2280,8 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_AUTO_COMPLETE_DELAY,
g_param_spec_uint ("auto-complete-delay",
- _("Auto Complete Delay"),
- _("Completion popup delay for interactive
completion"),
+ "Auto Complete Delay",
+ "Completion popup delay for interactive
completion",
0,
G_MAXUINT,
250,
@@ -2297,8 +2297,8 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_PROVIDER_PAGE_SIZE,
g_param_spec_uint ("provider-page-size",
- _("Provider Page Size"),
- _("Provider scrolling page size"),
+ "Provider Page Size",
+ "Provider scrolling page size",
1,
G_MAXUINT,
5,
@@ -2318,8 +2318,8 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
g_object_class_install_property (object_class,
PROP_PROPOSAL_PAGE_SIZE,
g_param_spec_uint ("proposal-page-size",
- _("Proposal Page Size"),
- _("Proposal scrolling page size"),
+ "Proposal Page Size",
+ "Proposal scrolling page size",
1,
G_MAXUINT,
5,
diff --git a/gtksourceview/gtksourcecompletioncontext.c b/gtksourceview/gtksourcecompletioncontext.c
index 723bdf4..8fb5255 100644
--- a/gtksourceview/gtksourcecompletioncontext.c
+++ b/gtksourceview/gtksourcecompletioncontext.c
@@ -242,8 +242,8 @@ gtk_source_completion_context_class_init (GtkSourceCompletionContextClass *klass
g_object_class_install_property (object_class,
PROP_COMPLETION,
g_param_spec_object ("completion",
- _("Completion"),
- _("The completion object to which the context
belongs"),
+ "Completion",
+ "The completion object to which the context
belongs",
GTK_SOURCE_TYPE_COMPLETION,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -254,12 +254,11 @@ gtk_source_completion_context_class_init (GtkSourceCompletionContextClass *klass
**/
g_object_class_install_property (object_class,
PROP_ITER,
- g_param_spec_boxed ("iter",
- /* Translators: The GtkTextIter at which the completion was invoked */
- _("Iterator"),
- _("The GtkTextIter at which the completion was
invoked"),
- GTK_TYPE_TEXT_ITER,
- G_PARAM_READWRITE));
+ g_param_spec_boxed ("iter",
+ "Iterator",
+ "The GtkTextIter at which the completion was
invoked",
+ GTK_TYPE_TEXT_ITER,
+ G_PARAM_READWRITE));
/**
* GtkSourceCompletionContext:activation:
@@ -269,8 +268,8 @@ gtk_source_completion_context_class_init (GtkSourceCompletionContextClass *klass
g_object_class_install_property (object_class,
PROP_ACTIVATION,
g_param_spec_flags ("activation",
- _("Activation"),
- _("The type of activation"),
+ "Activation",
+ "The type of activation",
GTK_SOURCE_TYPE_COMPLETION_ACTIVATION,
GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
diff --git a/gtksourceview/gtksourcecompletionitem.c b/gtksourceview/gtksourcecompletionitem.c
index def896f..66df16d 100644
--- a/gtksourceview/gtksourcecompletionitem.c
+++ b/gtksourceview/gtksourcecompletionitem.c
@@ -233,8 +233,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
g_object_class_install_property (object_class,
PROP_LABEL,
g_param_spec_string ("label",
- _("Label"),
- _("Label to be shown for this item"),
+ "Label",
+ "Label to be shown for this item",
NULL,
G_PARAM_READWRITE));
@@ -246,8 +246,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
g_object_class_install_property (object_class,
PROP_MARKUP,
g_param_spec_string ("markup",
- _("Markup"),
- _("Markup to be shown for this item"),
+ "Markup",
+ "Markup to be shown for this item",
NULL,
G_PARAM_READWRITE));
@@ -259,8 +259,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
g_object_class_install_property (object_class,
PROP_TEXT,
g_param_spec_string ("text",
- _("Text"),
- _("Item text"),
+ "Text",
+ "Item text",
NULL,
G_PARAM_READWRITE));
@@ -272,8 +272,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
g_object_class_install_property (object_class,
PROP_ICON,
g_param_spec_object ("icon",
- _("Icon"),
- _("Icon to be shown for this item"),
+ "Icon",
+ "Icon to be shown for this item",
GDK_TYPE_PIXBUF,
G_PARAM_READWRITE));
@@ -285,8 +285,8 @@ gtk_source_completion_item_class_init (GtkSourceCompletionItemClass *klass)
g_object_class_install_property (object_class,
PROP_INFO,
g_param_spec_string ("info",
- _("Info"),
- _("Info to be shown for this item"),
+ "Info",
+ "Info to be shown for this item",
NULL,
G_PARAM_READWRITE));
}
diff --git a/gtksourceview/gtksourcefile.c b/gtksourceview/gtksourcefile.c
index fbb3112..b232d8d 100644
--- a/gtksourceview/gtksourcefile.c
+++ b/gtksourceview/gtksourcefile.c
@@ -164,7 +164,7 @@ gtk_source_file_class_init (GtkSourceFileClass *klass)
g_object_class_install_property (object_class,
PROP_LOCATION,
g_param_spec_object ("location",
- _("Location"),
+ "Location",
"",
G_TYPE_FILE,
G_PARAM_READWRITE |
@@ -181,7 +181,7 @@ gtk_source_file_class_init (GtkSourceFileClass *klass)
g_object_class_install_property (object_class,
PROP_ENCODING,
g_param_spec_boxed ("encoding",
- _("Encoding"),
+ "Encoding",
"",
GTK_SOURCE_TYPE_ENCODING,
G_PARAM_READABLE |
@@ -197,7 +197,7 @@ gtk_source_file_class_init (GtkSourceFileClass *klass)
g_object_class_install_property (object_class,
PROP_NEWLINE_TYPE,
g_param_spec_enum ("newline-type",
- _("Newline type"),
+ "Newline type",
"",
GTK_SOURCE_TYPE_NEWLINE_TYPE,
GTK_SOURCE_NEWLINE_TYPE_LF,
@@ -214,7 +214,7 @@ gtk_source_file_class_init (GtkSourceFileClass *klass)
g_object_class_install_property (object_class,
PROP_COMPRESSION_TYPE,
g_param_spec_enum ("compression-type",
- _("Compression type"),
+ "Compression type",
"",
GTK_SOURCE_TYPE_COMPRESSION_TYPE,
GTK_SOURCE_COMPRESSION_TYPE_NONE,
diff --git a/gtksourceview/gtksourcefileloader.c b/gtksourceview/gtksourcefileloader.c
index e18dbb5..d74cdcc 100644
--- a/gtksourceview/gtksourcefileloader.c
+++ b/gtksourceview/gtksourcefileloader.c
@@ -394,7 +394,7 @@ gtk_source_file_loader_class_init (GtkSourceFileLoaderClass *klass)
*/
g_object_class_install_property (object_class, PROP_LOCATION,
g_param_spec_object ("location",
- _("Location"),
+ "Location",
"",
G_TYPE_FILE,
G_PARAM_READWRITE |
@@ -411,7 +411,7 @@ gtk_source_file_loader_class_init (GtkSourceFileLoaderClass *klass)
*/
g_object_class_install_property (object_class, PROP_INPUT_STREAM,
g_param_spec_object ("input-stream",
- _("Input stream"),
+ "Input stream",
"",
G_TYPE_INPUT_STREAM,
G_PARAM_READWRITE |
diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
index 04b0ad1..0c6e3c9 100644
--- a/gtksourceview/gtksourcefilesaver.c
+++ b/gtksourceview/gtksourcefilesaver.c
@@ -373,7 +373,7 @@ gtk_source_file_saver_class_init (GtkSourceFileSaverClass *klass)
g_object_class_install_property (object_class,
PROP_LOCATION,
g_param_spec_object ("location",
- _("Location"),
+ "Location",
"",
G_TYPE_FILE,
G_PARAM_READWRITE |
@@ -390,7 +390,7 @@ gtk_source_file_saver_class_init (GtkSourceFileSaverClass *klass)
g_object_class_install_property (object_class,
PROP_ENCODING,
g_param_spec_boxed ("encoding",
- _("Encoding"),
+ "Encoding",
"",
GTK_SOURCE_TYPE_ENCODING,
G_PARAM_READWRITE |
@@ -407,7 +407,7 @@ gtk_source_file_saver_class_init (GtkSourceFileSaverClass *klass)
g_object_class_install_property (object_class,
PROP_NEWLINE_TYPE,
g_param_spec_enum ("newline-type",
- _("Newline type"),
+ "Newline type",
"",
GTK_SOURCE_TYPE_NEWLINE_TYPE,
GTK_SOURCE_NEWLINE_TYPE_LF,
@@ -425,7 +425,7 @@ gtk_source_file_saver_class_init (GtkSourceFileSaverClass *klass)
g_object_class_install_property (object_class,
PROP_COMPRESSION_TYPE,
g_param_spec_enum ("compression-type",
- _("Compression type"),
+ "Compression type",
"",
GTK_SOURCE_TYPE_COMPRESSION_TYPE,
GTK_SOURCE_COMPRESSION_TYPE_NONE,
@@ -443,7 +443,7 @@ gtk_source_file_saver_class_init (GtkSourceFileSaverClass *klass)
g_object_class_install_property (object_class,
PROP_FLAGS,
g_param_spec_flags ("flags",
- _("Flags"),
+ "Flags",
"",
GTK_SOURCE_TYPE_FILE_SAVER_FLAGS,
GTK_SOURCE_FILE_SAVER_FLAGS_NONE,
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index d2171d8..42e1cac 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -511,11 +511,8 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
g_object_class_install_property (object_class,
PROP_VIEW,
g_param_spec_object ("view",
- _("View"),
- /* Translators: gutters can be used to display
information
- * on the left or on the right of the text
view. To draw the
- * line numbers for example. */
- _("The gutters' GtkSourceView"),
+ "View",
+ "",
GTK_SOURCE_TYPE_VIEW,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -527,8 +524,8 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
g_object_class_install_property (object_class,
PROP_WINDOW_TYPE,
g_param_spec_enum ("window_type",
- _("Window Type"),
- _("The gutters' text window type"),
+ "Window Type",
+ "The gutters' text window type",
GTK_TYPE_TEXT_WINDOW_TYPE,
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -544,8 +541,8 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
g_object_class_install_property (object_class,
PROP_XPAD,
g_param_spec_int ("xpad",
- _("X Padding"),
- _("The x-padding"),
+ "X Padding",
+ "The x-padding",
-1,
G_MAXINT,
0,
@@ -564,8 +561,8 @@ gtk_source_gutter_class_init (GtkSourceGutterClass *klass)
g_object_class_install_property (object_class,
PROP_YPAD,
g_param_spec_int ("ypad",
- _("Y Padding"),
- _("The y-padding"),
+ "Y Padding",
+ "The y-padding",
-1,
G_MAXINT,
0,
diff --git a/gtksourceview/gtksourcegutterrenderer.c b/gtksourceview/gtksourcegutterrenderer.c
index d49924a..c2a8cc1 100644
--- a/gtksourceview/gtksourcegutterrenderer.c
+++ b/gtksourceview/gtksourcegutterrenderer.c
@@ -533,8 +533,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_VISIBLE,
g_param_spec_boolean ("visible",
- _("Visible"),
- _("Visible"),
+ "Visible",
+ "Visible",
TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -546,8 +546,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_XPAD,
g_param_spec_int ("xpad",
- _("X Padding"),
- _("The x-padding"),
+ "X Padding",
+ "The x-padding",
-1,
G_MAXINT,
0,
@@ -561,8 +561,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_YPAD,
g_param_spec_int ("ypad",
- _("Y Padding"),
- _("The y-padding"),
+ "Y Padding",
+ "The y-padding",
-1,
G_MAXINT,
0,
@@ -578,8 +578,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_XALIGN,
g_param_spec_float ("xalign",
- _("X Alignment"),
- _("The x-alignment"),
+ "X Alignment",
+ "The x-alignment",
-1,
1,
0,
@@ -595,8 +595,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_YALIGN,
g_param_spec_float ("yalign",
- _("Y Alignment"),
- _("The y-alignment"),
+ "Y Alignment",
+ "The y-alignment",
-1,
1,
0,
@@ -730,8 +730,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_VIEW,
g_param_spec_object ("view",
- _("The View"),
- _("The view"),
+ "The View",
+ "The view",
GTK_TYPE_TEXT_VIEW,
G_PARAM_READABLE));
@@ -747,8 +747,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_ALIGNMENT_MODE,
g_param_spec_enum ("alignment-mode",
- _("Alignment Mode"),
- _("The alignment mode"),
+ "Alignment Mode",
+ "The alignment mode",
GTK_SOURCE_TYPE_GUTTER_RENDERER_ALIGNMENT_MODE,
GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -763,8 +763,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_WINDOW_TYPE,
g_param_spec_enum ("window-type",
- _("Window Type"),
- _("The window type"),
+ "Window Type",
+ "The window type",
GTK_TYPE_TEXT_WINDOW_TYPE,
GTK_TEXT_WINDOW_PRIVATE,
G_PARAM_READABLE));
@@ -772,8 +772,8 @@ gtk_source_gutter_renderer_class_init (GtkSourceGutterRendererClass *klass)
g_object_class_install_property (object_class,
PROP_SIZE,
g_param_spec_int ("size",
- _("Size"),
- _("The size"),
+ "Size",
+ "The size",
0,
G_MAXINT,
0,
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.c b/gtksourceview/gtksourcegutterrendererpixbuf.c
index bb3cce1..5f0b00b 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.c
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.c
@@ -296,8 +296,8 @@ gtk_source_gutter_renderer_pixbuf_class_init (GtkSourceGutterRendererPixbufClass
g_object_class_install_property (object_class,
PROP_PIXBUF,
g_param_spec_object ("pixbuf",
- _("Pixbuf"),
- _("The pixbuf"),
+ "Pixbuf",
+ "The pixbuf",
GDK_TYPE_PIXBUF,
G_PARAM_READWRITE));
@@ -311,24 +311,24 @@ gtk_source_gutter_renderer_pixbuf_class_init (GtkSourceGutterRendererPixbufClass
g_object_class_install_property (object_class,
PROP_STOCK_ID,
g_param_spec_string ("stock-id",
- _("Stock Id"),
- _("The stock id"),
+ "Stock Id",
+ "The stock id",
NULL,
G_PARAM_READWRITE | G_PARAM_DEPRECATED));
g_object_class_install_property (object_class,
PROP_ICON_NAME,
g_param_spec_string ("icon-name",
- _("Icon Name"),
- _("The icon name"),
+ "Icon Name",
+ "The icon name",
NULL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_GICON,
g_param_spec_object ("gicon",
- _("GIcon"),
- _("The gicon"),
+ "GIcon",
+ "The gicon",
G_TYPE_ICON,
G_PARAM_READWRITE));
}
diff --git a/gtksourceview/gtksourcegutterrenderertext.c b/gtksourceview/gtksourcegutterrenderertext.c
index f9856b3..dcb313e 100644
--- a/gtksourceview/gtksourcegutterrenderertext.c
+++ b/gtksourceview/gtksourcegutterrenderertext.c
@@ -394,16 +394,16 @@ gtk_source_gutter_renderer_text_class_init (GtkSourceGutterRendererTextClass *kl
g_object_class_install_property (object_class,
PROP_MARKUP,
g_param_spec_string ("markup",
- _("Markup"),
- _("The markup"),
+ "Markup",
+ "The markup",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class,
PROP_TEXT,
g_param_spec_string ("text",
- _("Text"),
- _("The text"),
+ "Text",
+ "The text",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
}
diff --git a/gtksourceview/gtksourcelanguage.c b/gtksourceview/gtksourcelanguage.c
index 46b2999..68d0df2 100644
--- a/gtksourceview/gtksourcelanguage.c
+++ b/gtksourceview/gtksourcelanguage.c
@@ -224,32 +224,32 @@ gtk_source_language_class_init (GtkSourceLanguageClass *klass)
g_object_class_install_property (object_class,
PROP_ID,
g_param_spec_string ("id",
- _("Language id"),
- _("Language id"),
+ "Language id",
+ "Language id",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_NAME,
g_param_spec_string ("name",
- _("Language name"),
- _("Language name"),
+ "Language name",
+ "Language name",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_SECTION,
g_param_spec_string ("section",
- _("Language section"),
- _("Language section"),
+ "Language section",
+ "Language section",
NULL,
G_PARAM_READABLE));
g_object_class_install_property (object_class,
PROP_HIDDEN,
g_param_spec_boolean ("hidden",
- _("Hidden"),
- _("Whether the language should be hidden from
the user"),
+ "Hidden",
+ "Whether the language should be hidden from
the user",
FALSE,
G_PARAM_READABLE));
}
diff --git a/gtksourceview/gtksourcelanguagemanager.c b/gtksourceview/gtksourcelanguagemanager.c
index 682c831..0481e5f 100644
--- a/gtksourceview/gtksourcelanguagemanager.c
+++ b/gtksourceview/gtksourcelanguagemanager.c
@@ -146,19 +146,18 @@ gtk_source_language_manager_class_init (GtkSourceLanguageManagerClass *klass)
g_object_class_install_property (object_class,
PROP_SEARCH_PATH,
g_param_spec_boxed ("search-path",
- _("Language specification directories"),
- _("List of directories where the "
- "language specification files (.lang) "
- "are located"),
+ "Language specification directories",
+ "List of directories where the "
+ "language specification files (.lang) "
+ "are located",
G_TYPE_STRV,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_LANGUAGE_IDS,
g_param_spec_boxed ("language-ids",
- _("Language ids"),
- _("List of the ids of the available "
- "languages"),
+ "Language ids",
+ "List of the ids of the available languages",
G_TYPE_STRV,
G_PARAM_READABLE));
}
diff --git a/gtksourceview/gtksourcemark.c b/gtksourceview/gtksourcemark.c
index ccd8ddc..64af0d8 100644
--- a/gtksourceview/gtksourcemark.c
+++ b/gtksourceview/gtksourcemark.c
@@ -137,8 +137,8 @@ gtk_source_mark_class_init (GtkSourceMarkClass *klass)
g_object_class_install_property (object_class,
PROP_CATEGORY,
g_param_spec_string ("category",
- _("category"),
- _("The mark category"),
+ "Category",
+ "The mark category",
NULL,
G_PARAM_READABLE | G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtksourceview/gtksourcemarkattributes.c b/gtksourceview/gtksourcemarkattributes.c
index 9942bc3..6111321 100644
--- a/gtksourceview/gtksourcemarkattributes.c
+++ b/gtksourceview/gtksourcemarkattributes.c
@@ -284,8 +284,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
g_object_class_install_property (object_class,
PROP_BACKGROUND,
g_param_spec_boxed ("background",
- _("Background"),
- _("The background"),
+ "Background",
+ "The background",
GDK_TYPE_RGBA,
G_PARAM_READWRITE));
@@ -299,8 +299,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
g_object_class_install_property (object_class,
PROP_STOCK_ID,
g_param_spec_string ("stock-id",
- _("Stock Id"),
- _("The stock id"),
+ "Stock Id",
+ "The stock id",
NULL,
G_PARAM_READWRITE | G_PARAM_DEPRECATED));
@@ -312,8 +312,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
g_object_class_install_property (object_class,
PROP_PIXBUF,
g_param_spec_object ("pixbuf",
- _("Pixbuf"),
- _("The pixbuf"),
+ "Pixbuf",
+ "The pixbuf",
GDK_TYPE_PIXBUF,
G_PARAM_READWRITE));
@@ -325,8 +325,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
g_object_class_install_property (object_class,
PROP_ICON_NAME,
g_param_spec_string ("icon-name",
- _("Icon Name"),
- _("The icon name"),
+ "Icon Name",
+ "The icon name",
NULL,
G_PARAM_READWRITE));
@@ -338,8 +338,8 @@ gtk_source_mark_attributes_class_init (GtkSourceMarkAttributesClass *klass)
g_object_class_install_property (object_class,
PROP_GICON,
g_param_spec_object ("gicon",
- _("GIcon"),
- _("The GIcon"),
+ "GIcon",
+ "The GIcon",
G_TYPE_ICON,
G_PARAM_READWRITE));
diff --git a/gtksourceview/gtksourceprintcompositor.c b/gtksourceview/gtksourceprintcompositor.c
index 77af804..2fc3b09 100644
--- a/gtksourceview/gtksourceprintcompositor.c
+++ b/gtksourceview/gtksourceprintcompositor.c
@@ -442,8 +442,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_BUFFER,
g_param_spec_object ("buffer",
- _("Source Buffer"),
- _("The GtkSourceBuffer object to print"),
+ "Source Buffer",
+ "The GtkSourceBuffer object to print",
GTK_SOURCE_TYPE_BUFFER,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -460,8 +460,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_TAB_WIDTH,
g_param_spec_uint ("tab-width",
- _("Tab Width"),
- _("Width of a tab character expressed in spaces"),
+ "Tab Width",
+ "Width of a tab character expressed in spaces",
1,
MAX_TAB_WIDTH,
DEFAULT_TAB_WIDTH,
@@ -481,10 +481,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_WRAP_MODE,
g_param_spec_enum ("wrap-mode",
- _("Wrap Mode"),
- _("Whether to wrap lines never, "
- "at word boundaries, or at "
- "character boundaries."),
+ "Wrap Mode",
+ "",
GTK_TYPE_WRAP_MODE,
GTK_WRAP_NONE,
G_PARAM_READWRITE));
@@ -502,10 +500,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_HIGHLIGHT_SYNTAX,
g_param_spec_boolean ("highlight-syntax",
- _("Highlight Syntax"),
- _("Whether to print the "
- "document with highlighted "
- "syntax"),
+ "Highlight Syntax",
+ "",
TRUE,
G_PARAM_READWRITE));
@@ -524,9 +520,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_PRINT_LINE_NUMBERS,
g_param_spec_uint ("print-line-numbers",
- _("Print Line Numbers"),
- _("Interval of printed line numbers "
- "(0 means no numbers)"),
+ "Print Line Numbers",
+ "",
0, 100, 1,
G_PARAM_READWRITE));
@@ -547,9 +542,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_PRINT_HEADER,
g_param_spec_boolean ("print-header",
- _("Print Header"),
- _("Whether to print a header "
- "in each page"),
+ "Print Header",
+ "",
FALSE,
G_PARAM_READWRITE));
@@ -570,9 +564,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_PRINT_FOOTER,
g_param_spec_boolean ("print-footer",
- _("Print Footer"),
- _("Whether to print a footer "
- "in each page"),
+ "Print Footer",
+ "",
FALSE,
G_PARAM_READWRITE));
@@ -593,9 +586,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_BODY_FONT_NAME,
g_param_spec_string ("body-font-name",
- _("Body Font Name"),
- _("Name of the font to use for the text body "
- "(e.g. \"Monospace 10\")"),
+ "Body Font Name",
+ "",
NULL,
G_PARAM_READWRITE));
@@ -617,9 +609,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_LINE_NUMBERS_FONT_NAME,
g_param_spec_string ("line-numbers-font-name",
- _("Line Numbers Font Name"),
- _("Name of the font to use for the line numbers
"
- "(e.g. \"Monospace 10\")"),
+ "Line Numbers Font Name",
+ "",
NULL,
G_PARAM_READWRITE));
@@ -641,9 +632,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_HEADER_FONT_NAME,
g_param_spec_string ("header-font-name",
- _("Header Font Name"),
- _("Name of the font to use for the page header "
- "(e.g. \"Monospace 10\")"),
+ "Header Font Name",
+ "",
NULL,
G_PARAM_READWRITE));
@@ -665,9 +655,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_FOOTER_FONT_NAME,
g_param_spec_string ("footer-font-name",
- _("Footer Font Name"),
- _("Name of the font to use for the page footer "
- "(e.g. \"Monospace 10\")"),
+ "Footer Font Name",
+ "",
NULL,
G_PARAM_READWRITE));
@@ -682,10 +671,8 @@ gtk_source_print_compositor_class_init (GtkSourcePrintCompositorClass *klass)
g_object_class_install_property (object_class,
PROP_N_PAGES,
g_param_spec_int ("n-pages",
- _("Number of pages"),
- _("The number of pages in the document "
- "(-1 means the document has not been "
- "completely paginated)."),
+ "Number of pages",
+ "",
-1, G_MAXINT, -1,
G_PARAM_READABLE));
}
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index 6a3eb90..b769b5c 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -2758,8 +2758,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_object_class_install_property (object_class,
PROP_BUFFER,
g_param_spec_object ("buffer",
- _("Buffer"),
- _("The associated GtkSourceBuffer"),
+ "Buffer",
+ "The associated GtkSourceBuffer",
GTK_SOURCE_TYPE_BUFFER,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -2773,8 +2773,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_object_class_install_property (object_class,
PROP_SETTINGS,
g_param_spec_object ("settings",
- _("Settings"),
- _("The associated GtkSourceSearchSettings"),
+ "Settings",
+ "The associated GtkSourceSearchSettings",
GTK_SOURCE_TYPE_SEARCH_SETTINGS,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -2788,8 +2788,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_object_class_install_property (object_class,
PROP_HIGHLIGHT,
g_param_spec_boolean ("highlight",
- _("Highlight"),
- _("Highlight search occurrences"),
+ "Highlight",
+ "Highlight search occurrences",
TRUE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -2803,8 +2803,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_object_class_install_property (object_class,
PROP_MATCH_STYLE,
g_param_spec_object ("match-style",
- _("Match style"),
- _("The text style for matches"),
+ "Match style",
+ "The text style for matches",
GTK_SOURCE_TYPE_STYLE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -2820,8 +2820,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_object_class_install_property (object_class,
PROP_OCCURRENCES_COUNT,
g_param_spec_int ("occurrences-count",
- _("Occurrences count"),
- _("Total number of search occurrences"),
+ "Occurrences count",
+ "Total number of search occurrences",
-1,
G_MAXINT,
0,
@@ -2840,8 +2840,8 @@ gtk_source_search_context_class_init (GtkSourceSearchContextClass *klass)
g_object_class_install_property (object_class,
PROP_REGEX_ERROR,
g_param_spec_pointer ("regex-error",
- _("Regex error"),
- _("Regular expression error"),
+ "Regex error",
+ "Regular expression error",
G_PARAM_READABLE));
}
diff --git a/gtksourceview/gtksourcesearchsettings.c b/gtksourceview/gtksourcesearchsettings.c
index 7778ea9..51fc411 100644
--- a/gtksourceview/gtksourcesearchsettings.c
+++ b/gtksourceview/gtksourcesearchsettings.c
@@ -165,8 +165,8 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_SEARCH_TEXT,
g_param_spec_string ("search-text",
- _("Search text"),
- _("The text to search"),
+ "Search text",
+ "The text to search",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -180,8 +180,8 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_CASE_SENSITIVE,
g_param_spec_boolean ("case-sensitive",
- _("Case sensitive"),
- _("Case sensitive"),
+ "Case sensitive",
+ "Case sensitive",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -196,8 +196,8 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_AT_WORD_BOUNDARIES,
g_param_spec_boolean ("at-word-boundaries",
- _("At word boundaries"),
- _("Search at word boundaries"),
+ "At word boundaries",
+ "Search at word boundaries",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -213,8 +213,8 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_WRAP_AROUND,
g_param_spec_boolean ("wrap-around",
- _("Wrap around"),
- _("Wrap around"),
+ "Wrap around",
+ "Wrap around",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
@@ -229,8 +229,8 @@ gtk_source_search_settings_class_init (GtkSourceSearchSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_REGEX_ENABLED,
g_param_spec_boolean ("regex-enabled",
- _("Regex enabled"),
- _("Whether to search by regular expression"),
+ "Regex enabled",
+ "Whether to search by regular expression",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
}
diff --git a/gtksourceview/gtksourcestyle.c b/gtksourceview/gtksourcestyle.c
index be66f08..6803387 100644
--- a/gtksourceview/gtksourcestyle.c
+++ b/gtksourceview/gtksourcestyle.c
@@ -86,128 +86,128 @@ gtk_source_style_class_init (GtkSourceStyleClass *klass)
g_object_class_install_property (object_class,
PROP_LINE_BACKGROUND,
g_param_spec_string ("line-background",
- _("Line background"),
- _("Line background color"),
+ "Line background",
+ "Line background color",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_BACKGROUND,
g_param_spec_string ("background",
- _("Background"),
- _("Background color"),
+ "Background",
+ "Background color",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_FOREGROUND,
g_param_spec_string ("foreground",
- _("Foreground"),
- _("Foreground color"),
+ "Foreground",
+ "Foreground color",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_BOLD,
g_param_spec_boolean ("bold",
- _("Bold"),
- _("Bold"),
+ "Bold",
+ "Bold",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_ITALIC,
g_param_spec_boolean ("italic",
- _("Italic"),
- _("Italic"),
+ "Italic",
+ "Italic",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_UNDERLINE,
g_param_spec_boolean ("underline",
- _("Underline"),
- _("Underline"),
+ "Underline",
+ "Underline",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_STRIKETHROUGH,
g_param_spec_boolean ("strikethrough",
- _("Strikethrough"),
- _("Strikethrough"),
+ "Strikethrough",
+ "Strikethrough",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_SCALE,
g_param_spec_string ("scale",
- _("Scale"),
- _("Text scale factor"),
+ "Scale",
+ "Text scale factor",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_LINE_BACKGROUND_SET,
g_param_spec_boolean ("line-background-set",
- _("Line background set"),
- _("Whether line background color is set"),
+ "Line background set",
+ "Whether line background color is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_FOREGROUND_SET,
g_param_spec_boolean ("foreground-set",
- _("Foreground set"),
- _("Whether foreground color is set"),
+ "Foreground set",
+ "Whether foreground color is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_BACKGROUND_SET,
g_param_spec_boolean ("background-set",
- _("Background set"),
- _("Whether background color is set"),
+ "Background set",
+ "Whether background color is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_BOLD_SET,
g_param_spec_boolean ("bold-set",
- _("Bold set"),
- _("Whether bold attribute is set"),
+ "Bold set",
+ "Whether bold attribute is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_ITALIC_SET,
g_param_spec_boolean ("italic-set",
- _("Italic set"),
- _("Whether italic attribute is set"),
+ "Italic set",
+ "Whether italic attribute is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_UNDERLINE_SET,
g_param_spec_boolean ("underline-set",
- _("Underline set"),
- _("Whether underline attribute is set"),
+ "Underline set",
+ "Whether underline attribute is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_STRIKETHROUGH_SET,
g_param_spec_boolean ("strikethrough-set",
- _("Strikethrough set"),
- _("Whether strikethrough attribute is set"),
+ "Strikethrough set",
+ "Whether strikethrough attribute is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_SCALE_SET,
g_param_spec_boolean ("scale-set",
- _("Scale set"),
- _("Whether scale attribute is set"),
+ "Scale set",
+ "Whether scale attribute is set",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index 56278a1..7c7207c 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -207,8 +207,8 @@ gtk_source_style_scheme_class_init (GtkSourceStyleSchemeClass *klass)
g_object_class_install_property (object_class,
PROP_ID,
g_param_spec_string ("id",
- _("Style scheme id"),
- _("Style scheme id"),
+ "Style scheme id",
+ "Style scheme id",
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -220,8 +220,8 @@ gtk_source_style_scheme_class_init (GtkSourceStyleSchemeClass *klass)
g_object_class_install_property (object_class,
PROP_NAME,
g_param_spec_string ("name",
- _("Style scheme name"),
- _("Style scheme name"),
+ "Style scheme name",
+ "Style scheme name",
NULL,
G_PARAM_READABLE));
@@ -233,8 +233,8 @@ gtk_source_style_scheme_class_init (GtkSourceStyleSchemeClass *klass)
g_object_class_install_property (object_class,
PROP_DESCRIPTION,
g_param_spec_string ("description",
- _("Style scheme description"),
- _("Style scheme description"),
+ "Style scheme description",
+ "Style scheme description",
NULL,
G_PARAM_READABLE));
@@ -246,8 +246,8 @@ gtk_source_style_scheme_class_init (GtkSourceStyleSchemeClass *klass)
g_object_class_install_property (object_class,
PROP_FILENAME,
g_param_spec_string ("filename",
- _("Style scheme filename"),
- _("Style scheme filename"),
+ "Style scheme filename",
+ "Style scheme filename",
NULL,
G_PARAM_READABLE));
}
diff --git a/gtksourceview/gtksourcestyleschememanager.c b/gtksourceview/gtksourcestyleschememanager.c
index 8db07b3..68f4c0c 100644
--- a/gtksourceview/gtksourcestyleschememanager.c
+++ b/gtksourceview/gtksourcestyleschememanager.c
@@ -149,18 +149,16 @@ gtk_source_style_scheme_manager_class_init (GtkSourceStyleSchemeManagerClass *kl
g_object_class_install_property (object_class,
PROP_SEARCH_PATH,
g_param_spec_boxed ("search-path",
- _("Style scheme search path"),
- _("List of directories and files where the "
- "style schemes are located"),
+ "Style scheme search path",
+ "List of directories and files where the style
schemes are located",
G_TYPE_STRV,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_SCHEME_IDS,
g_param_spec_boxed ("scheme-ids",
- _("Scheme ids"),
- _("List of the ids of the available "
- "style schemes"),
+ "Scheme ids",
+ "List of the ids of the available style schemes",
G_TYPE_STRV,
G_PARAM_READABLE));
}
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index f442467..f9550aa 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -343,8 +343,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_COMPLETION,
g_param_spec_object ("completion",
- _("Completion"),
- _("The completion object associated with the
view"),
+ "Completion",
+ "The completion object associated with the
view",
GTK_SOURCE_TYPE_COMPLETION,
G_PARAM_READABLE));
@@ -356,8 +356,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_SHOW_LINE_NUMBERS,
g_param_spec_boolean ("show-line-numbers",
- _("Show Line Numbers"),
- _("Whether to display line numbers"),
+ "Show Line Numbers",
+ "Whether to display line numbers",
FALSE,
G_PARAM_READWRITE));
/**
@@ -368,8 +368,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_SHOW_LINE_MARKS,
g_param_spec_boolean ("show-line-marks",
- _("Show Line Marks"),
- _("Whether to display line mark pixbufs"),
+ "Show Line Marks",
+ "Whether to display line mark pixbufs",
FALSE,
G_PARAM_READWRITE));
@@ -381,8 +381,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_TAB_WIDTH,
g_param_spec_uint ("tab-width",
- _("Tab Width"),
- _("Width of a tab character expressed in spaces"),
+ "Tab Width",
+ "Width of a tab character expressed in spaces",
1,
MAX_TAB_WIDTH,
DEFAULT_TAB_WIDTH,
@@ -396,8 +396,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_INDENT_WIDTH,
g_param_spec_int ("indent-width",
- _("Indent Width"),
- _("Number of spaces to use for each step of
indent"),
+ "Indent Width",
+ "Number of spaces to use for each step of indent",
-1,
MAX_INDENT_WIDTH,
-1,
@@ -406,16 +406,16 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_AUTO_INDENT,
g_param_spec_boolean ("auto_indent",
- _("Auto Indentation"),
- _("Whether to enable auto indentation"),
+ "Auto Indentation",
+ "Whether to enable auto indentation",
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_INSERT_SPACES,
g_param_spec_boolean ("insert_spaces_instead_of_tabs",
- _("Insert Spaces Instead of Tabs"),
- _("Whether to insert spaces instead of tabs"),
+ "Insert Spaces Instead of Tabs",
+ "Whether to insert spaces instead of tabs",
FALSE,
G_PARAM_READWRITE));
@@ -427,8 +427,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_SHOW_RIGHT_MARGIN,
g_param_spec_boolean ("show-right-margin",
- _("Show Right Margin"),
- _("Whether to display the right margin"),
+ "Show Right Margin",
+ "Whether to display the right margin",
FALSE,
G_PARAM_READWRITE));
@@ -440,8 +440,8 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_RIGHT_MARGIN_POSITION,
g_param_spec_uint ("right-margin-position",
- _("Right Margin Position"),
- _("Position of the right margin"),
+ "Right Margin Position",
+ "Position of the right margin",
1,
MAX_RIGHT_MARGIN_POSITION,
DEFAULT_RIGHT_MARGIN_POSITION,
@@ -457,10 +457,10 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_SMART_HOME_END,
g_param_spec_enum ("smart_home_end",
- _("Smart Home/End"),
- _("HOME and END keys move to first/last "
- "non whitespace characters on line before going
"
- "to the start/end of the line"),
+ "Smart Home/End",
+ "HOME and END keys move to first/last "
+ "non whitespace characters on line before going "
+ "to the start/end of the line",
GTK_SOURCE_TYPE_SMART_HOME_END_TYPE,
GTK_SOURCE_SMART_HOME_END_DISABLED,
G_PARAM_READWRITE));
@@ -468,16 +468,16 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_HIGHLIGHT_CURRENT_LINE,
g_param_spec_boolean ("highlight_current_line",
- _("Highlight current line"),
- _("Whether to highlight the current line"),
+ "Highlight current line",
+ "Whether to highlight the current line",
FALSE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_INDENT_ON_TAB,
g_param_spec_boolean ("indent_on_tab",
- _("Indent on tab"),
- _("Whether to indent the selected text when
the tab key is pressed"),
+ "Indent on tab",
+ "Whether to indent the selected text when the
tab key is pressed",
TRUE,
G_PARAM_READWRITE));
@@ -491,11 +491,11 @@ gtk_source_view_class_init (GtkSourceViewClass *klass)
g_object_class_install_property (object_class,
PROP_DRAW_SPACES,
g_param_spec_flags ("draw-spaces",
- _("Draw Spaces"),
- _("Set if and how the spaces should be
visualized"),
- GTK_SOURCE_TYPE_DRAW_SPACES_FLAGS,
- 0,
- G_PARAM_READWRITE));
+ "Draw Spaces",
+ "Set if and how the spaces should be visualized",
+ GTK_SOURCE_TYPE_DRAW_SPACES_FLAGS,
+ 0,
+ G_PARAM_READWRITE));
signals [UNDO] =
g_signal_new ("undo",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]