Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
110 lines (42 sloc) 2.53 KB

Module i18n_locale

This module containg functions to manage the locale of the process.

Copyright (c) 2010-2011 Michael Uvarov

Authors: Michael Uvarov (arcusfelis@gmail.com).

Data Types

i18n_locale_id()

i18n_locale_id() = atom()

Function Index

base_name/1ru_RU@col=COL -> ru_RU
get_locale/0Extract the locale of this process.
parent_locale/1ru_RU -> ru
set_default_locale/1Extract the locale of all processes, in which there is no call of set_locale/1.
set_locale/1Set the locale of this process.

Function Details

base_name/1

base_name(LocaleId::i18n_locale_id()) -> i18n_locale_id()



ru_RU@col=COL -> ru_RU

get_locale/0

get_locale() -> i18n_locale_id()



Extract the locale of this process

parent_locale/1

parent_locale(Locale::i18n_locale_id()) -> i18n_locale_id()



ru_RU -> ru

set_default_locale/1

set_default_locale(Value::i18n_locale_id()) -> i18n_locale_id()



Extract the locale of all processes, in which there is no call of set_locale/1.

set_locale/1

set_locale(Value::i18n_locale_id()) -> i18n_locale_id()



Set the locale of this process. It will affect on all case-sensitive operations when the locale parameter will be skipped.

Something went wrong with that request. Please try again.