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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to