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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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]