X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/04134f380dfb7c558ea9f1a59ac8f5123826e528..84a5f2779aed7890ba1d844464ce502dbb98a966:/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"; + } + } + }