[gtk+] printing: Mark texts for translation correctly



commit 8075181033b50f2d3b8b0a1027e2767db6a14bdf
Author: Marek Kasik <mkasik redhat com>
Date:   Mon Mar 4 12:00:49 2013 +0100

    printing: Mark texts for translation correctly
    
    Use _() instead of N_() for printer states. Mark connection
    string "; " for translation so it is correctly handled for
    right to left languages.

 modules/printbackends/cups/gtkprintbackendcups.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c 
b/modules/printbackends/cups/gtkprintbackendcups.c
index 73fa7fe..e80821c 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -2226,13 +2226,13 @@ set_info_state_message (PrinterSetupInfo *info)
       gchar *tmp_msg2 = NULL;
       if (info->is_paused && !info->is_accepting_jobs)
         /* Translators: this is a printer status. */
-        tmp_msg2 = g_strdup ( N_("Paused; Rejecting Jobs"));
+        tmp_msg2 = g_strdup ( _("Paused; Rejecting Jobs"));
       if (info->is_paused && info->is_accepting_jobs)
         /* Translators: this is a printer status. */
-        tmp_msg2 = g_strdup ( N_("Paused"));
+        tmp_msg2 = g_strdup ( _("Paused"));
       if (!info->is_paused && !info->is_accepting_jobs)
         /* Translators: this is a printer status. */
-        tmp_msg2 = g_strdup ( N_("Rejecting Jobs"));
+        tmp_msg2 = g_strdup ( _("Rejecting Jobs"));
 
       if (tmp_msg2 != NULL)
         {
@@ -2273,7 +2273,8 @@ set_info_state_message (PrinterSetupInfo *info)
           else
             {
               gchar *tmp_msg = NULL;
-              tmp_msg = g_strjoin ("; ", info->state_msg,
+              /* Translators: this string connects multiple printer states together. */
+              tmp_msg = g_strjoin ( _("; "), info->state_msg,
                                    reason_msg_desc, NULL);
               g_free (info->state_msg);
               info->state_msg = tmp_msg;


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