PhoenixKitKnowledgeBase.Gettext (PhoenixKitKnowledgeBase v0.1.0)

Copy Markdown View Source

Gettext backend for the knowledge base's own translations.

The host sets the locale per request; this module only owns the catalogues under priv/gettext/:

  • default — this module's strings (the notes panel, the sidebar tab)
  • leaf — the Leaf editor's strings, for the editor inside the notes panel. Leaf looks its strings up in the "leaf" domain of whatever backend it is given, and the panel gives it this one, so a host gets a translated toolbar without adding Leaf's catalogue to its own.

Shipped: Russian (ru) and Estonian (et); English is the source.

Summary

Functions

handle_missing_bindings(exception, incomplete)

Callback implementation for Gettext.Backend.handle_missing_bindings/2.

handle_missing_plural_translation(locale, domain, msgctxt, msgid, msgid_plural, n, bindings)

Callback implementation for Gettext.Backend.handle_missing_plural_translation/7.

handle_missing_translation(locale, domain, msgctxt, msgid, bindings)

Callback implementation for Gettext.Backend.handle_missing_translation/5.