[gnome-desktop/issue-202: 3/4] po: Add L_ to the xgettext keywords




commit d6e9c06c68df9ef907acb8892432ba9970560100
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Nov 27 17:39:48 2021 +0000

    po: Add L_ to the xgettext keywords
    
    Otherwise xgettext won't recognise the translatable language string.
    
    Fixes: #202

 po/Makevars    | 2 +-
 po/meson.build | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/po/Makevars b/po/Makevars
index aeb45289..c4c10a5d 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -8,7 +8,7 @@ subdir = po
 top_builddir = ..
 
 # These options get passed to xgettext.
-XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 
--keyword=g_dngettext:2,3
+XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 
--keyword=L_:2 --keyword=g_dngettext:2,3
 
 # This is the copyright holder that gets inserted into the header of the
 # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
diff --git a/po/meson.build b/po/meson.build
index d1fa7c6f..3d9d7895 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1 +1,4 @@
-i18n.gettext('gnome-desktop-3.0', preset: 'glib')
+i18n.gettext('gnome-desktop-3.0',
+  preset: 'glib',
+  args: ['--keyword=L_:2'],
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]