mirror of https://github.com/zulip/zulip.git
70b30e7792
This greatly improves the readability of the diffs and in-codebase translation strings over using ASCII sequences for unicode in the JSON. We've previously noticed [^1] some JSON translation files ending up with escaped Unicode sequences on disk, which Transifex indicates is expected behavior [^2], though it is sometimes fixed by `manage.py compilemessages` [^3]. Further, as noted in #23932 [^4], some JSON translation files include HTML-escaped entities like quotation marks. This script will ingest valid JSON files and output them as proper UTF-8 files with appropriately unescaped (unless otherwise necessary, like double quotes being backslash-escaped) sequences, except when the key itself contains HTML escape sequences (as it's presumed the value of such entries must be pre-escaped before being passed to consumers). [^1]: https://chat.zulip.org/#narrow/stream/58-translation/topic/Transifex.20client/near/1479205 [^2]: https://chat.zulip.org/#narrow/stream/58-translation/topic/an.20email.20for.20Transifex.20support/near/1481287 [^3]: https://chat.zulip.org/#narrow/stream/58-translation/topic/an.20email.20for.20Transifex.20support/near/1481908 [^4]: Which is not end-to-end fixed yet by this commit: that will require a new release of Zulip Server. gitlint-ignore: B1, title-trailing-punctuation, body-min-length, body-is-missing |
||
---|---|---|
.. | ||
ci | ||
documentation_crawler | ||
droplets | ||
i18n | ||
lib | ||
linter_lib | ||
node_lib | ||
oneclickapps | ||
setup | ||
test-install | ||
tests | ||
wsl | ||
zulip-export | ||
README.md | ||
__init__.py | ||
build-docs | ||
build-release-tarball | ||
cache-zulip-git-version | ||
check-capitalization | ||
check-frontend-i18n | ||
check-issue-labels | ||
check-openapi | ||
check-provision | ||
check-schemas | ||
check-templates | ||
check-thirdparty | ||
clean-branches | ||
commit-message-lint | ||
commit-msg | ||
conf.ini-template | ||
coveragerc | ||
create-test-api-docs | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
deploy-branch | ||
diagnose | ||
documentation.vnufilter | ||
duplicate_commits.json | ||
fetch-contributor-data | ||
fetch-pull-request | ||
fetch-rebase-pull-request | ||
find-unused-css | ||
generate-integration-docs-screenshot | ||
lint | ||
message-screenshot.js | ||
pre-commit | ||
provision | ||
push-to-pull-request | ||
rebuild-dev-database | ||
rebuild-test-database | ||
release | ||
release-tarball-exclude.txt | ||
renumber-migrations | ||
reset-to-pull-request | ||
review | ||
run-codespell | ||
run-dev.py | ||
run-mypy | ||
run-tsc | ||
run-yarn-deduplicate | ||
semgrep.yml | ||
setup-git-repo | ||
show-profile-results | ||
stop-run-dev | ||
tail-ses | ||
test-all | ||
test-api | ||
test-backend | ||
test-documentation | ||
test-help-documentation | ||
test-js-with-node | ||
test-js-with-puppeteer | ||
test-locked-requirements | ||
test-migrations | ||
test-queue-worker-reload | ||
test-run-dev | ||
test-tools | ||
total-contributions | ||
update-locked-requirements | ||
update-prod-static | ||
update-zuliprc-api-field | ||
upload-release | ||
webpack | ||
webpack.assets.json | ||
webpack.dev-assets.json | ||
zanitizer | ||
zanitizer_config.pm.sample |
README.md
This directory contains scripts that are used in building, managing,
testing, and other forms of work in a Zulip development environment.
Note that tools that are also useful in production belong in
scripts/
or should be Django management commands.
For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.