[Qt-interest] Handling translations in a multi-threaded server
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Thu May 19 10:35:28 CEST 2011
Hi Everybody,
I have multi-threaded servers that handle database queries from potentially many clients in many different countries (especially the European server). The requests are processed via a thread pool. Each request has the locale code for the translation file to be used by the IBase sql driver.
The problem is that the IBase driver calls QApplication::translate for errors. This implies all threads have to use the same translation file.
How have others worked around this limitation?
Thanks,
Tony.
More information about the Qt-interest-old
mailing list