[gnome-control-center] printers: add translation context to statuses (#641339)
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: add translation context to statuses (#641339)
- Date: Mon, 7 Feb 2011 10:56:38 +0000 (UTC)
commit dfdc194cbe657167b96d3d0ebdce5c929a5e96ee
Author: Luca Ferretti <lferrett gnome org>
Date: Mon Feb 7 11:55:27 2011 +0100
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.
configure.ac | 2 +-
panels/printers/cc-printers-panel.c | 24 ++++++++++++------------
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 382ac72..4223709 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ GNOME_DOC_INIT
# Internationalization support
-IT_PROG_INTLTOOL([0.40.0])
+IT_PROG_INTLTOOL([0.40.1])
AM_GNU_GETTEXT_VERSION([0.17])
AM_GNU_GETTEXT([external])
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 453077d..2af7d35 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -241,9 +241,9 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
/* Translators: At least one input tray is empty */
N_("Out of paper"),
/* Translators: The printer is offline */
- N_("Offline"),
+ NC_("printer state", "Offline"),
/* Translators: Someone has paused the Printer */
- N_("Paused"),
+ NC_("printer state", "Paused"),
/* Translators: The printer marker supply waste receptacle is almost full */
N_("Waste receptacle almost full"),
/* Translators: The printer marker supply waste receptacle is full */
@@ -343,15 +343,15 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
{
case 3:
/* Translators: Printer's state (can start new job without waiting) */
- status = g_strdup ( _("Idle"));
+ status = g_strdup ( C_("printer state", "Idle"));
break;
case 4:
/* Translators: Printer's state (jobs are processing) */
- status = g_strdup ( _("Processing"));
+ status = g_strdup ( C_("printer state", "Processing"));
break;
case 5:
/* Translators: Printer's state (no jobs can be processed) */
- status = g_strdup ( _("Stopped"));
+ status = g_strdup ( C_("printer state", "Stopped"));
break;
}
}
@@ -876,31 +876,31 @@ actualize_jobs_list (CcPrintersPanel *self)
{
case IPP_JOB_PENDING:
/* Translators: Job's state (job is waiting to be printed) */
- state = g_strdup (_("Pending"));
+ state = g_strdup (C_("print job", "Pending"));
break;
case IPP_JOB_HELD:
/* Translators: Job's state (job is held for printing) */
- state = g_strdup (_("Held"));
+ state = g_strdup (C_("print job", "Held"));
break;
case IPP_JOB_PROCESSING:
/* Translators: Job's state (job is currently printing) */
- state = g_strdup (_("Processing"));
+ state = g_strdup (C_("print job", "Processing"));
break;
case IPP_JOB_STOPPED:
/* Translators: Job's state (job has been stopped) */
- state = g_strdup (_("Stopped"));
+ state = g_strdup (C_("print job", "Stopped"));
break;
case IPP_JOB_CANCELED:
/* Translators: Job's state (job has been canceled) */
- state = g_strdup (_("Canceled"));
+ state = g_strdup (C_("print job", "Canceled"));
break;
case IPP_JOB_ABORTED:
/* Translators: Job's state (job has aborted due to error) */
- state = g_strdup (_("Aborted"));
+ state = g_strdup (C_("print job", "Aborted"));
break;
case IPP_JOB_COMPLETED:
/* Translators: Job's state (job has completed successfully) */
- state = g_strdup (_("Completed"));
+ state = g_strdup (C_("print job", "Completed"));
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]