blob: 40080a410d7928ea15f27790ec86e337ded8c238 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import gettext
import os
import logging
from sugar.activity import activity
activity_path = activity.get_bundle_path()
service_name = os.environ['SUGAR_BUNDLE_SERVICE_NAME']
gettext.bindtextdomain(service_name, os.path.join(activity_path, "locale"))
gettext.textdomain(service_name)
_ = gettext.gettext
|