Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
Diffstat (limited to 'sugar')
-rw-r--r--sugar/activity/bundle.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/activity/bundle.py b/sugar/activity/bundle.py
index e4f09d3..feded65 100644
--- a/sugar/activity/bundle.py
+++ b/sugar/activity/bundle.py
@@ -155,7 +155,10 @@ class Bundle:
def _get_linfo_file(self):
linfo_file = None
+
lang = locale.getdefaultlocale()[0]
+ if not lang:
+ return None
if os.path.isdir(self._path):
linfo_path = os.path.join(self.get_locale_path(), lang, 'activity.linfo')