-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove chromeos release files #16348
Conversation
Message to maintainers, this PR contains strings changes.
Read more about updating strings on the wiki, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely need a second opinion on this review, but I think the code pruning could go a bit deeper, and there's also a breaking change.
The key here is that ankidroid-titles.txt
is generated/updated by update.ts. So even if we delete the ankidroidtitles, it may regenerate next time localizations are updated.
I would also investigate to see if any of those marketdescription files are also exclusively a chromeos thing, and if so, remove those and the code that generates them.
tools/localization/src/constants.ts
Outdated
@@ -32,7 +32,7 @@ createDirIfNotExisting(TEMP_DIR); | |||
|
|||
export const I18N_FILES_DIR = path.join(__dirname, RES_DIR, "values/"); | |||
export const RES_VALUES_LANG_DIR = path.join(__dirname, RES_DIR, "values-"); | |||
export const TITLE_FILE = path.join(__dirname, DOCS_MARKET_DIR, "ankidroid-titles.txt"); | |||
export const TITLE_FILE = path.join(__dirname, DOCS_MARKET_DIR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the localization update flow, e.g. here
Anki-Android/tools/localization/src/update.ts
Line 150 in 9a81b50
fs.appendFileSync(TITLE_FILE, "\n" + language + ": " + translatedTitle); |
With this change, it would try to write to a directory, throwing an error. I think the right move would be to remove this line, and any uses of TITLE_FILE
in update.ts. There isn't any other file that imports this, so I think it should be relatively safe to remove.
28a5a0a
to
b15bfd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @RobozinhoD !
It is possible the market description could go as well but let's do one at a time :-), I haven't looked in to that one at all but I did look at ankidroid titles
This does look like the full removal of ankidroid titles (thanks for the review @kpdyer16)
There is no great way to test this (there are some non-great ways that involve making your own copy of ankidroid crowdin and stuff, but I can't really recommend)
So note to maintainers (probably future me): DO NOT MERGE THIS until you are ready to do an i18n sync, then look very very carefully at the output to make sure things look correct (the CI workflow log, the PR generated, etc)
does seem like it needs a rebase - I believe that will be the case every single time an i18n sync is run prior to this merging though, so ignore it for now. second note to maintainers: when this is ready to merge, rebase it right then, and then merge it, prior to doing any i18n sync work to verify the functionality here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ready (and has been ready, really) so I followed my own maintainer note with a rebase to fix the conflict (we are just deleting a file entirely, so not a complicated thing...) and will merge
Maintainers: Please Sync Translations to produce a commit with only the automated changes from this PR. Read more about updating strings on the wiki, |
Purpose / Description
Describe the problem or feature and motivation
Fixes
Approach
I removed the files specified in the issue
How Has This Been Tested?
I can't test it
Learning (optional, can help others)
Describe the research stage
Links to blog posts, patterns, libraries or addons used to solve this problem
Checklist
Please, go through these checks before submitting the PR.