mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove problematic string from translations
This commit is contained in:
parent
dc25152c5b
commit
6b98fac7c3
@ -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: "
|
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
|
followed by the first letter of the genre, i.e. the genre "Fiction" becomes
|
||||||
"Genre: F". The following will do that:
|
"Genre: F". The following will do that:
|
||||||
|
{}''').format('''\
|
||||||
[CODE]
|
[CODE]
|
||||||
program:
|
program:
|
||||||
list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \1'), ',')
|
list_join('#@#', $authors, '&', list_re($#genre, ',', '^(.).*$', 'Genre: \1'), ',')
|
||||||
[/CODE]
|
[/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):
|
def evaluate(self, formatter, kwargs, mi, locals, with_separator, *args):
|
||||||
if len(args) % 2 != 0:
|
if len(args) % 2 != 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user