]> Pileus Git - ~andy/gtk/commitdiff
printing: Mark texts for translation correctly
authorMarek Kasik <mkasik@redhat.com>
Mon, 4 Mar 2013 11:00:49 +0000 (12:00 +0100)
committerMarek Kasik <mkasik@redhat.com>
Mon, 4 Mar 2013 13:35:24 +0000 (14:35 +0100)
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

index 73fa7fe44f225b9be770babe29328e42fce2cab8..e80821c9a37dd0bb58df84745f1cdf0b16200c54 100644 (file)
@@ -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;