Summary: | Using KDE_L10N_SYNC_TRANSLATIONS option does not lead to compiling translations | ||
---|---|---|---|
Product: | [Frameworks and Libraries] extra-cmake-modules | Reporter: | Andrew Shark <ashark> |
Component: | general | Assignee: | ecm-bugs-null <ecm-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sitter |
Priority: | NOR | ||
Version: | 5.87.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Andrew Shark
2021-11-01 23:05:46 UTC
I tried to edit fetchpo.rb, lib/releaseme/l10n.rb and lib/releaseme/cmakeeditor.rb to enable cmake_edit thing. And now I realized that I am trying to edit a CMakeLists.txt that is currently executing (cmake called the fetchpo.rb script). This is not what I want. The cmake source dir should not be modified; po dir is created in cmake build dir, and that instruction to compile translations should be added to generated files in cmake build dir. I think that KDECMakeSettings.cmake (or other extra cmake module?) should be modified to do that. For reference, these are the lines that tarme.rb adds to main CMakeLists.txt: ``` find_package(KF5I18n CONFIG REQUIRED) ki18n_install(po) ``` but in its case, the po dir is packed in source dir (unlike in fetchpo.rb case). A possibly relevant merge request was started @ https://invent.kde.org/sdk/releaseme/-/merge_requests/14 Looks like https://invent.kde.org/sysadmin/l10n-scripty/-/merge_requests/16 got merged and translations periodically are commited directly to project repositories. Close. |