You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
305 B
Python

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