As explored in [Bug] `TS` files are not translated to `QM` files when building on OBS · Issue #68 · sailfishos-applications/filecase · GitHub, the documentation about internationalisation explains how to do it, using libsailfishapp
, see
libsailfishapp docs - Sailfish OS.
Within the SDK, everything is fine. Since the documentation is made for the SDK, there is no bug stricto sensu. But, besides the dependency on libsailfishapp
, there is a implied dependency on qt5-qttools-linguist
which provides the internationalisation tools (like lupdate
).
I don’t know what is the best solution here:
-
libsailfishapp
could itself have a dependency onqt5-qttools-linguist
so when it is pulled for the build, it will install the internationalisation tools, - complete the documentation to add that the spec file (or YAML one) should have a build dependency on
qt5-qttools-linguist
.
Personally, I would prefer the first option which is more direct for the user (less changes to spec files and things to add for it to work). @olf created an issue in [Bug] Document build time dependencies when utilising `sailfishapp_i18n` · Issue #46 · sailfishos/libsailfishapp · GitHub about it.