#2564: use the activity service name as the base name for translation files.
This commit is contained in:
parent
c26f7b462d
commit
92a953862d
2
NEWS
2
NEWS
@ -1,3 +1,5 @@
|
|||||||
|
* #2564 Use the activity service name as the base name for translation files.
|
||||||
|
(tomeu)
|
||||||
* Add WPA support (miguel, dcbw)
|
* Add WPA support (miguel, dcbw)
|
||||||
* Fix clipboard support for text from Browse. (tomeu)
|
* Fix clipboard support for text from Browse. (tomeu)
|
||||||
* #2511 Fix journal entries background in the object chooser. (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'):
|
if name.endswith('~') or name.endswith('pyc'):
|
||||||
os.remove(os.path.join(dirname, name))
|
os.remove(os.path.join(dirname, name))
|
||||||
|
|
||||||
|
def _get_service_name():
|
||||||
|
bundle = Bundle(_get_source_path())
|
||||||
|
return bundle.get_service_name()
|
||||||
|
|
||||||
def cmd_help():
|
def cmd_help():
|
||||||
print 'Usage: \n\
|
print 'Usage: \n\
|
||||||
setup.py dev - setup for development \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):
|
if not os.path.isdir(mo_path):
|
||||||
os.makedirs(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]
|
args = ["msgfmt", "--output-file=%s" % mo_file, file_name]
|
||||||
retcode = subprocess.call(args)
|
retcode = subprocess.call(args)
|
||||||
if retcode:
|
if retcode:
|
||||||
|
Loading…
Reference in New Issue
Block a user