Module gettext

Erlang Gettext tools for multi-lingual capabilities.

Copyright © 2003 Torbjörn Törnkvist

Authors: Torbjörn Törnkvist (tobbe@tornkvist.org).

Description

Erlang Gettext tools for multi-lingual capabilities

Function Index

all_lang/0
all_lcs/0Returns the list of languages used on the server.
all_lcs/1
callback_mod/0
change_gettext_dir/1Changes the data directory used by the server and re-reads all server data from the new location.
change_gettext_dir/2
charset/0
copyright/0
create_date/0
default_lang/0Returns the default language used by the server.
default_lang/1
fixed_last_translator/0
fixed_revision_date/0
get_app_key/2
get_language_name/1
gettext_dir/0Returns the current data directory used by the server.
gettext_dir/1
key2str/1Get the translation string for a key using the current language.
key2str/2Get the translation string for a key and a specific language and/or using a named gettext server.
key2str/3Get the translation string for a key and a specific language using the named gettext server.
lang2cset/1Returns the character set used for a language.
lang2cset/2
lc2lang/1
mk_polish_style_header/1
org_name/0
parse_po/1Read and parse a PO-file.
parse_po_bin/1Parse a PO-file given as a binary.
recreate_db/0Recreates the database file from scratch.
recreate_db/1
reload_custom_lang/1Reloads the PO-file for a language.
reload_custom_lang/2
store_pofile/2Stores a binary as the new PO-file for a language.
store_pofile/3
team/0
unload_custom_lang/1Clears the data for a language from the server.
unload_custom_lang/2
write_pretty/2Pretty print PO strings.

Function Details

all_lang/0

all_lang() -> any()

all_lcs/0

all_lcs() -> any()

Returns the list of languages used on the server

all_lcs/1

all_lcs(Server) -> any()

callback_mod/0

callback_mod() -> any()

change_gettext_dir/1

change_gettext_dir(Dir) -> any()

Changes the data directory used by the server and re-reads all server data from the new location.

change_gettext_dir/2

change_gettext_dir(Server, Dir) -> any()

charset/0

charset() -> any()

copyright/0

copyright() -> any()

create_date/0

create_date() -> any()

default_lang/0

default_lang() -> any()

Returns the default language used by the server.

default_lang/1

default_lang(Server) -> any()

fixed_last_translator/0

fixed_last_translator() -> any()

fixed_revision_date/0

fixed_revision_date() -> any()

get_app_key/2

get_app_key(Key, Default) -> any()

get_language_name/1

get_language_name(LC) -> any()

gettext_dir/0

gettext_dir() -> any()

Returns the current data directory used by the server.

gettext_dir/1

gettext_dir(Server) -> any()

key2str/1

key2str(Key) -> any()

Get the translation string for a key using the current language.

This is usually not called directly, but via the ?TXT(Key) macro.

key2str/2

key2str(Key, Lang) -> any()

Get the translation string for a key and a specific language and/or using a named gettext server. If no server is specified, the default server is used. If no language is specified, the current language is used.

This is usually not called directly, but via the ?TXT2(Key,Lang) macro.

key2str/3

key2str(Server, Key, Lang) -> any()

Get the translation string for a key and a specific language using the named gettext server.

lang2cset/1

lang2cset(Lang) -> any()

Returns the character set used for a language.

lang2cset/2

lang2cset(Server, Lang) -> any()

lc2lang/1

lc2lang(LC) -> any()

mk_polish_style_header/1

mk_polish_style_header(LC) -> any()

org_name/0

org_name() -> any()

parse_po/1

parse_po(Fname) -> any()

Read and parse a PO-file.

parse_po_bin/1

parse_po_bin(Bin) -> any()

Parse a PO-file given as a binary.

recreate_db/0

recreate_db() -> any()

Recreates the database file from scratch.

recreate_db/1

recreate_db(Server) -> any()

reload_custom_lang/1

reload_custom_lang(Lang) -> any()

Reloads the PO-file for a language.

reload_custom_lang/2

reload_custom_lang(Server, Lang) -> any()

store_pofile/2

store_pofile(Lang, Binary) -> any()

Stores a binary as the new PO-file for a language.

store_pofile/3

store_pofile(Server, Lang, Binary) -> any()

team/0

team() -> any()

unload_custom_lang/1

unload_custom_lang(Lang) -> any()

Clears the data for a language from the server.

unload_custom_lang/2

unload_custom_lang(Server, Lang) -> any()

write_pretty/2

write_pretty(Str, Fd) -> any()

Pretty print PO strings.


Generated by EDoc