-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support localized language collections #11
Comments
…d via error template to help with localization #11 tests: fix single-lock unit tests, rename integration-tests: update lock test to new template-based error message
…or localization ukwa/ukwa-pywb#11 split init_routes() into init_coll_routes() and make_coll_routes() which retrieves a list of per-collection routes only
- add babel to requirements.txt, install in Dockerfile - wrap text in templates with { % trans %}/{% endtrans %} blocks - language routes: enable /en/<coll> and /cy/<coll> prefixes which set current locale - i18n dir: babel.cfg, auto-extracted translations added for cy and en - loc-clear.sh - resets translations for en and cy - loc-update.sh - extracts, updates and compiles translations for use - banner: inject locale as window.banner_info.locale to use as locale for toLocaleString() - home page: add placeholder language selector
setup & babel configimprovements: integrate babel commands into setup.py - clear-loc.sh clears existing localizations - update-loc.sh extracts, updates and recompiles localizations tests: move unit tests to ukwa_pywb/test package locale tests: #11 - add sample localized strings to CY (home page and banner) - add test_locales.py for locale testing - add locale integration tests in locale.robot README: fix typo README: fix typo README: fix typo README: fix typo
setup & babel configimprovements: integrate babel commands into setup.py - clear-loc.sh clears existing localizations - update-loc.sh extracts, updates and recompiles localizations tests: move unit tests to ukwa_pywb/test package locale tests: #11 - add sample localized strings to CY (home page and banner) - add test_locales.py for locale testing - add locale integration tests in locale.robot README: fix typo
Enabled locale prefixes for collection access. Collections are automatically available under the This results in the following additional collection routes:
Using Babel to extract the text in a GNU gettext compatible messages files: The locale.robot integration script tests a sample CY localization. The i18n/update-loc.sh script can be used to extract/update/compile translations, and i18n/clear-loc.sh can be used to clear translations and regenerated. More info will be added to the docs #15 |
…or localization ukwa/ukwa-pywb#11 split init_routes() into init_coll_routes() and make_coll_routes() which retrieves a list of per-collection routes only
Support localized UI text for collections to support multiple language deployment.
The text was updated successfully, but these errors were encountered: