Translation question

John Van Ostrand john at vanostrand.com
Tue Oct 28 13:41:59 PDT 2014


I've modified a string that are being translated, specifically the string
below that contains file extensions as well as labels:

    QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open
dive log file"), lastUsedDir(),
        tr("Dive log files (*.xml *.uddf *.udcf *.csv *.jlb *.dld *.sde
*.db *.can);;"
            "XML files (*.xml);;UDDF/UDCF files(*.uddf *.udcf);;JDiveLog
files(*.jlb);;"
            "Suunto Files(*.sde *.db);;CSV Files(*.csv);;MkVI
Files(*.txt);;All Files(*)"));

Do I need to modify all the /translations/*.ts files or will it be handled
by some other process?

Also, should this be changed since file extensions are not usually
translated. Maybe a sprintf to build a string using translations of labels
only?

-- 
John Van Ostrand
At large on sabbatical
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141028/0f1d20d5/attachment-0001.html>


More information about the subsurface mailing list