mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1251524 [Cyrillic string in formatter_functions.py is not extractable for translation](https://bugs.launchpad.net/calibre/+bug/1251524)
This commit is contained in:
parent
0380742ea4
commit
349e097fe2
@ -1293,11 +1293,11 @@ class BuiltinTransliterate(BuiltinFormatterFunction):
|
|||||||
name = 'transliterate'
|
name = 'transliterate'
|
||||||
arg_count = 1
|
arg_count = 1
|
||||||
category = 'String manipulation'
|
category = 'String manipulation'
|
||||||
__doc__ = doc = _(u'transliterate(a) -- Returns a string in a latin alphabet '
|
__doc__ = doc = _('transliterate(a) -- Returns a string in a latin alphabet '
|
||||||
u'formed by approximating the sound of the words in the '
|
'formed by approximating the sound of the words in the '
|
||||||
u'source string. For example, if the source is "Фёдор '
|
'source string. For example, if the source is "{0}"'
|
||||||
u'Миха́йлович Достоевский" the function returns "Fiodor '
|
' the function returns "{1}".').format(
|
||||||
u'Mikhailovich Dostoievskii".')
|
u"Фёдор Миха́йлович Достоевский", 'Fiodor Mikhailovich Dostoievskii')
|
||||||
|
|
||||||
def evaluate(self, formatter, kwargs, mi, locals, source):
|
def evaluate(self, formatter, kwargs, mi, locals, source):
|
||||||
from calibre.utils.filenames import ascii_text
|
from calibre.utils.filenames import ascii_text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user