Mr. Kovid i have 1 more Question please, for the category fields, whenever i change the language dynamically the category : newest and allBooks are changes successfully, but all othere categories like rating, publishers, tags etc, are not change, also the sort by options are not changed, for these fields you called the db.field_metadata in browse.py, i couldn't find a solution on where i should add the function set_dyntranslator(..) in order for this items to change... thanks in advance
Quote:
Originally Posted by kovidgoyal
You need to replace every instance of the use of _() in the server code with dynamic_translate() then you need to create an endpoint in browse.py that changes dynamic_translate. Then you need to create some HTML in browse.html that calls that endpoint.
|