aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPeter Uithoven <peter@peteruithoven.nl>2018-02-07 21:39:24 +0100
committerGitHub <noreply@github.com>2018-02-07 21:39:24 +0100
commit587aa3a8cdb206c35b03d7191237fae78c864796 (patch)
tree6bddef8043a0188fa798f4f26618ad4bc81ec2f9 /docs
parent517e4369bbfc97682b35d57ea3a1d7ec554c1dc3 (diff)
downloadmeson-587aa3a8cdb206c35b03d7191237fae78c864796.zip
meson-587aa3a8cdb206c35b03d7191237fae78c864796.tar.gz
meson-587aa3a8cdb206c35b03d7191237fae78c864796.tar.bz2
Add GETTEXT_PACKAGE as project argument
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Localisation.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/markdown/Localisation.md b/docs/markdown/Localisation.md
index cbd19f8..517b642 100644
--- a/docs/markdown/Localisation.md
+++ b/docs/markdown/Localisation.md
@@ -33,8 +33,8 @@ File that lists all the source files that gettext should scan in order to find s
Localization specific meson file. It imports and uses the `i18n` module. If not defined before it needs to define the `GETTEXT_PACKAGE` global.
```meson
i18n = import('i18n')
-# define GETTEXT_PACKAGE global
-add_global_arguments('-DGETTEXT_PACKAGE="intltest"', language:'c')
+# define GETTEXT_PACKAGE
+add_project_arguments('-DGETTEXT_PACKAGE="intltest"', language:'c')
i18n.gettext(meson.project_name(),
args: '--directory=' + meson.source_root()
)