[PyKDE] i18n of QFileDialog

Thomas Gfüllner T.Gfuellner at Linux-AG.com
Mon May 7 08:14:12 BST 2001


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
T.Gfuellner at Linux-AG.com    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




More information about the PyQt mailing list