From: Brian Quinion Date: Wed, 14 Nov 2012 23:50:52 +0000 (+0000) Subject: script to pull language list from openstreetmap wiki X-Git-Tag: v2.2.0~177 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/84a5f2779aed7890ba1d844464ce502dbb98a966 script to pull language list from openstreetmap wiki --- 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"; + } + } + }