[gnome-software] Do not allow translations in plugins



commit cd1206ad5826712b5e8fd68a41c0bdfd50a50d6a
Author: Richard Hughes <richard hughsie com>
Date:   Sun Mar 27 20:36:41 2016 +0100

    Do not allow translations in plugins

 po/POTFILES.in                    |    5 -----
 src/gs-category.c                 |    3 +++
 src/plugins/gs-plugin-appstream.c |    2 +-
 src/plugins/gs-plugin-moduleset.c |    2 +-
 4 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b32efd6..17b383f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -57,10 +57,5 @@ src/gs-upgrade-banner.c
 src/gs-utils.c
 [type: gettext/glade]src/menus.ui
 src/org.gnome.Software.desktop.in
-src/plugins/gs-plugin-appstream.c
-src/plugins/gs-plugin-epiphany.c
-src/plugins/gs-plugin-moduleset.c
-src/plugins/gs-plugin-packagekit.c
-src/plugins/gs-plugin-packagekit-refine.c
 src/plugins/menu-spec-common.c
 [type: gettext/glade]src/popular-tile.ui
diff --git a/src/gs-category.c b/src/gs-category.c
index f54ae78..5d10c19 100644
--- a/src/gs-category.c
+++ b/src/gs-category.c
@@ -237,6 +237,9 @@ gs_category_new (GsCategory *parent, const gchar *id, const gchar *name)
                /* TRANSLATORS: this is a subcategory matching all the
                 * different apps in the parent category, e.g. "Games" */
                name =_("All");
+       } else if (g_strcmp0 (id, "featured") == 0) {
+               /* TRANSLATORS: this is a subcategory of featured apps */
+               name =_("Featured");
        }
 
        category = g_object_new (GS_TYPE_CATEGORY, NULL);
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 07d41d7..c287986 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -196,7 +196,7 @@ gs_plugin_appstream_startup (GsPlugin *plugin, GError **error)
                g_set_error (error,
                             GS_PLUGIN_LOADER_ERROR,
                             GS_PLUGIN_LOADER_ERROR_FAILED,
-                            _("No AppStream data found"));
+                            "No AppStream data found");
                return FALSE;
        }
 
diff --git a/src/plugins/gs-plugin-moduleset.c b/src/plugins/gs-plugin-moduleset.c
index a5cc516..7b808f7 100644
--- a/src/plugins/gs-plugin-moduleset.c
+++ b/src/plugins/gs-plugin-moduleset.c
@@ -150,7 +150,7 @@ gs_plugin_add_categories (GsPlugin *plugin,
                                guint size;
                                g_autoptr(GsCategory) cat = NULL;
 
-                               cat = gs_category_new (parent, "featured", _("Featured"));
+                               cat = gs_category_new (parent, "featured", NULL);
                                gs_category_add_subcategory (parent, cat);
                                size = gs_moduleset_get_n_featured (plugin->priv->moduleset, id);
                                gs_category_set_size (cat, size);


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