[PHPTAL] i18n - question

Anniyka Wandersmann anniyka at wandersmann.net
Mon Nov 13 11:57:42 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 13 Nov 2006, lbedubourg wrote:


> I assume you execute the template after this line and not in
> header.php...


Yes:

- --------------<snip>
try {
    echo $template->execute();
}
catch (Exception $e){
    echo $e;
}


exit;
- ------------</snip>

> 
> > lang/de/LC_MESSAGES/sadtec.po
> > - -----------------<snip>----------------------
> > >less sadtec.po
> > msgid "Welcome\n"
> 
> I am not sure gettext supports "\n" at the end of your msgid, "Welcome"
> may not be the same as "Welcome\n", just a guess ?

It explicitly wanted it.

at first I had:

msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "Welcome"
msgstr "Herzlich Willkommen"

It did not work

msgid "Welcome"
msgstr "Herzlich Willkommen"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"

I got the error that /n is missing

And than I took the last one and still nothing.

msgid "Welcome/n"
msgstr "Herzlich Willkommen/n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"



- -- 
\                      Anniyka Wandersmann :: Technische Leiterin
 \                             Parkstr. 20 :: Phone:  +49-911-25569449
  \                        90409 Nuremberg :: Mobile: +49-163-8766206
   \                               Germany :: Fax:    +49-911-8173374
    \    /\     http://www.wandersmann.net :: email: info at wandersmann.net
     \  /  \  ____________________________________________________________
      \/    \/ A N D E R S M A N N . N E T :: wir gehen fuer sie  ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFFWE+r0UZdMosWNssRAiTuAJ98bmQGJokzc8awKtSj9QfM0um8rwCcD50S
I7tBaO3qQe169jx4NQYCpq8=
=87at
-----END PGP SIGNATURE-----



More information about the PHPTAL mailing list