Module gettexter_server

Locale information storage.

Copyright © (C) 2014, Sergey Prokhorov

Behaviours: gen_server.

Authors: Sergey Prokhorov (me@seriyps.ru).

Description

Locale information storage. Operates only binary data (except domain).

Function Index

bindtextdomain/2
code_change/3
dnpgettext/6
dpgettext/4
ensure_loaded/3
handle_call/3
handle_cast/2
handle_info/2
header/3
init/1
reload/2
start_link/0
terminate/2
which_domains/0
which_domains/1
which_keys/2
which_loaded/0
which_locales/1

Function Details

bindtextdomain/2

bindtextdomain(Domain::atom(), LocaleDir::file:filename()) -> ok

code_change/3

code_change(OldVsn, State, Extra) -> any()

dnpgettext/6

dnpgettext(Domain::atom(), Context::binary() | undefined, Singular::binary(), Plural::binary(), N::integer(), Locale::binary()) -> binary() | undefined

dpgettext/4

dpgettext(Domain::atom(), Context::binary() | undefined, Text::binary(), Locale::binary()) -> binary() | undefined

ensure_loaded/3

ensure_loaded(TextDomain::atom(), Category::atom(), Locale::binary()) -> {ok, already | file:filename()} | {error, any()}

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

header/3

header(Domain::atom(), Locale::binary(), Name::binary()) -> undefined | binary()

init/1

init(X1) -> any()

reload/2

reload(TextDomain::atom(), Locales::[Locale]) -> [{Locale, ok, binary()} | {Locale, error, any()}]

start_link/0

start_link() -> any()

terminate/2

terminate(Reason, State) -> any()

which_domains/0

which_domains() -> [atom()]

which_domains/1

which_domains(Locale::binary()) -> [atom()]

which_keys/2

which_keys(Domain::atom(), Locale::binary()) -> [{Singular, Plural, Context}]

which_loaded/0

which_loaded() -> [{Domain, Locale, MoPath}]

which_locales/1

which_locales(Domain::atom()) -> [binary()]


Generated by EDoc