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

List:       kde-devel
Subject:    Re: Identify a directory except with its name ?
From:       Michael =?iso-8859-1?q?H=E4ckel?= <Michael () Haeckel ! Net>
Date:       2001-09-28 14:48:55
[Download RAW message or body]

On Friday 28 September 2001 15:07, Kevin Krammer wrote:
> On Friday, 28. September 2001 14:46 (GMT +0200), Kai Heitkamp wrote:
> > KDirLister *dirLister = new KDirLister();
> > dirLister->openURL( "audiocd:/By Name?device=/dev/scd1", true, true );
> >
> > does not find 'By Name', because this must be:
> >
> > KDirLister *dirLister = new KDirLister();
> > dirLister->openURL( "audiocd:/Nach Namen?device=/dev/scd1", true, true );
> >
> > Can I identify a directory differently than with its name ?
> > Any ideas for this problem ?
>
> What your using i18n for the language dependent part?
> like dirLister->openURL("audiocd:/"+i18n("By Name")+"?device....");
>
> Kevin

Shouldn't that be
dirLister->openURL(i18n("audiocd")+":/"+i18n("By Name")+ "?"+i18n("device") 
then to make it look like
musikcd:/Nach Namen?Gerät=/ger/scd1
That needs a "ln -s /dev /ger" first of course.

I think, the best solution is always, to keep file names, URLs, config file 
entries, etc. in English, but you have of course do it the way, the audiocd 
maintainer decided to do it in the slave.

Or what happens, if you run your application in German and the kioslave runs 
in French, which is possible in KDE. Then you definitely need a translator 
:-)

Regards,
Michael Häckel
 
>> 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