comparison MoinMoin/i18n/__init__.py @ 3067:7fa08b9b8a90

adjusting log levels (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 22 Feb 2008 17:28:21 +0100
parents c242772754c5
children 18cba7defa5a
comparison
equal deleted inserted replaced
3066:db0a4f4b30d3 3067:7fa08b9b8a90
270 # do not simply return trans with str, but recursively call 270 # do not simply return trans with str, but recursively call
271 # to get english translation, maybe formatted. 271 # to get english translation, maybe formatted.
272 # if we don't find an english "translation", we just format it 272 # if we don't find an english "translation", we just format it
273 # on the fly (this is needed for cfg.editor_quickhelp). 273 # on the fly (this is needed for cfg.editor_quickhelp).
274 if lang != 'en': 274 if lang != 'en':
275 logging.debug("i18n: fallback to english, requested string not in %r translation: %r" % (lang, original))
275 translated = getText(original, request, 'en', formatted) 276 translated = getText(original, request, 'en', formatted)
276 elif formatted: 277 elif formatted:
277 translated = translations[lang].formatMarkup(request, original) 278 translated = translations[lang].formatMarkup(request, original)
278 return translated 279 return translated
279 280