[PyKDE] i18n of QFileDialog

Thomas Gfüllner T.Gfuellner at Linux-AG.com
Wed May 2 15:09:33 BST 2001


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?
-- 
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