Set the correct locale path for system activities

This commit is contained in:
Tomeu Vizoso
2008-09-25 20:19:05 +02:00
parent 89300c9173
commit afb63981fa
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -115,6 +115,9 @@ def get_environment(activity):
environ['PATH'] = bin_path + ':' + environ['PATH']
#environ['RAINBOW_STRACE_LOG'] = '1'
if activity.path.startswith(env.get_user_activities_path()):
environ['SUGAR_LOCALEDIR'] = os.path.join(activity.path, 'locale')
if activity.bundle_id in [ 'org.laptop.WebActivity',
'org.laptop.GmailActivity',
'org.laptop.WikiBrowseActivity'