diff --git a/WebContent/OSRM.config.js b/WebContent/OSRM.config.js index 25e63d054..5147edf8f 100644 --- a/WebContent/OSRM.config.js +++ b/WebContent/OSRM.config.js @@ -39,7 +39,6 @@ OSRM.DEFAULTS = { SHORTENER_REPLY_PARAMETER: 'ShortURL', LANGUAGE: "en", - LANGUAGE_FILES_DIRECTORY: "localization/", LANUGAGE_ONDEMAND_RELOADING: true, LANGUAGE_SUPPORTED: [ {display_name:"en", encoding:"en"}, diff --git a/WebContent/localization/OSRM.Localization.js b/WebContent/localization/OSRM.Localization.js index 926c69215..bab6ee258 100644 --- a/WebContent/localization/OSRM.Localization.js +++ b/WebContent/localization/OSRM.Localization.js @@ -92,7 +92,7 @@ setLanguage: function(language) { if( supported_languages[i].encoding == language) { var script = document.createElement('script'); script.type = 'text/javascript'; - script.src = OSRM.DEFAULTS.LANGUAGE_FILES_DIRECTORY + "OSRM.Locale."+language+".js"; + script.src = "localization/OSRM.Locale."+language+".js"; document.head.appendChild(script); break; }