~/talk

East Meets West When Translating Django Apps

Talkat PyCon US 2020 · 2020-04-15..04-23· [python, web-platform]
slides:none on file

A Django admin front end for a family sales app is built, deployed to Heroku, and uses Amazon s3 for images; language switching works via flag widgets that toggle English and simplified Chinese. Actual steps: enable locale middleware and language settings, add URL prefixes, mark every visible string with gettext and gettext_lazy, then generate and compile .po/.mo files with makemessages and compilemessages for the zh-hans locale. Translations are provided by a native speaker and the site displays translated titles buttons and filters.

AI-written summary · about

  1. 0:00Introduction
  2. 2:35Demo
  3. 4:19Workflow
  4. 8:17Application Settings
  5. 12:27Language Prefixes
  6. 18:28Message Files
  7. 22:43Big Picture
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.