Up

module OASISGettext

: sig

i18n functions

This module is really bind to ocaml-gettext library if gettext has been selected when compiling the project. All these functions are exported but their are bound to dummy functions in this case (i.e. not ocaml-gettext).

Author Sylvain Le Gall
See also http://forge.ocamlcore.org/projects/ocaml-gettext OCaml Gettext project
#
val ns_ : string -> string

Do nothing, but register it for translation

#
val s_ : string -> string

Translate a string.

#
val f_ : ('a, 'b, 'c, 'd) Pervasives.format4 -> ('a, 'b, 'c, 'd) Pervasives.format4

Translate a format string.

#
val fn_ : ('a, 'b, 'c, 'd) Pervasives.format4 -> ('a, 'b, 'c, 'd) Pervasives.format4 -> int -> ('a, 'b, 'c, 'd) Pervasives.format4

fn_ fmt_singular fmt_plural n Translate a plural string using either fmt_singular or fmt_plural, depending of the plural status of number n in the target language.

#
val init : (string * string option * string option) list

Gettext initialization.

end