Flags, was Fwd: translatoid
Marco Martin
notmart at gmail.com
Thu Aug 6 18:51:57 CEST 2009
On Thursday 06 August 2009, John Layt wrote:
> On Thursday 06 August 2009 10:47:38 Aaron J. Seigo wrote:
> > step 1 will be to just get a central system to draw the flags from in the
> > first place, of course.
>
> Hmmm, perhaps it's time to look into this, in between my print hacking.
> Unemployment has its upside :-) Now, where was that e-mail from the last
> discussion?
>
> > but the reason, at least to me, that the current klocale flags are so
> > "ugly" is they have the country codes on them. however, that might be
> > useful for when they are used for locale setting since you usually know
> > the country code in that case though perhaps not the flag. the country
> > name is right there in text, however.
>
> Which flags are these? The ones in kdebase/runtime/l10n/ don't have the
that ones yeah, quality seem to vary a lot between flags..
> codes embedded in them, but they are rather small (about 21x14) PNG's and
> so not very useful. I suspect there's some code somewhere that dynamically
> adds the country code to the flag possibly in a localised form? Their
> being in kdebase is also not very useful to apps when kdebase isn't
> installed (and that raises the wider question of what other l10n stuff
> might belong in kdelibs too).
hmm, seems to be all done in the kxkb applet code (i suppose the kcm uses that
code too)
the flag pixmap is taken, made an ugly grayish (by manyally iteratin pixels of
the qimage, ouch) then the countrycode is painted on top.
the result is yeah, not really pretty.
now i've fixed the issue that it was discarding all the alpha value, so some
flags had an ugly black border not even centered but having only the flag
yeah, would look way better, not sure if there are issues i haven't tough
about doing so tough
>
> And I won't even start the debate about whether flags are really the
> appropriate symbol to use for languages when multiple countries use the
> same language... :-)
or a country with more than one language :p
> John.
--
Marco Martin
More information about the Plasma-devel
mailing list