problem with xgettext and php with javascript file

From: Date: Fri, 16 Nov 2001 12:12:34 +0000
Subject: problem with xgettext and php with javascript file
Groups: php.general 
Request: Send a blank email to php-general+get-74854@lists.php.net to get a copy of this message
Hello all! I want to use gettext for multilanguage webs, so I'm pleasing you to help me. When I use this: xgettext --keyword=_ file.php on this file: --------------------------------------------------- <script language="JavaScript"> <!-- function zmen_cenu() { window.opener.document.celkem.cena_celkem.value = "<? echo _("nìjaký blábol"); ?> } // --> </script> --------------------------------------------------- I get this message: file.php: 4: warning: unterminated string literal but when I use the same on this file: --------------------------------------------------- <?$str = _("nìjaký blábol");?> <script language="JavaScript"> <!-- function zmen_cenu() { window.opener.document.celkem.cena_celkem.value = "<?= $str?>"; } // --> </script> --------------------------------------------------- gettext makes this good. Do you know where is a problem? My gettext version is 0.10.35 Thanks, Pavel Novák

« previous php.general (#74854) next »