[Qgis-developer] installation of the qt_xx.qm files

Marco Hugentobler marco.hugentobler at karto.baug.ethz.ch
Thu Dec 6 10:29:56 EST 2007


Hi Tom,

Thanks a lot!

> I also thought a little about a better place for the strings. I tried
> putting the qt_xx.ts files in a different directory but the
> update_ts_files.sh still finds them. My current idea is to add some code
> to update_ts_files.sh to search for and delete the references in the
> TRANSLATIONS section of the project file after it is generated by
> update_ts_files.sh.

This sounds good. Could you also place a text file into i18n directory that 
describes the modifications?

> After solving the update problem, we should encourage our translators to
> translate additional qt_xx.ts files and submit them to Trolltech too.

+1

Hehe, qgis already has more translations than qt itself :-)

Regards,
Marco


On Wednesday 05 December 2007 22:15:05 Tom Elwertowski wrote:
> Hi Marco,
>
> I added the qt_xx.ts files from Trolltech in r6461 and Magnus added one
> more in r6465. The only class I modified is QMenuBar because it contains
> Mac-only strings which are sometimes untranslated.
>
> Those files are all from Qt4.2. Qt4.3 contains three more languages that
> we use and there may be new strings for all languages as well. Later
> this evening, I will merge my QMenuBar strings into the latest qt_xx.ts
> files and submit them to svn.
>
> I also thought a little about a better place for the strings. I tried
> putting the qt_xx.ts files in a different directory but the
> update_ts_files.sh still finds them. My current idea is to add some code
> to update_ts_files.sh to search for and delete the references in the
> TRANSLATIONS section of the project file after it is generated by
> update_ts_files.sh.
>
> After solving the update problem, we should encourage our translators to
> translate additional qt_xx.ts files and submit them to Trolltech too.
>
> Tom
>
> Marco Hugentobler wrote:
> > Hi Tom,
> >
> > Do you remember which strings you changed or at which revision you
> > committed the qt_xx.ts files (was it r6461)? I think we should add your
> > qt_xx.ts files to svn prior to release tagging for 0.9.1 and I'd like to
> > look at possible solutions in the next time.
> >
> > Thanks,
> > Marco
> >
> > On Thursday 29 November 2007 11:21:58 Tom Elwertowski wrote:
> >> Marco Hugentobler wrote:
> >>> A question to the cmake Gurus:
> >>>
> >>> How can we install all the qt translation files (*.qm) from
> >>> QTDIR/translations to the qgis i18 dir? They contain translations of
> >>> the qt classes (e.g. QFileDialog)
> >>>
> >>> I think it is a better way than having the qt_xx.ts files in qgis svn.
> >>> It was a problem that people updated the .ts files with the
> >>> update_ts_files.sh script and like this, also the qgis strings have
> >>> been written into qt_xx.ts files.
> >>
> >> The qt_xx.ts files are in qgis svn because I needed to fix some Mac
> >> bugs. Qt does string comparisons between QMenuBar strings and equivalent
> >> strings in qgis_xx.ts. If the translated strings do not match, menus
> >> such as About, Preferences and Quit do not appear in the correct
> >> location on a Mac.
> >>
> >> In some cases, the QMenuBar class is not translated in the Qt-provided
> >> files. In other cases, the strings are translated differently. Since
> >> QGIS translators use the same translation as Apple recommends, I have
> >> modified some qt_xx.ts files to match what Apple and our translators use
> >> rather than asking that our translators use odd translations just to
> >> make Mac-only code inside QMenuBar work.
> >>
> >> As an alternative, does it make sense to merge the Qt classes into
> >> qgis_xx.ts? Is there some way to remerge the qt_xx.ts files for each Qt
> >> release such that we pick up new strings without losing our
> >> modifications?
> >>
> >> Tom



-- 
Dr. Marco Hugentobler
Institute of Cartography
ETH Zurich
Technical Advisor QGIS Project Steering Committee
marco.hugentobler at karto.baug.ethz.ch



More information about the Qgis-developer mailing list