Hi Milchev,
Today I commit some few changes in order to work better. I am not expert on struts, so there might be some way to improve the language support, but I am using html encoding like "á" for texts and s:property with escape="false" or <oba:message key='key' />.
Some tips:
- I deployed a lot of translation in package.properties in resources of enterprise-webapp module, you should just translate that and it should be working.
- I add a map for getting the values in JS. You can use getValueFor('key');
- In the javascript use html instead of text function. For instance suggestions.find("h2").html(getValueFor("did.you.mean")) instead of suggestions.find("h2").text(getValueFor("did.you.mean"))
- I change the method getPresentableDistance of org.onebusaway.presentation.impl.realtime.PresentationServiceImpl class. This is the method that handles the presentation results. I add the parameter Locale. There the unit is asked in its corresponding bundle. For instance if package_es.properties contains unit=metric, it will be shown in mks system, otherwise Imperial. So you might have en_UK with metric and en_US with imperial.
- I changed in my branch the map.js to acta project to work faster and I am using mainly OSM, even though I tried to keep compatibility with gmaps.
Hope it helps.
Best regards