Fwd: Using multiple klocales uses stale translations

John Layt johnlayt at googlemail.com
Tue Nov 9 21:32:52 GMT 2010


On Monday 08 November 2010 23:29:13 Stephen Kelly wrote:
> It took me a while to figure out that the country must be in lower case.
> 
> KLocale de_DE("kwrite", "de", "DE"); // does not work
> KLocale de_DE("kwrite", "de_DE"); // does not work
> KLocale de_DE("kwrite", "de_DE.UTF-8"); // does not work
> KLocale de_DE("kwrite", "de", "de"); // works!

That's bad.  For historic reasons the KDE country code is lowercase, in spite 
of the ISO standard explicitly being uppercase, fixing it is a KDE5 thing.  

But I can't see any reason why it shouldn't lowercase any given value, I'll 
fix that and update the apidox to state it should be lowercase.

John.




More information about the kde-core-devel mailing list