[gnome-software] Improve how strings appear to translators in the popular tile



commit 773ddfccf2e40f9c0ec9f840c8e072316ddac637
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Sep 19 12:00:19 2017 +0200

    Improve how strings appear to translators in the popular tile
    
    Instead of translating a string and formatting it in another one,
    we should format the whole formation as it may have implications in
    other languages that we haven't counted on.

 src/gs-popular-tile.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-popular-tile.c b/src/gs-popular-tile.c
index c184b6f..514f237 100644
--- a/src/gs-popular-tile.c
+++ b/src/gs-popular-tile.c
@@ -66,9 +66,9 @@ 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"));
+               /* TRANSLATORS: this refers to an app (by name) that is installed */
+               name = g_strdup_printf (_("%s (Installed)"),
+                                       gs_app_get_name (tile->app));
                break;
        case AS_APP_STATE_AVAILABLE:
        default:
@@ -202,7 +202,7 @@ gs_popular_tile_show_source (GsPopularTile *tile, gboolean show_source)
                const gchar *hostname = gs_app_get_origin_hostname (tile->app);
                if (hostname != NULL) {
                        /* TRANSLATORS: this refers to where the app came from */
-                       g_autofree gchar *source_text = g_strdup_printf ("%s: %s", _("Source"),
+                       g_autofree gchar *source_text = g_strdup_printf (_("Source: %s"),
                                                                         hostname);
                        gtk_label_set_label (GTK_LABEL (tile->label_origin), source_text);
                } else {


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