From: Ivan Korytov Date: Tue, 25 Feb 2025 11:48:51 +0000 (+0300) Subject: s3-waf: Enable build of MO files for localization X-Git-Tag: tevent-0.17.0~611 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9be96cf602ebb0d612c0be55aed513af5dce7244;p=thirdparty%2Fsamba.git s3-waf: Enable build of MO files for localization waf will now generate .mo files for pam_winbind and net when gettext support is enabled and gettext tools are available BUG: https://bugzilla.samba.org/show_bug.cgi?id=14491 Signed-off-by: Ivan Korytov Reviewed-by: Alexander Bokovoy Reviewed-by: Andreas Schneider Autobuild-User(master): Alexander Bokovoy Autobuild-Date(master): Fri Feb 28 13:26:45 UTC 2025 on atb-devel-224 --- diff --git a/source3/locale/net/LINGUAS b/source3/locale/net/LINGUAS new file mode 100644 index 00000000000..7673daa944e --- /dev/null +++ b/source3/locale/net/LINGUAS @@ -0,0 +1 @@ +de diff --git a/source3/locale/pam_winbind/LINGUAS b/source3/locale/pam_winbind/LINGUAS new file mode 100644 index 00000000000..67baa1d4b07 --- /dev/null +++ b/source3/locale/pam_winbind/LINGUAS @@ -0,0 +1,20 @@ +ar +cs +da +de +es +fi +fr +hu +it +ja +ko +nb +nl +pl +pt_BR +ru +sv +tr +zh_CN +zh_TW diff --git a/source3/locale/wscript b/source3/locale/wscript new file mode 100644 index 00000000000..41b04a8ed73 --- /dev/null +++ b/source3/locale/wscript @@ -0,0 +1,7 @@ +#!/usr/bin/env python +from waflib import Options + +def build(bld): + if (not Options.options.disable_gettext) and ('MSGFMT' in bld.env): + bld(features='intltool_po', appname='net', podir='net', install_path="${LOCALEDIR}") + bld(features='intltool_po', appname='pam_winbind', podir='pam_winbind', install_path="${LOCALEDIR}") diff --git a/source3/wscript b/source3/wscript index fdb9436dafa..0a2b9234e49 100644 --- a/source3/wscript +++ b/source3/wscript @@ -2060,4 +2060,7 @@ int main(void) { "found. Use --with-shared-modules='!vfs_snapper' to disable " "vfs_snapper support.") + if not Options.options.disable_gettext: + conf.load('gnu_dirs intltool') + conf.SAMBA_CONFIG_H('include/config.h') diff --git a/source3/wscript_build b/source3/wscript_build index 9e3efcabe07..9e42b046e38 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -1331,6 +1331,7 @@ bld.RECURSE('utils') bld.RECURSE('nmbd') bld.RECURSE('lib/util') bld.RECURSE('torture') +bld.RECURSE('locale') bld.ENFORCE_GROUP_ORDERING() bld.CHECK_PROJECT_RULES()