From 6b98fac7c34d675b55bf4d8e3c2ff5f1ad68a5e3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Dec 2024 20:49:32 +0530 Subject: [PATCH] Remove problematic string from translations --- src/calibre/utils/formatter_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index c83120a97e..cb75d12b7a 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -1844,11 +1844,12 @@ You can use expressions to generate a list. For example, assume you want items for ``authors`` and ``#genre``, but with the genre changed to the word "Genre: " followed by the first letter of the genre, i.e. the genre "Fiction" becomes "Genre: F". The following will do that: +{}''').format('''\ [CODE] program: list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \1'), ',') [/CODE] -''') +''') # not translated as \1 gets mistranslated as a control char in transifex for some reason def evaluate(self, formatter, kwargs, mi, locals, with_separator, *args): if len(args) % 2 != 0: