From 84a5f2779aed7890ba1d844464ce502dbb98a966 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Wed, 14 Nov 2012 23:50:52 +0000 Subject: [PATCH] script to pull language list from openstreetmap wiki --- utils/country_languages.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 utils/country_languages.php diff --git a/utils/country_languages.php b/utils/country_languages.php new file mode 100755 index 00000000..8360ae66 --- /dev/null +++ b/utils/country_languages.php @@ -0,0 +1,34 @@ +#!/usr/bin/php -Cq + $s) + { + $aLanguages[$i] = '"'.pg_escape_string($s).'"'; + } + echo "UPDATE country_name set country_default_language_codes = '{".join(',',$aLanguages)."}' where country_code = '".pg_escape_string($aMatch[1])."';\n"; + } + } + } -- 2.39.5