LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   xgettext error php language uknown (https://www.linuxquestions.org/questions/linux-software-2/xgettext-error-php-language-uknown-264460/)

psychomachine 12-09-2004 09:28 AM

xgettext error php language uknown
 
Hi.

I am using gettext to translate a PHP site. I am using the following script:

Code:

#!/bin/sh
xgettext --keyword=A_ --keyword=T_ --language=PHP -o transstuff.pot ../*.php
if [ -f $1.po ]; then
msgmerge -o .tmp$1.po $1.po transstuff.pot
mv .tmp$1.po $1.po
msgfmt --statistics $1.po
fi

but the first line of code generates a weird error message:

Code:

xgettext: language `PHP' unknown
Now, my PHP 5.0.1 is compiled with gettext and I am using gettext 0.11.4. How can it not recognize PHP as a valid language?

Please let me know if you have any ideas what I could do about this.

All best,
Dr. Psych


All times are GMT -5. The time now is 03:43 PM.