printers: l10n fixes for jobs count
use ngettext for "%d active" message and don't mark as translatable the related placeholder in printers.ui file Slightly modified by Marek Kasik.
This commit is contained in:
parent
610ddff3b0
commit
18d764cf9f
2 changed files with 4 additions and 2 deletions
|
@ -193,6 +193,7 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
|
|||
gchar *active_jobs = NULL;
|
||||
gchar *location = NULL;
|
||||
gchar *status = NULL;
|
||||
guint num_jobs;
|
||||
int printer_state = 3;
|
||||
int id = -1;
|
||||
int i, j;
|
||||
|
@ -462,8 +463,9 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
|
|||
|
||||
widget = (GtkWidget*)
|
||||
gtk_builder_get_object (priv->builder, "printer-jobs-label");
|
||||
num_jobs = priv->num_jobs < 0 ? 0 : (guint) priv->num_jobs;
|
||||
/* Translators: there is n active print jobs on this printer */
|
||||
active_jobs = g_strdup_printf (_("%d active"), priv->num_jobs);
|
||||
active_jobs = g_strdup_printf (ngettext ("%u active", "%u active", num_jobs), num_jobs);
|
||||
|
||||
if (active_jobs)
|
||||
{
|
||||
|
|
|
@ -214,7 +214,7 @@
|
|||
<object class="GtkLabel" id="printer-jobs-label">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">0 active</property>
|
||||
<property name="label" translatable="no">0 active</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue