From: Jeff D. <da...@da...> - 2001-11-28 17:47:50
|
On Wed, 28 Nov 2001 17:19:37 +0000 "Lawrence Akka" <la...@20...> wrote: > What about {_WhateverText}. The one other thing to consider is that it would be nice to use a syntax which can be grokked by xgettext (which is designed for picking gettext() calls out of C code). Some options which work: gettext("string") $gettext("string") _("Text string") $_("string") (The parentheses around a "-quoted string are the key.) These are all somewhat ugly, but acceptable, I think. Of the above choices, I like $_("this one"). (The other option would be to write our own replacement or pre-filter for xgettext. :-/ ) > >The _() abbreviation is standard usage --- the gettext tools support it by > >default. Correction: GNU xgettext doesn't support _() by default, you must include the '-k_' command line argument. The _() is fairly standard usage however, and stock PHP does define '_' as an alias for 'gettext'. |