MishkaSlug.Gettext (Mishka Slug v0.0.1)

Copy Markdown View Source

Default Gettext backend for MishkaSlug.

It holds the messages a site admin can see, such as the errors MishkaSlug.Change puts on a form field, in the mishka_slug domain.

Using your own Gettext backend

Configure your application to use a custom Gettext backend:

config :mishka_slug, :gettext_backend, MyAppWeb.Gettext

Then copy priv/gettext/mishka_slug.pot and the mishka_slug.po files from MishkaSlug into your project's priv/gettext directory and translate them there.

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.