summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-01-04 17:07:33 +0000
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2019-04-19 23:11:29 +0100
commite8026f673ec49c109212acc4c35b492b3e30f48f (patch)
treed45c8e81707ccdbe82257aac810148fa1e7b3c3f /po
parent0fb8b664a9a49b299ac3f7851df8cd9b9121e445 (diff)
downloadxkeyboard-config-e8026f673ec49c109212acc4c35b492b3e30f48f.tar.gz
Port away from intltool to plain gettext
intltool isn't maintained and gettext can now handle arbitrary XML files. Drop intltool from autogen.sh and configure.ac. Add po/LINGUAS file, replacing ALL_LINGUAS in configure.ac. Unlike intltool, gettext doesn't need special markup in XML files, so rename base.xml.in to base.xml and replace <_description> with <description>. Update rules/Makefile.am to remove .xml.in rules and intltool references. Add rules/xkb.its to tell gettext what elements contain translatable strings, and pass it to gettext in po/Makevars. https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/143
Diffstat (limited to 'po')
-rw-r--r--po/LINGUAS43
-rw-r--r--po/Makevars2
-rw-r--r--po/POTFILES.in4
3 files changed, 46 insertions, 3 deletions
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..dde623b
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1,43 @@
+af
+az
+bg
+ca
+crh
+cs
+da
+de
+el
+en_GB
+eo
+es
+fi
+fr
+fur
+gl
+hr
+hu
+id
+it
+ja
+ka
+ko
+ky
+lt
+nb
+nl
+pl
+pt
+pt_BR
+ro
+ru
+rw
+sk
+sl
+sq
+sr
+sv
+tr
+uk
+vi
+zh_CN
+zh_TW
diff --git a/po/Makevars b/po/Makevars
index 03f092c..170bb13 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -8,7 +8,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --its=../rules/xkb.its
# 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/POTFILES.in b/po/POTFILES.in
index 901d327..3edf8c8 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,2 +1,2 @@
-rules/base.xml.in
-rules/base.extras.xml.in
+rules/base.xml
+rules/base.extras.xml