From 10305789dc53fa9cc147ad3056ffa488c29cc9fb Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sun, 28 Nov 2021 22:49:22 +0100 Subject: [PATCH] [i18n] Add context to various none/auto/small/medium/large (#8489) Needed for Greek and possibly other languages. Closes #8478. --- frontend/ui/data/creoptions.lua | 6 +++--- frontend/ui/data/koptoptions.lua | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/ui/data/creoptions.lua b/frontend/ui/data/creoptions.lua index db46977b7..7dfdf7553 100644 --- a/frontend/ui/data/creoptions.lua +++ b/frontend/ui/data/creoptions.lua @@ -467,7 +467,7 @@ Note that your selected font size is not affected by this setting.]]), right_hold_step = 10, event = "SetWordSpacing", }, - toggle = {_("small"), _("medium"), _("large")}, + toggle = {C_("Word spacing", "small"), C_("Word spacing", "medium"), C_("Word spacing", "large")}, values = { DCREREADER_CONFIG_WORD_SPACING_SMALL, DCREREADER_CONFIG_WORD_SPACING_MEDIUM, @@ -501,7 +501,7 @@ Note that your selected font size is not affected by this setting.]]), info_text = _([[Set max word expansion as a % of the font size.]]), event = "SetWordExpansion", }, - toggle = {_("none"), _("some"), _("more")}, + toggle = {C_("Word expansion", "none"), C_("Word expansion", "some"), C_("Word expansion", "more")}, values = { DCREREADER_CONFIG_WORD_EXPANSION_NONE, DCREREADER_CONFIG_WORD_EXPANSION_SOME, @@ -588,7 +588,7 @@ If a font variation is not available, as well as for fractional adjustments, it { name = "font_hinting", name_text = _("Font Hinting"), - toggle = {_("off"), _("native"), _("auto")}, + toggle = {C_("Font hinting", "off"), C_("Font hinting", "native"), C_("Font hinting", "auto")}, values = {0, 1, 2}, default_value = 2, args = {0, 1, 2}, diff --git a/frontend/ui/data/koptoptions.lua b/frontend/ui/data/koptoptions.lua index c3afd805d..74bac1b1c 100644 --- a/frontend/ui/data/koptoptions.lua +++ b/frontend/ui/data/koptoptions.lua @@ -83,7 +83,7 @@ local KoptOptions = { name_text = _("Page Crop"), -- manual=0, auto=1, semi-auto=2, none=3 -- ordered from least to max cropping done or possible - toggle = {_("none"), _("auto"), _("semi-auto"), _("manual")}, + toggle = {C_("Page crop", "none"), C_("Page crop", "auto"), C_("Page crop", "semi-auto"), C_("Page crop", "manual")}, alternate = false, values = {3, 1, 2, 0}, default_value = DKOPTREADER_CONFIG_TRIM_PAGE, @@ -103,7 +103,7 @@ In 'semi-auto' and 'manual' modes, you may need to define areas once on an odd p { name = "page_margin", name_text = _("Margin"), - toggle = {_("small"), _("medium"), _("large")}, + toggle = {C_("Page margin", "small"), C_("Page margin", "medium"), C_("Page margin", "large")}, values = {0.05, 0.10, 0.25}, default_value = DKOPTREADER_CONFIG_PAGE_MARGIN, event = "MarginUpdate", @@ -334,7 +334,7 @@ left to right or reverse, top to bottom or reverse.]]), { name = "page_gap_height", name_text = _("Page Gap"), - toggle = {_("none"), _("small"), _("medium"), _("large")}, + toggle = {C_("Page gap", "none"), C_("Page gap", "small"), C_("Page gap", "medium"), C_("Page gap", "large")}, values = {0, 8, 16, 32}, default_value = 8, args = {0, 8, 16, 32}, @@ -359,7 +359,7 @@ left to right or reverse, top to bottom or reverse.]]), { name = "line_spacing", name_text = _("Line Spacing"), - toggle = {_("small"), _("medium"), _("large")}, + toggle = {C_("Line spacing", "small"), C_("Line spacing", "medium"), C_("Line spacing", "large")}, values = {1.0, 1.2, 1.4}, default_value = DKOPTREADER_CONFIG_LINE_SPACING, advanced = true, @@ -444,7 +444,7 @@ The first option ("auto") tries to automatically align reflowed text as it is in { name = "word_spacing", name_text = _("Word Gap"), - toggle = {_("small"), _("auto"), _("large")}, + toggle = {C_("Word gap", "small"), C_("Word gap", "auto"), C_("Word gap", "large")}, values = DKOPTREADER_CONFIG_WORD_SPACINGS, default_value = DKOPTREADER_CONFIG_DEFAULT_WORD_SPACING, enabled_func = function(configurable)