17 May
2016
17 May
'16
3:10 p.m.
I found a nice way to translate $language into pretty language name in the translation desired. {{velocity}} #displayLanguagePrettyName("it") #macro(displayLanguagePrettyName $language)#set($languageLocale = $services.localization.toLocale("it"))$stringtool.capitalize($languageLocale.getDisplayName("nl"))#end {{/velocity}} So changing the 'nl' to 'pt' (portugese) it will do Italiaans (dutch) -> Italiano (portugese) Ca the same be done for country? Italië (dutch) -> Itália (Portuguse) Gerritjan Koekkoek Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS Visit our website<http://www.cdlsworld.org> Facebook<https://www.facebook.com/gerritjan.koekkoek> email<[email protected]>