From 1dbb6d6b8c83cdad0f478b15395103589cbfb9b3 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 1 Sep 2021 15:45:48 -0400 Subject: make the display name of a gettext translation build, look prettier And more accurate too, TBH. Currently it says it is building "lang.mo", even though it is actually building "domain.mo" inside lang/LC_MESSAGES/. Since meson loudly complains if I try to name the display name "lang/domain.mo", name it with a dash instead of a slash. The actual name isn't a priority here IMO, and this is nicely readable. --- mesonbuild/modules/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py index 7329989..498d60f 100644 --- a/mesonbuild/modules/i18n.py +++ b/mesonbuild/modules/i18n.py @@ -184,7 +184,7 @@ class I18nModule(ExtensionModule): 'install_dir': path.join(install_dir, l, 'LC_MESSAGES'), 'install_tag': 'i18n', } - gmotarget = build.CustomTarget(l+'.mo', path.join(state.subdir, l, 'LC_MESSAGES'), state.subproject, gmo_kwargs) + gmotarget = build.CustomTarget(f'{packagename}-{l}.mo', path.join(state.subdir, l, 'LC_MESSAGES'), state.subproject, gmo_kwargs) targets.append(gmotarget) gmotargets.append(gmotarget) -- cgit v1.1