Date: 11/16/01
- Next message: Christoph Starkmann: "RE: [PHP] stupid little problem"
- Previous message: Michiel van Heusden: "[PHP] stupid little problem"
- In reply to: Pavel Novák: "[PHP] problem with xgettext and php with javascript file"
- Next in thread: Pavel Novák: "[PHP] Re: problem with xgettext and php with javascript file"
- Reply: Pavel Novák: "[PHP] Re: problem with xgettext and php with javascript file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> wrote in message
news:20011116121252.80947.qmail <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: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Christoph Starkmann: "RE: [PHP] stupid little problem"
- Previous message: Michiel van Heusden: "[PHP] stupid little problem"
- In reply to: Pavel Novák: "[PHP] problem with xgettext and php with javascript file"
- Next in thread: Pavel Novák: "[PHP] Re: problem with xgettext and php with javascript file"
- Reply: Pavel Novák: "[PHP] Re: problem with xgettext and php with javascript file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

