On Sat, May 05, 2001 at 11:49:21AM +0100, Phil Thompson wrote:
> Thomas Gf�llner wrote:
> >
> > Hi all,
> >
> > I'm not able to nationalize my QFileDialog
> >
> > I tried:
> >
> > from qt import *
> > import sys
> >
> > app = QApplication(sys.argv)
> >
> > t = QTranslator(None)
> >
> > t.insert('QFileDialog', 'Look &in', 'Zeige in')
> > t.insert('QFileDialog', 'Look in', 'Zeige in')
> >
> > t.insert('QFileDialog', 'Cancel', 'Abbr&echen')
> >
> > t.insert('QFileDialog', 'File name', 'Datei Name')
> > t.insert('QFileDialog', 'File type', 'Dateityp')
> >
> > app.installTranslator(t)
> >
> > dirName = QFileDialog.getExistingDirectory('/',None, 'P', 'Ordner', 1)
> >
> > The script only works for the "Cancel" button?
> >
> > Any ideas?
>
> The equivalent C++ version behaves in the same way, so either there is a
> bug in your code, or a bug in Qt.
>
Hi,
It's a bug in my code.
t.insert('QFileDialog', 'Look &in:', 'Zeige in:')
is working, I forgott the ':'
:-(
--
Thomas Gf�llner Linux Information Systems AG
Software Engineer Fon +49 (0)89 99 34 12-25 Stefan-George-Ring 24
[EMAIL PROTECTED] Fax +49 (0)89 99 34 12-99 D-81929 M�nchen
Linux is our Business. __________________________________ www.Linux-AG.com ____
15.-17. Mai InternetWorld in Berlin - Besuchen Sie uns in Halle 3.2, Stand A16b
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde