Hi, Geert,
_("") is replaced by T_(""), so xgettext cannot recognize it by default,
however, xgettext support argument for additional keywords.
xgettext --keyword="T_" ...
I created a patch of Makefile for this. You can try it.
On Wed, Jul 7, 2010 at 10:11 PM, Geert Janssens
<[email protected]>wrote:
> Some time ago, gettext has be replaced with php_gettext for the GnuCash
> website (part of a patch by Tao Wang to support Simplified Chinese).
>
> This change however causes xgettext to fail to extract the translatable
> strings from the webpages. Any idea what the replacement for xgettext is
> when
> using php_gettext ?
>
> Geert
> _______________________________________________
> gnucash-devel mailing list
> [email protected]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
--
Regards
Tao Wang
Index: Makefile
===================================================================
--- Makefile (revision 19340)
+++ Makefile (working copy)
@@ -13,7 +13,7 @@
.potfiles:
po/gnucash-htdocs.pot: po/POTFILES
- xgettext -f po/POTFILES -L PHP -o po/gnucash-htdocs.pot
+ xgettext -f po/POTFILES -L PHP --keyword="T_" -o po/gnucash-htdocs.pot
msgmerge: po/gnucash-htdocs.pot
for f in ${languages} ; do \
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel