Re: problem with xgettext and php with javascript file
| From: | _lallous | Date: | Fri, 16 Nov 2001 12:30:22 +0000 |
| Subject: | Re: problem with xgettext and php with javascript file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74857@lists.php.net to get a copy of this message | ||
this code seem incomplete:
> window.opener.document.celkem.cena_celkem.value = "<? echo _("nìjaký
> blábol"); ?>
> }
here's a fix:
function zmen_cenu() {
window.opener.document.celkem.cena_celkem.value = "<? echo _("nìjaký
blábol"); ?>";
}
"Pavel NováK" <costrova@prdel.cz> wrote in message
news:20011116121252.80947.qmail@pb1.pair.com...
> 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
>
>
>
>