Repository navigation
Conversation
An app can list languages in .tx/keep-languages, one code per line. The l10n files of those languages are taken from git again after the conversion, so the sync neither overwrites nor deletes them. Apps without the file are not affected. Signed-off-by: Florian Ludwig <florian.ludwig@uninow.de>
Tags the source strings of the resource with locked_<language> for every language in .tx/keep-languages, so translators are not asked to work on languages the repository maintains itself. A failure does not abort the sync. Signed-off-by: Florian Ludwig <florian.ludwig@uninow.de>
luflow
marked this pull request as ready for review
October 2, 2026 14:00
Member
|
Don't really have the headspace at the moment to dive into this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #1006.
What this does
Commit 1 – keep languages. An app can add
.tx/keep-languageswith one language code per line:The sync then takes
l10n/<language>.js|jsonfor those languages from git again instead of overwriting or deleting them. All other languages sync as before. Apps without the file are not affected.Commit 2 – lock those languages on Transifex. After
tx push -s,lockLanguages.shtags the source strings of the resource withlocked_<language>(Preventing Translation Edits), so translators are not asked to work on a language that is never shipped.The commits are separate on purpose, so the second one can be dropped or changed.
Testing
dashagainst throwaway repositories. The same test fails againstmaster.Open questions
locked_de_DEthe right tag for a regional code? The article only showslocked_it.If this is fine, I will send a paragraph for the developer manual to nextcloud/documentation.