Add GETTEXT_PACKAGE as project argument

pull/2999/head
Peter Uithoven 7 years ago committed by GitHub
parent 517e4369bb
commit 587aa3a8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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()
)

Loading…
Cancel
Save