Packages
gettext
1.0.2
1.0.2
1.0.1
retired
1.0.0
0.26.2
0.26.1
0.26.0
retired
0.25.0
0.24.0
0.23.1
0.23.0
0.22.3
0.22.2
0.22.1
0.22.0
0.21.0
0.20.0
0.19.1
0.19.0
0.18.2
0.18.1
0.18.0
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
0.13.1
0.13.0
0.12.2
0.12.1
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.1
0.6.0
0.5.0
Internationalization and localization through gettext
Current section
Files
Jump to
Current section
Files
lib/gettext/missing_bindings_error.ex
defmodule Gettext.MissingBindingsError do
@moduledoc """
An error message raised for missing bindings errors.
"""
@enforce_keys [:backend, :domain, :msgctxt, :locale, :msgid, :missing]
defexception [:backend, :domain, :msgctxt, :locale, :msgid, :missing]
@type t() :: %__MODULE__{}
@impl true
def message(%__MODULE__{
backend: backend,
domain: domain,
msgctxt: msgctxt,
locale: locale,
msgid: msgid,
missing: missing
}) do
"missing Gettext bindings: #{inspect(missing)} (backend #{inspect(backend)}, " <>
"locale #{inspect(locale)}, domain #{inspect(domain)}, msgctxt #{inspect(msgctxt)}, " <>
"msgid #{inspect(msgid)})"
end
end