stog

Static web site compiler, able to handle blog posts as well as regular pages or any XML document in general
IN THIS PACKAGE
Module Stog . Intl
type lang_abbrev = string
type lang_data = {
days : string array;
months : string array;
string_of_date : Types.date -> string;
string_of_datetime : Types.date -> string;
}

Such a structure must be defined for each language to support.

val french : lang_data
val english : lang_data
val register_lang : lang_abbrev -> lang_data -> unit
val set_default_lang : lang_abbrev -> unit

Use the given language abbreviation (such as "fr") to set the default language. The language must have been registered previously (except for predefined "en" and "fr" languages) or else the Failure exception if raised.

val data_of_lang : lang_abbrev option -> lang_data
val get_month : lang_abbrev option -> int -> string
val string_of_date : lang_abbrev option -> Types.date -> string
val string_of_date_opt : lang_abbrev option -> Types.date option -> string
val string_of_datetime : lang_abbrev option -> Types.date -> string
val string_of_datetime_opt : lang_abbrev option -> Types.date option -> string