/usr/lib/ocaml/gettext/gettextCompat.mli is in libgettext-ocaml-dev 0.3.5-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | (**************************************************************************)
(* ocaml-gettext: a library to translate messages *)
(* *)
(* Copyright (C) 2003-2008 Sylvain Le Gall <sylvain@le-gall.net> *)
(* *)
(* This library is free software; you can redistribute it and/or *)
(* modify it under the terms of the GNU Lesser General Public *)
(* License as published by the Free Software Foundation; either *)
(* version 2.1 of the License, or (at your option) any later version; *)
(* with the OCaml static compilation exception. *)
(* *)
(* This library is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *)
(* Lesser General Public License for more details. *)
(* *)
(* You should have received a copy of the GNU Lesser General Public *)
(* License along with this library; if not, write to the Free Software *)
(* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *)
(* USA *)
(**************************************************************************)
(** Gettext compatibility with the native gettext API
@author Sylvain Le Gall
*)
open GettextTypes
open GettextCategory
(** [textdomain domain t] Set the current text domain.
*)
val textdomain: textdomain -> t -> t
(** [get_textdomain t] Returns the current text domain.
*)
val get_textdomain: t -> textdomain
(** [bindtextdomain textdomain dir] Set the default base directory for the
specified domain.
*)
val bindtextdomain: textdomain -> dir -> t -> t
(** [bind_textdomain_codeset textdomain codeset] Set the codeset to use for the
specified domain. [codeset] must be a valid codeset for the underlying
character encoder/decoder (iconv, camomile, extlib...)
*)
val bind_textdomain_codeset: textdomain -> codeset -> t -> t
(** [gettext t' str] Translate the string [str].
*)
val gettext: t' -> string -> string
(** [fgettext t' str] [gettext] returning format.
*)
val fgettext: t' ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6
(** [dgettext t' textdomain str] Translate the string [str] for the specified
domain.
*)
val dgettext: t' -> textdomain -> string -> string
(** [fdgettext t' textdomain str] [dgettext] returning format.
*)
val fdgettext: t' ->
textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6
(** [dcgettext t' textdomain str category] Translate the string [str] for the
specified domain and category.
*)
val dcgettext: t' -> textdomain -> string -> category -> string
(** [fdcgettext t' textdomain str category] [dcgettext] returning format.
*)
val fdcgettext: t' ->
textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
category ->
('a, 'b, 'c, 'd, 'e, 'f) format6
(** [ngettext t' str str_plural n] Translate the string [str] using a plural form.
str_plural is the default english plural. n is the relevant number for plural
(i.e. the number of objects deals with the string).
*)
val ngettext: t' -> string -> string -> int -> string
(** [fngettext t' str str_plural n] [ngettext] returning format.
*)
val fngettext: t' ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
int ->
('a, 'b, 'c, 'd, 'e, 'f) format6
(** [dngettext t' textdomain str str_plural n] Translate the string [str] using
a plural form for the specified domain.
*)
val dngettext: t' -> textdomain -> string -> string -> int -> string
(** [fdngettext t' textdomain str str_plural n] [dngettext] returning format.
*)
val fdngettext: t' ->
textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
int ->
('a, 'b, 'c, 'd, 'e, 'f) format6
(** [dcngettext t' textdomain str str_plural n category] Translate the string
[str] using a plural form for the specified domain and category.
*)
val dcngettext: t' -> textdomain -> string -> string -> int -> category -> string
(** [fdcngettext t' textdomain str str_plural n category] [dcngettext] returning
format.
*)
val fdcngettext: t' ->
textdomain ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
int ->
category ->
('a, 'b, 'c, 'd, 'e, 'f) format6
|