-
Notifications
You must be signed in to change notification settings - Fork 689
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
streamline functions currently provided by i18n_tool.py
#6917
Comments
The (.venv) user@sd-dev:~/securedrop$ grep -R "i18n_tool.py" * | grep -Ev "^changelog.md:"
Makefile: @echo "SUPPORTED_LOCALES = $$(if test -f /opt/venvs/securedrop-app-code/bin/python3; then ./securedrop/i18n_tool.py list-locales --python; else DOCKER_BUILD_VERBOSE=false $(DEVSHELL) ./i18n_tool.py list-locales --python; fi)" | sed 's/\r//' >> securedrop/config.py
Makefile: @$(DEVSHELL) $(SDROOT)/securedrop/i18n_tool.py list-translators
Makefile: @$(DEVSHELL) $(SDROOT)/securedrop/i18n_tool.py list-translators --all
securedrop/debian/translations.sh:/tmp/securedrop-app-code-i18n-ve/bin/python3 ./i18n_tool.py --verbose translate-messages --compile
securedrop/bin/translation-test:./i18n_tool.py translate-messages --compile
securedrop/bin/translation-test:SUPPORTED_LOCALES=$(./i18n_tool.py list-locales)
securedrop/bin/generate-docs-screenshots:./i18n_tool.py translate-messages --compile
securedrop/bin/dev-deps: ./i18n_tool.py translate-messages --compile |
This has always had a bit of smell to me. I think it's the only place outside of packaging where we let a Make target in one repository read or write a file in another. Even though there's a Since our goal here is to automate as much of this process as possible, rather than reimplement this particular step literally, I propose to do one of the following instead, from least to most effort:
|
You have some stuff checked off in the above list, am I correct in assuming that's just a personal list you're using, i.e. those things haven't been fixed in |
Yes, exactly, @legoktm: this checklist tracks the work in progress in |
Hot take: we shouldn't do this either. I've proposed this in freedomofpress/securedrop-client#1280 (comment) and presumptively documented it in freedomofpress/securedrop-dev-docs@f91a4d3. |
Barring any objections to the reductions of scope I've proposed in #6917 (comment) and #6917 (comment), here's what's left here:
|
The assumption here is that we are comfortable asking administrators to read a JSON file. See <freedomofpress/securedrop#6917 (comment)> for alternative approaches.
The assumption here is that we are comfortable asking administrators to read a JSON file. See <freedomofpress/securedrop#6917 (comment)> for alternative approaches.
securedrop-client
'smake extract-strings
targetsecuredrop-tooling
?securedrop/{securedrop,desktop}
Weblate components? (This might violate the "No side effects" constraint.)make check-strings
)securedrop-tooling
?.po
catalogs →.mo
machine objects" asmake compile-translations
make update-docs
→ https://github.com/freedomofpress/securedrop-docs/blob/main/docs/includes/l10n.txti18n_tool.py
#6917 (comment)l10n.txt
include with link toi18n.rst
securedrop-docs#503replicatei18n_tool.py list-translators
in continuous-localization workflow securedrop-client#1280i18n_tool.py
#6917 (comment)The text was updated successfully, but these errors were encountered: