Up

module Locale

: sig

Support for internationalisation.

#
type lang_spec = string * string option
#
module LangMap : Map.S with type key = lang_spec
#
val parse_lang : string -> lang_spec option
#
val format_lang : lang_spec -> string
#
val get_langs : ?default:lang_spec -> Common.system -> lang_spec list

Get the user's preferred language(s), most preferred first. The default is always included. See: http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#The-LANGUAGE-variable

#
val score_langs : lang_spec list -> int LangMap.t
#
val score_lang : int LangMap.t -> string option -> int
end