module OASISGettext:sig..end
i18n functions
This module is mock for ocaml-gettext library. All these functions are exported but their are bound to dummy functions by default (i.e. not ocaml-gettext). Use oasis-plugin-i18n to replace them by real translating functions (TODO as of 2016-06-04).
val ns_ : string -> stringDo nothing, but register it for translation
val s_ : string -> stringTranslate a string.
val f_ : ('a, 'b, 'c, 'd) Stdlib.format4 -> ('a, 'b, 'c, 'd) Stdlib.format4Translate a format string.
val fn_ : ('a, 'b, 'c, 'd) Stdlib.format4 ->
('a, 'b, 'c, 'd) Stdlib.format4 -> int -> ('a, 'b, 'c, 'd) Stdlib.format4fn_ 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) listGettext initialization.