]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Automate list of available translations
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 14 Jun 2009 05:56:30 +0000 (17:56 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 14 Jun 2009 05:56:30 +0000 (17:56 +1200)
errors/Makefile.am

index 100722c150f4672cd810a057f90e6397503386e7..33d16074a2ebae613ac8bdb9a4d36e32e1e6060a 100644 (file)
@@ -11,46 +11,8 @@ errordir = $(datadir)/errors
 DEFAULT_ERROR_DIR      = $(errordir)
 DEFAULT_STYLESHEET     = $(sysconfdir)/errorpage.css
 
-
 # List of automated translations possible:
-TRANSLATIONS = \
-       ar \
-       az \
-       bg \
-       ca \
-       cs \
-       da \
-       de \
-       el \
-       en en-au en-gb en-nz en-us \
-       es \
-       et \
-       fa \
-       fi \
-       fr \
-       he \
-       hu \
-       hy \
-       id \
-       it \
-       ja \
-       ko \
-       lt \
-       lv \
-       ms \
-       nl \
-       pl \
-       pt pt-br \
-       ro \
-       ru \
-       sk \
-       sr \
-       sv \
-       th \
-       tr \
-       uk \
-       uz \
-       zh-cn zh-tw
+TRANSLATIONS=`ls -1 $(top_srcdir)/errors/*.po | grep -o -E "[a-z\-]+\.po" | sed s/.po//`
 
 install-data-local: 
        for l in $(TRANSLATIONS) templates; do \