printers: add translation context to statuses (#641339)

Add translation context to printer status and job status. Increase required
inltool to 0.40.1 in order to use NC_(). See bug #641339 for details.
This commit is contained in:
Luca Ferretti 2011-02-07 11:55:27 +01:00 committed by Marek Kasik
parent 18d764cf9f
commit dfdc194cbe
2 changed files with 13 additions and 13 deletions

View file

@ -32,7 +32,7 @@ GNOME_DOC_INIT
# Internationalization support # Internationalization support
IT_PROG_INTLTOOL([0.40.0]) IT_PROG_INTLTOOL([0.40.1])
AM_GNU_GETTEXT_VERSION([0.17]) AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT([external])

View file

@ -241,9 +241,9 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
/* Translators: At least one input tray is empty */ /* Translators: At least one input tray is empty */
N_("Out of paper"), N_("Out of paper"),
/* Translators: The printer is offline */ /* Translators: The printer is offline */
N_("Offline"), NC_("printer state", "Offline"),
/* Translators: Someone has paused the Printer */ /* Translators: Someone has paused the Printer */
N_("Paused"), NC_("printer state", "Paused"),
/* Translators: The printer marker supply waste receptacle is almost full */ /* Translators: The printer marker supply waste receptacle is almost full */
N_("Waste receptacle almost full"), N_("Waste receptacle almost full"),
/* Translators: The printer marker supply waste receptacle is full */ /* Translators: The printer marker supply waste receptacle is full */
@ -343,15 +343,15 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
{ {
case 3: case 3:
/* Translators: Printer's state (can start new job without waiting) */ /* Translators: Printer's state (can start new job without waiting) */
status = g_strdup ( _("Idle")); status = g_strdup ( C_("printer state", "Idle"));
break; break;
case 4: case 4:
/* Translators: Printer's state (jobs are processing) */ /* Translators: Printer's state (jobs are processing) */
status = g_strdup ( _("Processing")); status = g_strdup ( C_("printer state", "Processing"));
break; break;
case 5: case 5:
/* Translators: Printer's state (no jobs can be processed) */ /* Translators: Printer's state (no jobs can be processed) */
status = g_strdup ( _("Stopped")); status = g_strdup ( C_("printer state", "Stopped"));
break; break;
} }
} }
@ -876,31 +876,31 @@ actualize_jobs_list (CcPrintersPanel *self)
{ {
case IPP_JOB_PENDING: case IPP_JOB_PENDING:
/* Translators: Job's state (job is waiting to be printed) */ /* Translators: Job's state (job is waiting to be printed) */
state = g_strdup (_("Pending")); state = g_strdup (C_("print job", "Pending"));
break; break;
case IPP_JOB_HELD: case IPP_JOB_HELD:
/* Translators: Job's state (job is held for printing) */ /* Translators: Job's state (job is held for printing) */
state = g_strdup (_("Held")); state = g_strdup (C_("print job", "Held"));
break; break;
case IPP_JOB_PROCESSING: case IPP_JOB_PROCESSING:
/* Translators: Job's state (job is currently printing) */ /* Translators: Job's state (job is currently printing) */
state = g_strdup (_("Processing")); state = g_strdup (C_("print job", "Processing"));
break; break;
case IPP_JOB_STOPPED: case IPP_JOB_STOPPED:
/* Translators: Job's state (job has been stopped) */ /* Translators: Job's state (job has been stopped) */
state = g_strdup (_("Stopped")); state = g_strdup (C_("print job", "Stopped"));
break; break;
case IPP_JOB_CANCELED: case IPP_JOB_CANCELED:
/* Translators: Job's state (job has been canceled) */ /* Translators: Job's state (job has been canceled) */
state = g_strdup (_("Canceled")); state = g_strdup (C_("print job", "Canceled"));
break; break;
case IPP_JOB_ABORTED: case IPP_JOB_ABORTED:
/* Translators: Job's state (job has aborted due to error) */ /* Translators: Job's state (job has aborted due to error) */
state = g_strdup (_("Aborted")); state = g_strdup (C_("print job", "Aborted"));
break; break;
case IPP_JOB_COMPLETED: case IPP_JOB_COMPLETED:
/* Translators: Job's state (job has completed successfully) */ /* Translators: Job's state (job has completed successfully) */
state = g_strdup (_("Completed")); state = g_strdup (C_("print job", "Completed"));
break; break;
} }