| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
...damn you Julian!
Change-Id: I6d942b1ae0d014c2d17665fa4e82bc3a67046b55
|
| |
|
| |
Change-Id: Ia322e4cef33ecb4de4facf52a35f7fa0bfa149e7
|
| |
|
|
|
| |
Although it might not be used as of now, we should enable it on crowdin for translation.
Change-Id: I89cf7d299b08b559d2d8809b9e2eae7916fbae5c
|
| |
|
|
| |
bring the extra_packages in sync to ensure we can sync correctly.
Change-Id: I13c341b261d0a22aac0ed436466ffcb0c806887e
|
| |
|
|
| |
Change-Id: I2c181fe763bf597772db85f1887aefa7f5bc067e
|
| |
|
|
|
|
| |
* Update the ReadMe
* Adapt the files for the new branch
* Add currently translatable repos as of now.
Change-Id: Ic802a2fdac9f4bc533446ab829527479061d8c16
|
| |
|
|
| |
change from calling the JAR file to calling the alias executable and adapt the ReadMe a bit to reflect it.
Change-Id: I5bc71b3f99b879ca9851307ebd7676f5ee45389e
|
| |
|
|
|
|
|
| |
Cleanup the script and config files for Python3.
Added a crowdin.xml to the platform_manifest with all our translatable repos, which makes syncing easier.
So please, if a repo is added to removed, it must be changed in the platform_manifest's crowdin.xml too. Otherwise the script will fail!
Change-Id: Iac26e195c3850b7c7bfa5c9f32f39e3e5142d116
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
... and keep the old python2 version too.
This is an adaption / aquash of LineageOS commits:
Original author: "Michael W <baddaemon87@gmail.com>"
crowdin: Fix for unicode
* etree complains if a file already has a xml declaration
* Remove it from the input and add it to the output manually before processing it
crowdin: Enforce py3 and align style of strings
* This script doesn't really work properly with py2 anymore
* py2 is deprecated anyway
* The style of the various print statements and strings has been a mixture of old and new styles
* Make use of f-strings (string interpolation) -> faster, easier to read
* Adapt README to contain 17.1 branch and mention the proper requirements
crowdin: Improve error handling when push fails
* Right now there is only a barely noticeable "Failed" at the end of each block that actually fails - too few info to miss
* Catch the actual exception and prepend it so you can't miss it anymore
* Also need to return in that case, otherwise we get _COMMITS_CREATED set despite of an error
Original author: "Simon Shields <simon@lineageos.org>"
crowdin: fix _COMMITS_CREATED references
We need to explicitly declare this as global, otherwise it has no
effect. Also change the exit code when nothing is committed to a more distinct value so that infra scripts can pass the build in this case.
Change-Id: I0b514a168d591a2ac8cd768faff164c3fa0a3a03
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update including squashed commits from LineageOS:
crowdin: Improve console output
* Reduce the amount of output lines - this makes it more readable
* Add a signal handler to handle aborts - we don't need a stacktrace here
crowdin: PyYAML yaml.load(input) deprecation
* YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
as the default Loader is unsafe.
Please read https://msg.pyyaml.org/load for full details
* Use yaml.safe_load(input) instead - we only use a small subset of YAML so this works as expected
* Test: Compared the results of yaml.load() and yaml.safe_load()
crowdin: Replace minidom with lxml.etree
* We use lxml already in other places, so thats just commonisation
* It was still marked as "TODO", so get it done
crowdin: Fix removing invalid product strings
* Removing items from a list while iterating it is not a good idea
and results in unexpected results
* Instead of removing them, add them to an ignore list and check the current item against it
crowdin: Fix console-output on download
* When we have errors or messages during cleanup,
the string is currently in the wrong line
crowdin: Fix submitting
Original author: "Michael W <baddaemon87@gmail.com>"
Change-Id: I3520cae14b4d9c1924c27e72f8982bac4547fc57
|
| |
|
|
| |
Change-Id: Ie74f402365629df0fdaf229f2f74da433abfa5b1
|
| |
|
|
|
|
| |
Used for local-download. Crowdin fails on some procceses
Change-Id: I366c08ddc5e0dc5c853a4b0adc9e4205da7b5121
|
| |
|
|
| |
Change-Id: Ic4d2ce6ca6b877b550ff97f667b3db86e20ade7d
|
| |
|
|
| |
Change-Id: I6153364dc8feb32059c8b2b252d0816e152896ff
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Update the ReadMe to reflect changes for Q.
2. Squash updates from LineageOS:
We need to update our script to make it work properly again
and add recent changes from LineageOS that were authored
by "Michael W <baddaemon87@gmail.com>" (and a bit adapted).
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/268087
crowdin: Make downloading a parallel thing
* Instead of relying on the API, call the download for several languages
at once
* Limit the amount of simultaneous calls to a maximum of 20 as per
https://support.crowdin.com/api/api-integration-setup/#rate-limits
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/267360/1
crowdin: Improve console output
* Reduce the amount of output lines - this makes it more readable
* Add a signal handler to handle aborts - we don't need a stacktrace here
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/253482
crowdin: Don't clean non-xml and handle errors for xml-files
* For non-xml files, just don't touch the file
* For xml-files, create a backup:
- create the same folder structure from /res(.*)/(.*) and place the
wrong file in there, appending a number if already existing
- then checkout the original xml file to get rid of the errors
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/250431
crowdin: Remove invalid strings
* aapt2 fails when linking resources which contain strings with a product
attribute but don't have the same string with product=default set
* Search for all strings in the relevant files which have a product
attribute and look for the corresponding default one
* Remove all strings with that name if it doesn't exist
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/250488
crowdin: Improve empty resource file removal
* Instead of maintaining a list of all variants of empty resource tags,
just count the number of sub elements
* Equal to zero -> No child elements -> remove
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/244152
crowdin: Fix for subprojects
* If a project is stored within another projects folder structure,
the current implementation will treat it as "already known" and therefore
never process the project itself
* Search for the biggest path match before continuing
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/244128
crowdin: Fix for devicesettings
* Due to a split at /res, the devicesettings-repo was always treated wrong
* Check the length of the list after split and treat that case properly
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/243912
crowdin: Add missing import
* Forgot "re", will result in an error when trying to download from crowdin
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/242731
crowdin: Re-add removing empty xml files
* Process every file and remove all comments
* If only the root tags are left, remove the whole file
https://review.lineageos.org/c/LineageOS/cm_crowdin/+/242685
crowdin: Only push the translation changes
* Instead of commiting all the changed files, parse the config files
and only commit changes made to files which are mentioned there
* This ensures that changes to other files which exist locally aren't
added to the commits and have to be manually removed again
Change-Id: I51697a3421308eeff9110243869383d336e960ae
|
| |
|
|
| |
Change-Id: Ie56cd53005e368377df0afe47917e9880ed27d44
|
| |
|
|
| |
Change-Id: I90e03c914b136c54a785e10718ef78ad0108aaf8
|
| |
|