Plasma release scripts to use Ki18n's PO installation macro
Review Request #119915 - Created Aug. 23, 2014 and submitted
At present, for installing Plasma PO files the release scripts create CMakeLists.txt files inside po/ directory, which use CMake's GETTEXT_PROCESS_PO_FILES. Ki18n instead provides the KI18N_INSTALL macro that only needs to be called once from the top CMakeLists.txt, with po directory as argument. This patch switches to using it.
This is in preparation for updating release scripts to also fetch translation scripting modules into the packages. Every PO file can have an associated scripting module (though they are rare). KI18N_INSTALL handles these modules as well, when they are found in expected location inside po/ directory.
Run tarme.rb on couple of modules and languages, CMakeLists.txt tree got updated as expected. Run ts_cmakeeditor.rb.
random nitpicking: could use @languages.empty? instead of a new var
Totally my bad. Please remove the return here when pushing :S
(test passes all the same)
The l10n test actually doesn't pass for me:
Failed assertion, no message given.
It appears that the test needs updating since we don't create a million cmakelists.txt anymore.