From 660bfa6e7c8dfb7bd8bffdb68c053e1a22945f8a Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 24 Apr 2022 10:10:31 +0100 Subject: docs: Remove deprecated meson.source_root() from localisation page example Meson already supplies the same value --- docs/markdown/Localisation.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/markdown/Localisation.md b/docs/markdown/Localisation.md index a826f8d..2a31cb3 100644 --- a/docs/markdown/Localisation.md +++ b/docs/markdown/Localisation.md @@ -47,9 +47,7 @@ global. i18n = import('i18n') # define GETTEXT_PACKAGE add_project_arguments('-DGETTEXT_PACKAGE="intltest"', language:'c') -i18n.gettext(meson.project_name(), - args: '--directory=' + meson.source_root() -) +i18n.gettext(meson.project_name()) ``` The first command imports the `i18n` module that provides gettext -- cgit v1.1