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. |
language_list/1 | Return the list of languages selected for this site. |
lc2/1 | Translate a language to an atom, fail when unknown 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 | |
parse_translations/1 | Prepare a translations table based on all .po files in the active modules. |
trans/2 | translate a string or trans record into another language. |
translations/2 | Fetch all translations for the given string. |
default_language(Context) -> any()
Return the configured default language for this server
is_language(LanguageString) -> bool()
check if the two letter code is a valid language
language_list(Context) -> any()
Return the list of languages selected for this site
lc2(LanguageString) -> Language
Translate a language to an atom, fail when unknown 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()
parse_translations(Context) -> any()
Prepare a translations table based on all .po files in the active modules.
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, Feb 25 2011, 21:14:42.