There should be a default "dumb" interface that allow to define s, ns, f_ et al. It should be linked to nothing and implements default behavior.
The point is to avoid writing stubs in every project and to limit the dependencies to only gettext (no C stubs, no Camomile, just ocaml-gettext). It would be more simple than the conditional compilation with IFDEF HAS_GETTEXT ....
This feature request has been migrated from artifact #831 on forge.ocamlcore.org. It was assigned to user102.
user102 posted on 2010-12-16 11:12:21:
There should be a default "dumb" interface that allow to define s, ns, f_ et al. It should be linked to nothing and implements default behavior.
The point is to avoid writing stubs in every project and to limit the dependencies to only gettext (no C stubs, no Camomile, just ocaml-gettext). It would be more simple than the conditional compilation with IFDEF HAS_GETTEXT ....
E.g. let f_ e =
e^^""
let fn_ f1 f2 n =
f1^^""
let s_ s =
s
let sn_ s p n =
if n = 1 then
s
else
p
let ns_ s =
s