aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMCreateQmFromPoFiles.cmake
AgeCommit message (Collapse)Author
2022-06-12API dox: improve linking to other modules referenced in textFriedrich W. H. Kossebau
NO_CHANGELOG
2021-04-23Modules docs: move rst docs into bracket commentsFriedrich W. H. Kossebau
CMake >= 3.0 supports bracket comments, and the reStructuredText integration code in sphinx/ext/ecm.py already supports extracting the docs from a bracket comment instead. Editing documentation without leading line comment markers is more simple, e,g. when reflowing text over lines. With ECM meanwhile requiring CMake 3.5 now it is possible to switch (and thus follow also the approach used by cmake itself). NO_CHANGELOG
2020-06-14extra-cmake-modules: Convert to SPDX license statementsAndreas Cord-Landwehr
2016-08-31add full license textAllen Winter
REVIEW: 128780
2015-04-09Do not call lrelease with -compressLasse Liehu
According to Oswald Buddenhagen "it doesn't buy much, and there are some long-standing issues with it". Qt bug report: https://bugreports.qt.io/browse/QTBUG-44362 REVIEW: 122501
2015-03-06Use lconvert path from Qt cmake config when on Qt >= 5.3.1v1.8.0-rc1v1.8.0Dmitry Shachnev
Qt5LinguistToolsConfig.cmake defines CMake target for lconvert since Qt 5.3.1, so we should use that if it is available. Our own hacks were not working in some configurations (i.e. when there is /usr/bin/lconvert managed by qtchooser, but no qtchooser configuration file). REVIEW: 122626
2015-02-06Document when modules were added to ECM.Alex Merry
2014-07-14Don't search default paths when finding lconvert.Michael Palimaka
Otherwise, if lconvert exists in normal system paths (eg. /usr/bin) that one will be used instead of the one alongside Qt5::lrelease. This could cause Qt4 lconvert to be incorrectly used on some systems. REVIEW: 119198
2014-05-04Add ECMPoQmTools moduleAurélien Gâteau
ecm_create_qm_from_po_files() was actually not very useful in practice. So that is deprecated, to be removed before ECM 1.0. Instead, the ECMPoQmTools provides several useful functions: ecm_create_qm_loader() (which already existed in ECMCreateQmFromPoFiles), ecm_process_po_files_as_qm() (which has the same signature as gettext_process_po_files() from the FindGettext module) and ecm_install_po_files_as_qm(), which is a convenience function mostly for the benefit of KDE Frameworks (although potentially useful for whatever other projects have the unusual requirement of a Gettext translation workflow but no Gettext usage in the code). NB: some clean-up to the documentation was done by Alex Merry <alex.merry@kde.org> as part of this commit. REVIEW: 117823
2014-04-23Only search for qttools if ECM_CREATE_QM_FROM_PO_FILES is called.Nicolás Alvarez
This means frameworks will only depend on qttools if you have a po directory when building them. Approved by agateau and alexmerry on IRC.
2014-04-22Improve plural handling for code using Qt translation systemAurélien Gâteau
- Always load "en" translation: This way if a plural string is not translated, we fallback to the correct english plural form. - Generate .ts files with correct plural settings REVIEW: 117629
2014-04-16Allow ecm_create_qm_loader() to be passed the _SRCS variableAlex Merry
This allows a more straightforward way of using it, which matches the macros that generate things like D-Bus interfaces. REVIEW: 117475
2014-04-16ECMCreateQmFromPoFiles: Also check CMAKE_INSTALL_LOCALEDIRAlex Merry
This is the variable set by GNUInstallDirs. REVIEW: 117596
2014-04-16Make ECMCreateQmFromPoFiles usable from within trunk/l10n-kf5Aurélien Gâteau
REVIEW: 117560
2014-04-11Add documentation generation using SphinxAlex Merry
This is deliberately modelled very closely on CMake's documentation system. It's a hefty patch, because it involved changing all the documentation to be in reStructuredText format. I also cleaned up the copyright/license statements at the same time. Note that the find modules contain the full license, due to the fact that ecm_use_find_module() copies them out of the ECM distribution.
2014-04-01Do not replace "-" with "_" in .po filesAurélien Gâteau
This causes problem with .po files whose name contains "-". A nice side effect of this approach is we pass a QLocale to QTranslator, which means it will try to load translations for all "ui languages" [1] instead of just the one returned by QLocale::name(). [1]: http://doc-snapshot.qt-project.org/qt5-stable/qlocale.html#uiLanguages REVIEW: 117296
2014-03-28Add ECMCreateQmFromPoFiles.cmakeAurélien Gâteau
Simplifies translation handling for frameworks using Qt translation system. REVIEW: 117052