#2564: use the activity service name as the base name for translation files.

master
Tomeu Vizoso 17 years ago
parent c26f7b462d
commit 92a953862d

@ -1,3 +1,5 @@
* #2564 Use the activity service name as the base name for translation files.
(tomeu)
* Add WPA support (miguel, dcbw)
* Fix clipboard support for text from Browse. (tomeu)
* #2511 Fix journal entries background in the object chooser. (tomeu)

@ -106,6 +106,10 @@ def _delete_backups(arg, dirname, names):
if name.endswith('~') or name.endswith('pyc'):
os.remove(os.path.join(dirname, name))
def _get_service_name():
bundle = Bundle(_get_source_path())
return bundle.get_service_name()
def cmd_help():
print 'Usage: \n\
setup.py dev - setup for development \n\
@ -224,7 +228,7 @@ def cmd_genmo(bundle_name, manifest):
if not os.path.isdir(mo_path):
os.makedirs(mo_path)
mo_file = os.path.join(mo_path, "%s.mo" % bundle_name)
mo_file = os.path.join(mo_path, "%s.mo" % _get_service_name())
args = ["msgfmt", "--output-file=%s" % mo_file, file_name]
retcode = subprocess.call(args)
if retcode:

Loading…
Cancel
Save