routers = dict(
BASE = dict(default_application='myapp'),
myapp = dict(languages=['en', 'it', 'jp'], default_language='en'),
)
Enter code here...
I am creating a multilingual application and use the above recipe to put
language into URL. This works fine for incoming URLs but the URL function
returns an URL without a language:
URL('controller', 'action') -> '/controller/action' (wanted
'/language/controller/action')
Of course there is a way, say, to write links like this
{{='/'+request.uri_language+URL('controller', 'action')}}
but is it possible to make the URL function add the language automatically?
--