View Single Post
Old 07-27-2011, 02:56 AM   #8
Naderstouhy
Enthusiast
Naderstouhy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
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 View Post
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.

Last edited by Naderstouhy; 07-27-2011 at 03:02 AM.
Naderstouhy is offline   Reply With Quote