/usr/lib/python2.7/dist-packages/caribou/i18n.py is in caribou 0.4.15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import gettext
from gettext import gettext as _
import os
def C_(ctx, s):
"""Provide qualified translatable strings via context.
(copied from Orca)"""
translated = gettext.gettext('%s\x04%s' % (ctx, s))
if '\x04' in translated:
# no translation found, return input string
return s
return translated
gettext.bindtextdomain ("caribou",
os.path.join ("/usr", "share", "locale"))
gettext.textdomain("caribou")
|