mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 22:12:45 +03:00
allow to disable default language
If CONST_Default_Language is set to false, the fallback will be to name tags without a language suffix. Make this the default.
This commit is contained in:
parent
fb0d219c7b
commit
9e0a92a508
@ -138,7 +138,7 @@
|
||||
arsort($aLanguages);
|
||||
}
|
||||
}
|
||||
if (!sizeof($aLanguages)) $aLanguages = array(CONST_Default_Language=>1);
|
||||
if (!sizeof($aLanguages) && CONST_Default_Language) $aLanguages = array(CONST_Default_Language=>1);
|
||||
foreach($aLanguages as $sLangauge => $fLangauagePref)
|
||||
{
|
||||
$aLangPrefOrder['short_name:'.$sLangauge] = 'short_name:'.$sLangauge;
|
||||
|
@ -56,7 +56,7 @@
|
||||
@define('CONST_Website_BaseURL', 'http://'.php_uname('n').'/');
|
||||
@define('CONST_Tile_Default', 'Mapnik');
|
||||
|
||||
@define('CONST_Default_Language', 'xx');
|
||||
@define('CONST_Default_Language', false);
|
||||
@define('CONST_Default_Lat', 20.0);
|
||||
@define('CONST_Default_Lon', 0.0);
|
||||
@define('CONST_Default_Zoom', 2);
|
||||
|
Loading…
Reference in New Issue
Block a user