geeksforsocialchange / imok

A simple bot to support people doing risky activities
https://gfsc.studio/blog/2021/imok-is-launched/
MIT License
12 stars 1 forks source link

Support multiple languages #8

Closed wheresalice closed 3 years ago

wheresalice commented 3 years ago

Overview

While we are currently wrapping strings with gettext(), we are not actually setting the language based on the user's language choice. Nor do we support any language other than en_gb.

Scope

Update views to set a language based on Member.language.

Update documentation on how to add additional languages.

If you have the skills, provide an additional language in order to test this.

Acceptance Criteria

Questions/Assumptions

kimadactyl commented 3 years ago

How do we test this without providing translations?

No need for the test suite language to be a real language - pig latin or lorem should be fine?

kimadactyl commented 3 years ago

Top 10 countries that asylum seekers are coming into the UK from and their official languages, in order:

  1. Iran (Persian)
  2. Albania (Albanian)
  3. Iraq (Arabic, Kurdish)
  4. Eritrea (none, Tigrinya, English and Arabic listed as working languages)
  5. Sudan (Arabic, English)
  6. Afghanistan (Pashto, Dari Persian)
  7. Pakistan (English, Urdu, Punjabi, Pashto, Sindhi, Balochi)
  8. Syria (Arabic)
  9. Vietnam (Vietnamese)
  10. India (Hindi, English)
wheresalice commented 3 years ago

Generate translations that are all upside-down versions of the original text:

docker run --rm -it -v $(pwd)/locale:/locale colthreepv/docker-translate-toolkit podebug --rewrite flipped ./locale/cy/LC_MESSAGES/django.po
wheresalice commented 3 years ago

Moved to Asana