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'
|
||||
arg_count = 1
|
||||
category = 'String manipulation'
|
||||
__doc__ = doc = _(u'transliterate(a) -- Returns a string in a latin alphabet '
|
||||
u'formed by approximating the sound of the words in the '
|
||||
u'source string. For example, if the source is "Фёдор '
|
||||
u'Миха́йлович Достоевский" the function returns "Fiodor '
|
||||
u'Mikhailovich Dostoievskii".')
|
||||
__doc__ = doc = _('transliterate(a) -- Returns a string in a latin alphabet '
|
||||
'formed by approximating the sound of the words in the '
|
||||
'source string. For example, if the source is "{0}"'
|
||||
' the function returns "{1}".').format(
|
||||
u"Фёдор Миха́йлович Достоевский", 'Fiodor Mikhailovich Dostoievskii')
|
||||
|
||||
def evaluate(self, formatter, kwargs, mi, locals, source):
|
||||
from calibre.utils.filenames import ascii_text
|
||||
|
Loading…
x
Reference in New Issue
Block a user