summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-10-18 11:13:47 +0200
committerCarl Hetherington <cth@carlh.net>2024-10-18 11:13:47 +0200
commit24e25f6fbacdf5f813e9819fa478c48a7fe9650c (patch)
tree100c001ceaaa1c99bed249639d8bce8c1c43bf2b
parentd63c7dbec6394bce4641ddd351da4beac3f186df (diff)
Fix installation of our extra fa_IR.mo on Linux.
-rw-r--r--src/wx/wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/wscript b/src/wx/wscript
index 9015c2de4..b03630470 100644
--- a/src/wx/wscript
+++ b/src/wx/wscript
@@ -346,7 +346,9 @@ def build(bld):
i18n.po_to_mo(os.path.join('src', 'wx'), 'libdcpomatic2-wx', bld)
# Extra wxWidgets .mo file (not installed by wxWidgets apparently) that contains some
# of our own translations
- bld(rule='msgfmt -c ${SRC} -o ${TGT}', source=bld.path.make_node(os.path.join('..', '..', 'wx-po', 'fa_IR.po')), target=bld.path.get_bld().make_node(os.path.join('mo', 'fa_IR', 'wxstd.mo')))
+ mo = bld.path.get_bld().make_node(os.path.join('mo', 'fa_IR', 'wxstd.mo'))
+ bld(rule='msgfmt -c ${SRC} -o ${TGT}', source=bld.path.make_node(os.path.join('..', '..', 'wx-po', 'fa_IR.po')), target=mo)
+ bld.install_files(os.path.join('${PREFIX}', 'share', 'locale', 'fa_IR', 'LC_MESSAGES'), mo)
def pot(bld):
i18n.pot(os.path.join('src', 'wx'), sources + " editable_list.h content_widget.h", 'libdcpomatic-wx')