Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/activity
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-23 19:13:41 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-23 19:13:41 (GMT)
commit01edb130c178d8901c4e7f0af583f662c097e7b4 (patch)
treef26dc37233af285a83629e20d49fa8be2a736884 /sugar/activity
parentda7606e6816706322d03cb417111597f268e686e (diff)
Compile and include .mo in ./setup.py dist.
Diffstat (limited to 'sugar/activity')
-rw-r--r--sugar/activity/bundlebuilder.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/sugar/activity/bundlebuilder.py b/sugar/activity/bundlebuilder.py
index 60644d4..49c9389 100644
--- a/sugar/activity/bundlebuilder.py
+++ b/sugar/activity/bundlebuilder.py
@@ -144,6 +144,7 @@ def _get_file_list(manifest):
return _DefaultFileList()
def cmd_dist(manifest):
+ cmd_genmo(manifest)
file_list = _get_file_list(manifest)
zipname = _get_package_name()
@@ -153,6 +154,17 @@ def cmd_dist(manifest):
arcname = os.path.join(_get_bundle_name() + '.activity', filename)
bundle_zip.write(filename, arcname)
+ for langdir in os.listdir('locale'):
+ if os.path.isdir(os.path.join('locale', langdir)):
+ for filename in os.listdir(os.path.join('locale', langdir, 'LC_MESSAGES')):
+ if filename.endswith('.mo'):
+ arcname = os.path.join(_get_bundle_name() + '.activity',
+ 'locale', langdir, 'LC_MESSAGES',
+ filename)
+ bundle_zip.write(
+ os.path.join('locale', langdir, 'LC_MESSAGES', filename),
+ arcname)
+
bundle_zip.close()
def cmd_install(prefix, manifest=None):