Translation problem for some strings?

Mads Kiilerich mads at kiilerich.com
Sat Jun 17 22:13:14 UTC 2017


On 06/17/2017 10:13 PM, Thomas De Schampheleire wrote:
> I dug deeper and found that TurboGears2 by default respects the
> language requested by the browser, unlike Pylons did.
> The 'lang' setting in the ini file is then merely a fallback. In my
> case, I had English as preferred language, and while testing I had set
> 'lang = fr' in the ini file. As a result, strings were first looked up
> in the old English translation file, and strings not found there were
> searched in the French file. The result was a mix of languages.

Nice catch!

I wonder if we should enable this automatic detection by default? Or 
perhaps only include translations that are close to complete.

I also wonder if we have some places where we cache things and don't 
handle well that the language changes with each request. Hopefully not ;-)

/Mads


More information about the kallithea-general mailing list