CI: obs-crowdin-sync Python Rewrite
Description
Rewrites the obs-crowdin-sync repository in Python and adds the action to this repository.
Changes that come along with it:
- Translates the
UI/cmake/linux/com.obsproject.Studio.metainfo.xml.infile. - Creates a pull request instead of pushing directly: https://github.com/Vainock/obs-studio/pull/4
- Changes the name of
EnglishtoEnglish (USA)foren-US. - Lowers the requirements for new languages to be added to the
UI/data/locale.ini. - Host the
Languagestring in a separateLanguage Namefile on Crowdin, remove it here.
Makes the organization/repository secret CROWDIN_SYNC_GITHUB_PAT obsolete.
Motivation and Context
The obs-crowdin-sync repository was too much for what it solves.
This solution is better for integration testing, easier to extend, easier for error analysis in the log because you don't have a huge bundled script and much cleaner to look at.
Pushing directly to the repo is bad, creating a PR is safer and transparent.
How Has This Been Tested?
Locally and https://github.com/Vainock/obs-studio/pull/4. The update-crowdin-locales action was tested in a obs-studio and obs-browser fork.
Types of changes
- Tweak (non-breaking change to improve existing functionality)
Checklist:
- [x] My code has been run through clang-format.
- [x] I have read the contributing document.
- [x] My code is not on the master branch.
- [x] The code has been tested.
- [x] All commit messages are properly formatted and commits squashed where appropriate.
- [x] I have included updates to all appropriate documentation.
Blocked by #10658, once merged please update your code to only translate UI/cmake/linux/com.obsproject.Studio.metainfo.xml.in and not UI/xdg-data/com.obsproject.Studio.metainfo.xml.in.
The latter is in the deprecated CMake path, the former is the new one.
@tytan652 Should it also update UI/cmake/linux/com.obsproject.Studio.desktop instead of UI/xdg-data/com.obsproject.Studio.desktop?
Yes
I think the change about going away from xdg-data folder has completely gone unseen. We found out about it recently through metainfo regression in CI.
Ready for review.