country names translations (Was: need an idea for kxkb (multiple variants UI))

David Faure faure at kde.org
Mon Mar 6 12:10:35 GMT 2006


On Monday 06 March 2006 12:42, Nicolas Goutte wrote:
> On Monday 06 March 2006 00:56, David Faure wrote:
> > On Sunday 05 March 2006 19:07, Nicolas Goutte wrote:
> > > For KDE3, you surely can prepend "Name=" to the string and remove that
> > > name later after the translation is returned.
> >
> > Yes, that's what I was thinking about.
> >
> > > Note that this would not be KDE4-compatible.
> >
> > Why?
> 
> > Why would i18n("Name="+country) change in kde4?
> 
> The key is now a context and the returned string has not the Key= anymore.
> (where the key is Name, Comment, etc.)
> 
> So for your example, you would have to use in KDE4:
> i18n ("Name", country)

Ah, ok. But this means there is still a solution with KDE4, so this is fine. 

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list