functions inside gettext calls



Hi,

Is there some documentation that explains why functions can't be used
inside gettext() and ngettext() calls?

For example N_(some_function()) or
http://bugzilla.gnome.org/show_bug.cgi?id=345027

I know that function string can't be extracted with xgettext, but can't
find anything related about it in
http://developer.gnome.org/doc/guides/programming-guidelines/l10n.html

Gettext manual has chapter about special strings
(http://www.gnu.org/software/gettext/manual/html_node/gettext_19.html#SEC19),
 but I think chapter text is too complex to understand for people that are
only starting to learn gettext.

P.S. In programming guidelines second code snippet should use ngettext
instead of (num_monkeys > 1) test.

-- 
Tomas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]