summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Drąg <piotrdrag@gmail.com>2015-11-02 21:15:50 +0100
committerDavid King <amigadave@amigadave.com>2017-06-20 11:42:10 +0100
commitd7190220a3e70eca4e541146a091541264397519 (patch)
treebbed686eaf2effe2909703777f6a55adb67d513e
parentb8ddfe07efd701dd16e6ba5b885a99670836eba9 (diff)
downloadyelp-d7190220a3e70eca4e541146a091541264397519.tar.gz
Don’t translate properties
They are not user-visible. https://bugzilla.gnome.org/show_bug.cgi?id=757496
-rw-r--r--libyelp/yelp-document.c8
-rw-r--r--libyelp/yelp-search-entry.c8
-rw-r--r--libyelp/yelp-settings.c20
-rw-r--r--libyelp/yelp-sqlite-storage.c4
-rw-r--r--libyelp/yelp-transform.c4
-rw-r--r--libyelp/yelp-view.c28
-rw-r--r--po/POTFILES.in2
-rw-r--r--src/yelp-window.c4
8 files changed, 38 insertions, 40 deletions
diff --git a/libyelp/yelp-document.c b/libyelp/yelp-document.c
index 547ef24d..6adbbb1d 100644
--- a/libyelp/yelp-document.c
+++ b/libyelp/yelp-document.c
@@ -277,8 +277,8 @@ yelp_document_class_init (YelpDocumentClass *klass)
g_object_class_install_property (object_class,
PROP_INDEXED,
g_param_spec_boolean ("indexed",
- N_("Indexed"),
- N_("Whether the document content has been indexed"),
+ "Indexed",
+ "Whether the document content has been indexed",
FALSE,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@@ -286,8 +286,8 @@ yelp_document_class_init (YelpDocumentClass *klass)
g_object_class_install_property (object_class,
PROP_URI,
g_param_spec_object ("document-uri",
- N_("Document URI"),
- N_("The URI which identifies the document"),
+ "Document URI",
+ "The URI which identifies the document",
YELP_TYPE_URI,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
diff --git a/libyelp/yelp-search-entry.c b/libyelp/yelp-search-entry.c
index 5b5706ce..55be49cc 100644
--- a/libyelp/yelp-search-entry.c
+++ b/libyelp/yelp-search-entry.c
@@ -169,8 +169,8 @@ yelp_search_entry_class_init (YelpSearchEntryClass *klass)
g_object_class_install_property (object_class,
PROP_VIEW,
g_param_spec_object ("view",
- _("View"),
- _("A YelpView instance to control"),
+ "View",
+ "A YelpView instance to control",
YELP_TYPE_VIEW,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@@ -185,8 +185,8 @@ yelp_search_entry_class_init (YelpSearchEntryClass *klass)
g_object_class_install_property (object_class,
PROP_BOOKMARKS,
g_param_spec_object ("bookmarks",
- _("Bookmarks"),
- _("A YelpBookmarks implementation instance"),
+ "Bookmarks",
+ "A YelpBookmarks implementation instance",
YELP_TYPE_BOOKMARKS,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 74f1aee9..05bbfb31 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -145,8 +145,8 @@ yelp_settings_class_init (YelpSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_GTK_SETTINGS,
g_param_spec_object ("gtk-settings",
- _("GtkSettings"),
- _("A GtkSettings object to get settings from"),
+ "GtkSettings",
+ "A GtkSettings object to get settings from",
GTK_TYPE_SETTINGS,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -154,8 +154,8 @@ yelp_settings_class_init (YelpSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_GTK_ICON_THEME,
g_param_spec_object ("gtk-icon-theme",
- _("GtkIconTheme"),
- _("A GtkIconTheme object to get icons from"),
+ "GtkIconTheme",
+ "A GtkIconTheme object to get icons from",
GTK_TYPE_ICON_THEME,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -163,8 +163,8 @@ yelp_settings_class_init (YelpSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_FONT_ADJUSTMENT,
g_param_spec_int ("font-adjustment",
- _("Font Adjustment"),
- _("A size adjustment to add to font sizes"),
+ "Font Adjustment",
+ "A size adjustment to add to font sizes",
-3, 10, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -172,8 +172,8 @@ yelp_settings_class_init (YelpSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_SHOW_TEXT_CURSOR,
g_param_spec_boolean ("show-text-cursor",
- _("Show Text Cursor"),
- _("Show the text cursor or caret for accessible navigation"),
+ "Show Text Cursor",
+ "Show the text cursor or caret for accessible navigation",
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -181,8 +181,8 @@ yelp_settings_class_init (YelpSettingsClass *klass)
g_object_class_install_property (object_class,
PROP_EDITOR_MODE,
g_param_spec_boolean ("editor-mode",
- _("Editor Mode"),
- _("Enable features useful to editors"),
+ "Editor Mode",
+ "Enable features useful to editors",
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
diff --git a/libyelp/yelp-sqlite-storage.c b/libyelp/yelp-sqlite-storage.c
index eeeb4045..c872f729 100644
--- a/libyelp/yelp-sqlite-storage.c
+++ b/libyelp/yelp-sqlite-storage.c
@@ -142,8 +142,8 @@ yelp_sqlite_storage_class_init (YelpSqliteStorageClass *klass)
g_object_class_install_property (object_class,
PROP_FILENAME,
g_param_spec_string ("filename",
- N_("Database filename"),
- N_("The filename of the sqlite database"),
+ "Database filename",
+ "The filename of the sqlite database",
NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
diff --git a/libyelp/yelp-transform.c b/libyelp/yelp-transform.c
index d0d2a350..334438af 100644
--- a/libyelp/yelp-transform.c
+++ b/libyelp/yelp-transform.c
@@ -161,8 +161,8 @@ yelp_transform_class_init (YelpTransformClass *klass)
g_object_class_install_property (object_class,
PROP_STYLESHEET,
g_param_spec_string ("stylesheet",
- N_("XSLT Stylesheet"),
- N_("The location of the XSLT stylesheet"),
+ "XSLT Stylesheet",
+ "The location of the XSLT stylesheet",
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index c4432217..6f08ce19 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -522,8 +522,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_URI,
g_param_spec_object ("yelp-uri",
- _("Yelp URI"),
- _("A YelpUri with the current location"),
+ "Yelp URI",
+ "A YelpUri with the current location",
YELP_TYPE_URI,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -531,8 +531,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_STATE,
g_param_spec_enum ("state",
- N_("Loading State"),
- N_("The loading state of the view"),
+ "Loading State",
+ "The loading state of the view",
YELP_TYPE_VIEW_STATE,
YELP_VIEW_STATE_BLANK,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |
@@ -541,8 +541,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_PAGE_ID,
g_param_spec_string ("page-id",
- N_("Page ID"),
- N_("The ID of the root page of the page being viewed"),
+ "Page ID",
+ "The ID of the root page of the page being viewed",
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -550,8 +550,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_ROOT_TITLE,
g_param_spec_string ("root-title",
- N_("Root Title"),
- N_("The title of the root page of the page being viewed"),
+ "Root Title",
+ "The title of the root page of the page being viewed",
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -559,8 +559,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_PAGE_TITLE,
g_param_spec_string ("page-title",
- N_("Page Title"),
- N_("The title of the page being viewed"),
+ "Page Title",
+ "The title of the page being viewed",
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -568,8 +568,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_PAGE_DESC,
g_param_spec_string ("page-desc",
- N_("Page Description"),
- N_("The description of the page being viewed"),
+ "Page Description",
+ "The description of the page being viewed",
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@@ -577,8 +577,8 @@ yelp_view_class_init (YelpViewClass *klass)
g_object_class_install_property (object_class,
PROP_PAGE_ICON,
g_param_spec_string ("page-icon",
- N_("Page Icon"),
- N_("The icon of the page being viewed"),
+ "Page Icon",
+ "The icon of the page being viewed",
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3bf74903..b17af0f7 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -14,9 +14,7 @@ libyelp/yelp-magic-decompressor.c
libyelp/yelp-mallard-document.c
libyelp/yelp-man-document.c
libyelp/yelp-search-entry.c
-libyelp/yelp-settings.c
libyelp/yelp-simple-document.c
-libyelp/yelp-sqlite-storage.c
libyelp/yelp-storage.c
libyelp/yelp-transform.c
libyelp/yelp-uri.c
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 9e535ea0..8fdcd645 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -208,8 +208,8 @@ yelp_window_class_init (YelpWindowClass *klass)
g_object_class_install_property (object_class,
PROP_APPLICATION,
g_param_spec_object ("application",
- _("Application"),
- _("A YelpApplication instance that controls this window"),
+ "Application",
+ "A YelpApplication instance that controls this window",
YELP_TYPE_APPLICATION,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_NAME |