Fwd: Using multiple klocales uses stale translations
John Layt
johnlayt at googlemail.com
Thu Nov 11 09:09:24 GMT 2010
On Wednesday 10 November 2010 14:46:55 Hans Meine wrote:
> Op den Dingsdag 09 November 2010 Klock 22:32:52 hett John Layt schreven:
> > 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.
>
> Why not give the full truth and document that uppercase values are accepted
> and will be future-proof, although they're currently lowercased (which
> might shine through in other parts of the API, so that it still needs to
> be mentioned)?
>
> Best,
> Hans
It is documented elsewhere in the api that the country code is returned as
lowercase, and we have lots of code about that expects it to be lowercase, I
just play nice and lowercase everything passed in. We need to be consistent
with what is returned, telling people to pass in uppercase but to accept
lowercase in return is not good practice.
John.
More information about the kde-core-devel
mailing list