From 349e097fe249bb3ec1c63dd213aefa937f5122af Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Nov 2013 12:32:41 +0530 Subject: [PATCH] Fix #1251524 [Cyrillic string in formatter_functions.py is not extractable for translation](https://bugs.launchpad.net/calibre/+bug/1251524) --- src/calibre/utils/formatter_functions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index 8b900f5337..966e51c2ea 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -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