aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-09-01 15:45:48 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-09-01 21:18:44 -0400
commit1dbb6d6b8c83cdad0f478b15395103589cbfb9b3 (patch)
tree782f255b863d56d4349726428f3f20943ecb2146
parentdc51740e2cdee171ac6ebc7ed261e5c08730c9a9 (diff)
downloadmeson-1dbb6d6b8c83cdad0f478b15395103589cbfb9b3.zip
meson-1dbb6d6b8c83cdad0f478b15395103589cbfb9b3.tar.gz
meson-1dbb6d6b8c83cdad0f478b15395103589cbfb9b3.tar.bz2
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.
-rw-r--r--mesonbuild/modules/i18n.py2
1 files changed, 1 insertions, 1 deletions
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)