From 7235433b92251eceb9cdf96195f3299a13f9ee53 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Wed, 16 Mar 2022 16:18:18 +0100 Subject: [PATCH] [i18n] Add context for calibre configuration type (#8909) `Manual` could mean several things, most notably some kind of documentation and something you do by hand. The added context is partially to aid translators and partially to preclude potential collisions in the future. Cf. . --- plugins/calibre.koplugin/main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/calibre.koplugin/main.lua b/plugins/calibre.koplugin/main.lua index 0912ed060..04a683264 100644 --- a/plugins/calibre.koplugin/main.lua +++ b/plugins/calibre.koplugin/main.lua @@ -17,6 +17,7 @@ local LuaSettings = require("luasettings") local UIManager = require("ui/uimanager") local WidgetContainer = require("ui/widget/container/widgetcontainer") local _ = require("gettext") +local C_ = _.pgettext local T = require("ffi/util").template local Calibre = WidgetContainer:new{ @@ -267,7 +268,7 @@ function Calibre:getWirelessMenuTable() enabled_func = isEnabled, sub_item_table = { { - text = _("Automatic"), + text = C_("Configuration type", "Automatic"), checked_func = function() return G_reader_settings:hasNot("calibre_wireless_url") end, @@ -276,7 +277,7 @@ function Calibre:getWirelessMenuTable() end, }, { - text = _("Manual"), + text = C_("Configuration type", "Manual"), checked_func = function() return G_reader_settings:has("calibre_wireless_url") end,