In order to work on translations, it is necessary first to provide a mechanism for updating translation templates. For this reason, the CMake module TDEL10n was prepared. It is now necessary to prepare the CMakeL10n rules for all modules to ensure the creation and updating of translation templates.
2. Build translations for all languages
At the same time, we must ensure that all currently available languages are automatically processed when building packages. Translations for new languages will be automatically added using the Weblate, so it is essential that we do not have to edit the build rules (either automake or cmake) when adding a translation for a new language.
3. Set up integration with Weblate
In individual Gitea repositories, webhook activation from Weblate must be configured to ensure automatically update repositories in Weblate. Once the translation template is ready, an addon can be enabled in the Weblate to automatically update the translations according to the template. It is also useful to verify the source code path to the Gitea repository in the Weblate so that references to the location of the translated string in the source code work properly.
Thanks to this integration, updating existing translations by templates and creating translations for new languages will be done in the Weblate. Commits from the Weblate are pushed directly into Gitea.
1. Templates for translations
In order to work on translations, it is necessary first to provide a mechanism for updating translation templates. For this reason, the CMake module TDEL10n was prepared. It is now necessary to prepare the CMakeL10n rules for all modules to ensure the creation and updating of translation templates.
2. Build translations for all languages
At the same time, we must ensure that all currently available languages are automatically processed when building packages. Translations for new languages will be automatically added using the Weblate, so it is essential that we do not have to edit the build rules (either automake or cmake) when adding a translation for a new language.
3. Set up integration with Weblate
In individual Gitea repositories, webhook activation from Weblate must be configured to ensure automatically update repositories in Weblate. Once the translation template is ready, an addon can be enabled in the Weblate to automatically update the translations according to the template. It is also useful to verify the source code path to the Gitea repository in the Weblate so that references to the location of the translated string in the source code work properly.
Thanks to this integration, updating existing translations by templates and creating translations for new languages will be done in the Weblate. Commits from the Weblate are pushed directly into Gitea.
4. Current state of CMakeL10n rules
Main
Applications
JPReisender referenced this issue 2 years ago