-
Notifications
You must be signed in to change notification settings - Fork 1k
Warehouse: l10n skeleton #6535
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
Merged
Merged
Warehouse: l10n skeleton #6535
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
dc77e90
Add language switcher UI
nlhkabu 41c996b
[WIP] Makefile, warehouse: l10n skeleton
woodruffw 9477fce
Makefile: Add compile-pos target
woodruffw b317335
Makefile, warehouse: Add update-po target
woodruffw fbfad64
warehouse: Fix Accept-Language handling
woodruffw 56e0fa8
warehouse: Move TranslationStringFactory to module scope
woodruffw 98ea80d
warehouse: More l10n work
woodruffw eb57a6a
warehouse: Language selection form skeleton
woodruffw b8d811a
warehouse: Expose locale form on account mgmt page
woodruffw b7131a6
warehouse: Remove unnecessary error boilerplate
woodruffw 55ca1ca
warehouse: Auto-format
woodruffw a5da547
tests: Remove old locales static view
woodruffw a94d42b
tests: Update i18n config stub
woodruffw 5a95134
tests: Update default_response
woodruffw 00d7f0f
tests: Auto-format
woodruffw 3afaa8b
warehouse: Revert to functional localize
woodruffw e01cec8
warehouse: Use IDs for messages
woodruffw 3135725
warehouse: Tag all account view strings
woodruffw 772310c
warehouse: Formatting
woodruffw 3228111
warehouse: Error nits
woodruffw e42fcbb
tests: Add l10n fixtures, fix account view tests
woodruffw e8bf88d
warehouse: Move locale route, form out of management
woodruffw 7be37dc
tests: Update manage views, routes tests
woodruffw 8bfd142
tests: Add /locale test
woodruffw ffd17f3
tests: Fill in remaining i18n tests
woodruffw 7945bed
warehouse: isort
woodruffw 5a94df8
warehouse/accounts: Revert to english copy for IDs
woodruffw c74a7f9
warehouse/locale: Update master POT
woodruffw 54b61c2
warehouse: Initial lazy string impl
woodruffw f3d04db
warehouse: Simplify LazyString a bit
woodruffw 1749565
tests: Fix forms tests
woodruffw 3fdec6c
tests: Update i18n, manage forms tests
woodruffw f417c4a
warehouse: Add language selector functionality
woodruffw d407342
warehouse: Re-add selected indicator
woodruffw 5287750
tests: Update i18n tests
woodruffw e8a291b
warehouse: Remove stub langs
woodruffw 7eb8016
Merge branch 'master' into tob-l10n
woodruffw e1f5061
docker-compose: Run hupper with MO watching rule
woodruffw 23c6964
Makefile, pybabel: Use config file
woodruffw 30e3a2a
locale: Update messages to include HTML
woodruffw 018226b
warehouse/config: Tell Jinja2 our localization domain
woodruffw 9ec8737
tests: Update config tests
woodruffw 6421fd9
warehouse/i18n: Use _ as locale separator
woodruffw 2b1249d
tests/i18n: Fix test_sets_locale
woodruffw 0313b5f
warehouse: Handle LazyString session serialization
woodruffw 066dd6c
tests, warehouse: Fix tests, lint
woodruffw 7dc195d
tests: Add msgpack utils tests
woodruffw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[python: **.py] | ||
[jinja2: **.html] | ||
encoding = utf-8 | ||
extensions=jinja2.ext.autoescape,jinja2.ext.with_ |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.