[gnome-control-center/benzea/i18n-fixes] printers: Add context to printing options strings
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/benzea/i18n-fixes] printers: Add context to printing options strings
- Date: Tue, 26 Feb 2019 18:10:27 +0000 (UTC)
commit 2eb4efe89098a11d14cbbbf0abbf3be08c72f734
Author: Benjamin Berg <bberg redhat com>
Date: Tue Feb 26 18:50:25 2019 +0100
printers: Add context to printing options strings
These strings should have a context. The context "printing option" is
chosen to match GTK+ which has the same strings for the same purpose.
Fixes #394 for the printing panel
panels/printers/pp-options-dialog.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/panels/printers/pp-options-dialog.c b/panels/printers/pp-options-dialog.c
index a6747cfe2..4e39f18d2 100644
--- a/panels/printers/pp-options-dialog.c
+++ b/panels/printers/pp-options-dialog.c
@@ -80,12 +80,12 @@ static const struct {
const char *keyword;
const char *translation;
} ppd_option_translations[] = {
- { "Duplex", N_("Two Sided") },
- { "MediaType", N_("Paper Type") },
- { "InputSlot", N_("Paper Source") },
- { "OutputBin", N_("Output Tray") },
- { "Resolution", N_("Resolution") },
- { "PreFilter", N_("GhostScript pre-filtering") },
+ { "Duplex", NC_("printing option", "Two Sided") },
+ { "MediaType", NC_("printing option", "Paper Type") },
+ { "InputSlot", NC_("printing option", "Paper Source") },
+ { "OutputBin", NC_("printing option", "Output Tray") },
+ { "Resolution", NC_("printing option", "Resolution") },
+ { "PreFilter", NC_("printing option", "GhostScript pre-filtering") },
};
/* keep sorted when changing */
@@ -277,7 +277,7 @@ ppd_option_name_translate (ppd_option_t *option)
for (i = 0; i < G_N_ELEMENTS (ppd_option_translations); i++)
{
if (g_strcmp0 (ppd_option_translations[i].keyword, option->keyword) == 0)
- return _(ppd_option_translations[i].translation);
+ return g_dcgettext(NULL, "printing option", ppd_option_translations[i].translation);
}
return option->text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]