Skip to content
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

Add i18n and l10n #222

Closed
bartfeenstra opened this issue Sep 7, 2019 · 0 comments · Fixed by #223
Closed

Add i18n and l10n #222

bartfeenstra opened this issue Sep 7, 2019 · 0 comments · Fixed by #223
Labels
enhancement New feature or request

Comments

@bartfeenstra
Copy link
Owner

bartfeenstra commented Sep 7, 2019

Definition of done

  • Allow Betty to be configured to use one or more locales.
  • Consider whether a default locale should be used.
  • Allow user-facing strings to be translated.
  • Allow dates to be formatted according the configured locale. Keep in mind while in practice Betty has only been used with Gregorian dates, date parts (days, months, years) may be missing, and in the future support for different calendars may be required.
  • Consider whether it is a good idea to avoid all-numeric date formats (YYYY-MM-DD, DD-MM-YYYY, or the American MM-DD-YYYY) altogether to avoid confusion.
  • For non-clean URLs, add the language to the URL.
  • For clean URLs, allow content negotiation by the web server.
  • For clean URLs, allow users to specifically request a particular language without using content negotiation as well.
  • Update the generated nginx configuration to reflect this functionality.
  • Update the <html> tag.
  • Ensure JavaScript uses the <html> tag to read the document's language, and displays strings in the correct one.
  • Allow plugins and sites to provide extra translations located in their resources directories.
  • Extend the sitemap with localized URLs.
  • Localize betty.webmanifest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant