Fix structure of build directory for locale files

svn: r20872
This commit is contained in:
Nick Hall 2012-12-29 00:25:01 +00:00
parent ffbac653e0
commit 7bff2f915f

View File

@ -87,8 +87,10 @@ def build_trans(build_cmd):
data_files = build_cmd.distribution.data_files
for lang in ALL_LINGUAS:
po_file = os.path.join('po', lang + '.po')
mo_file = os.path.join(build_cmd.build_base, 'mo', lang, 'gramps.mo')
mo_file_unix = build_cmd.build_base + '/mo/' + lang + '/gramps.mo'
mo_file = os.path.join(build_cmd.build_base, 'mo', lang, 'LC_MESSAGES',
'gramps.mo')
mo_file_unix = (build_cmd.build_base + '/mo/' + lang +
'/LC_MESSAGES/gramps.mo')
mo_dir = os.path.dirname(mo_file)
if not(os.path.isdir(mo_dir) or os.path.islink(mo_dir)):
os.makedirs(mo_dir)