configure: rewrote the support for languages in localisation
commit80e00c3521109071907467322cc98214f613eeb0
authorChristophe CURIS <christophe.curis@free.fr>
Tue, 20 Jan 2015 21:03:56 +0000 (20 22:03 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 20 Jan 2015 21:29:24 +0000 (20 21:29 +0000)
tree7f956843796a3b52aabe461e62cf26dc31756812
parent6efbb812b0835fbf18507c7690ec004de0b5dbd7
configure: rewrote the support for languages in localisation

The code was moved to a dedicated file (wm_i18n.m4) to reduce the size of
configure.ac;

It now searches for gettext+libintl only if LINGUAS is specified, because
there is no need for them otherwise;

The list of supported locales is created automatically from the list of
files present in the source tree, so there won't be problem forgetting to
update the variables when a new language is added, or removed because
one is considered outdated;

The new syntax is now using as much as possible Autoconf's syntax to ensure
consistency and better portability;

Took opportunity to improve the language check loop to make it smaller and
to tell when a locale that the user asked for is not fully supported.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/po/Makefile.am
configure.ac
m4/wm_i18n.m4 [new file with mode: 0644]
po/Makefile.am