~/talk

Gettext for Elixir - getting serious at compile time

Talkat ElixirConf 2015 · 2015-10-01..10-03· [developer-experience]
slides:none on file

Gettext for Elixir claims most work moves to compile time and demonstrates it concretely: macros generate function clauses per translation from .po templates, extraction runs via mix gettext.extract, merges via mix gettext.merge, and an agent during compilation collects source references so translators get context. Result is zero runtime cost, support for interpolation and plural rules (Arabic needs six forms), published on Hex, requires Elixir 1.1, and the library already builds and runs fast in real projects.

AI-written summary · about

  1. 0:00Intro
  2. 0:48Metaprogramming
  3. 1:36Agents
  4. 2:16What is Gettext
  5. 5:21English strings
  6. 6:49More context
  7. 7:38Simple syntax
  8. 8:11Poedit
  9. 9:58Read translations from p0 files
  10. 10:26Dynamic function clauses
  11. 11:48Move logic away from runtime
  12. 12:09The compiler is your friend
  13. 14:13Gitex tooling
  14. 15:03Rewriting macros
  15. 15:36Extract translations
  16. 15:51Attack macro
  17. 16:29Extract translation
  18. 17:00Push to an agent
  19. 18:10Implementation
  20. 18:54Runtime cost
  21. 19:18Compile time
  22. 19:47curly bracket syntax
  23. 20:32law realization
  24. 21:06Plural form
  25. 22:09Gettext workflow
  26. 22:23Define a text module
  27. 22:41Wrap the strings
  28. 23:01Gettexturedistract
  29. 23:30Translations
  30. 24:49Update Source Code
  31. 25:54Fuzzy Matching
  32. 26:46Getting text to work
  33. 27:02Summary
~/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.