View Single Post
Old 07-25-2011, 06:05 AM   #3
Naderstouhy
Enthusiast
Naderstouhy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2011
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Briefly:
1) You will have to write code to load translators dynamically.
2) You will have to replace the use of the _() function in the server code with a local function that can be changed dynamically
3) You will need to add a dir variable to all the HTML templates of the server.
whenever you start browser.html, what .py code is being executed first ? and if i add to this .py code :

from calibre.utils.localization import set_translators

set_translators('ar')

will it work properly or i need to make more changes ? thanks
Naderstouhy is offline   Reply With Quote