~/talk

International appeal: making your themes and plugins translatable

Talkat WordCamp Europe 2023 · 2023-06-08..06-10· [wordpress]
links:none on file
slides:none on file

WordPress powers about 43% of the web and over 55% of installs are non‑English, so make themes and plugins translatable by using gettext wrappers like __() and context/number variants, extracting a POT/PO/MO/JSON pipeline, and loading files with functions such as load_plugin_textdomain or the automatic repo delivery. Demo repo shows a tiny plugin with both PHP and JavaScript strings, and tooling options include CLI, grunt/gulp, Poedit, or the admin pot generator.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:55Translation functions in code
  3. 5:00Why internationalization matters
  4. 8:12GNU gettext and text domains
  5. 10:42Translation process overview
  6. 13:15Specialized translation functions
  7. 16:54Generating POT files
  8. 20:33PO and MO files explained
  9. 21:36Loading translations in code
  10. 24:08Automatic translation handling
  11. 26:15Bespoke vs distributed themes
  12. 28:05Live demo and resources
  13. 29:30Further learning and Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.