[gnome-software] trivial: Fix how the apps' name + state are translated



commit 47c550ae65c6552f3fafb3cb8a8ed11cc9c953fe
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Jun 28 23:49:07 2016 +0200

    trivial: Fix how the apps' name + state are translated
    
    Translated strings should not be combined with other strings because
    the way something is perceived may change across locales.

 src/gs-summary-tile.c |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index 4454655..7c22672 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -71,27 +71,24 @@ app_state_changed_idle (gpointer user_data)
        case AS_APP_STATE_UPDATABLE:
        case AS_APP_STATE_UPDATABLE_LIVE:
                installed = TRUE;
-               name = g_strdup_printf ("%s (%s)",
-                                       gs_app_get_name (tile->app),
-                                       _("Installed"));
+               name = g_strdup_printf (_("%s (Installed)"),
+                                       gs_app_get_name (tile->app));
                /* TRANSLATORS: this is the small blue label on the tile
                 * that tells the user the application is installed */
                gtk_label_set_label (GTK_LABEL (label), _("Installed"));
                break;
        case AS_APP_STATE_INSTALLING:
                installed = TRUE;
-               name = g_strdup_printf ("%s (%s)",
-                                       gs_app_get_name (tile->app),
-                                       _("Installing"));
+               name = g_strdup_printf (_("%s (Installing)"),
+                                       gs_app_get_name (tile->app));
                /* TRANSLATORS: this is the small blue label on the tile
                 * that tells the user the application is being installed */
                gtk_label_set_label (GTK_LABEL (label), _("Installing"));
                break;
        case AS_APP_STATE_REMOVING:
                installed = TRUE;
-               name = g_strdup_printf ("%s (%s)",
-                                       gs_app_get_name (tile->app),
-                                       _("Removing"));
+               name = g_strdup_printf (_("%s (Removing)"),
+                                       gs_app_get_name (tile->app));
                /* TRANSLATORS: this is the small blue label on the tile
                 * that tells the user the application is being removed */
                gtk_label_set_label (GTK_LABEL (label), _("Removing"));


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