Copyright © 2009 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
| default_language/1 | Return the configured default language for this server. |
| is_language/1 | check if the two letter code is a valid language. |
| lc2descr/1 | Return a descriptive (english) string for the language. |
| lookup/2 | Strict translation lookup of a language version. |
| lookup/3 | |
| lookup_fallback/2 | Non strict translation lookup of a language version. |
| lookup_fallback/3 | |
| lookup_fallback_language/2 | |
| lookup_fallback_language/3 | |
| parse_translations/1 | Prepare a translations table based on all .po files in the active modules. |
| to_language_atom/1 | Translate a language-code to an atom. |
| trans/2 | translate a string or trans record into another language. |
| translations/2 | Fetch all translations for the given string. |
default_language(Context::#context{}) -> atom()
Return the configured default language for this server
is_language(Language::term()) -> boolean()
check if the two letter code is a valid language
lc2descr(Language) -> Descr
Return a descriptive (english) string for the language
lookup(Trans, Context) -> any()
Strict translation lookup of a language version
lookup(Text, Lang, Context) -> any()
lookup_fallback(Trans, Context) -> any()
Non strict translation lookup of a language version. In order check: requested language, default configured language, english, any
lookup_fallback(Text, Lang, Context) -> any()
lookup_fallback_language(Langs, Context) -> any()
lookup_fallback_language(Langs, Lang, Context) -> any()
parse_translations(Context) -> any()
Prepare a translations table based on all .po files in the active modules.
to_language_atom(IsoCode::list() | binary()) -> {ok, atom()} | {error, not_a_language}
Translate a language-code to an atom.
trans(Text::From, Lang::Language) -> String
translate a string or trans record into another language
translations(Trans0::From, Context) -> #trans{} | binary()
Fetch all translations for the given string.
Generated by EDoc, Dec 10 2012, 20:44:32.