[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: i18n questions
From:       Andras Mantia <amantia () virtualartisans ! com>
Date:       2003-01-28 16:42:35
[Download RAW message or body]

On 2003. January 28., Tuesday 16:24, Waldo Bastian wrote:
> > b) Read the translated strings from the external files (like in case
> > of .desktop files). In this case how should it done? Read the correct
> > string from the file by checking the current language of KDE and use the
> > read string in code without i18n?
>
> If the external files are in the format used by KConfig you can use:
> key=some_string
> key[de]=same_string_in_german
> key[nl]=same_string_but_now_in_dutch
> ....
>
> Then, if you use KConfig to read "key", it will automatically pick up the
> translated version according to the users language settings.

Great! This is what I was searching for.

> Note however that the translation framework used throughout KDE CVS might
> not pick up these string automatically (and as a result the KDE translators
> will not translate them) I'm not sure what the exact conditions are but I
> assume your filename must end with .desktop and "key" must be one of "Name"
> or "Comment". (This is only a concern if your application is being
> developed in KDE CVS)

It's in KDE CVS (Quanta Plus...), so it may affect me. :-( But somehow we will 
get through this.

Andras

-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic