View Single Post
Old 01-20-2016, 11:55 AM   #864
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
The code I am using attempts to get the language from the book. If it can't, then it uses the interface language. If we extend the statistics, there is a problem as an extra language specific file is used. At the moment, this is loaded early before the individual book languages are known, and that could be problem.
It appears that "from the book" means from the OPF inside the book. If my assumption is right and if you have access to metadata.db then you might also check the language stored for the book in the db before falling back to the interface language.
chaley is offline   Reply With Quote