Re: about language

Bapt <[email protected]> Fri, 18 Jan 2008 11:49:12 +0100
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
On Jan 18, 2008 9:26 AM, Jan Holler <[email protected]> wrote:
> On Thu, 17 Jan 2008 23:13:50 +0100 Bapt <[email protected]> wrote:
>
> > I have a multilingual website and I want that it works like this :
>
> >     index.php contains the recognition of the language used by the
> > browser and include the according page.
>
> >
> > I want to have only one file "index.wml" and the creation of the .php
> > file and .html.LANG in only one command : wmk -f index.wml
> >
> > for the different languages, I use :
> >     !wml -o(ALL-LANG_*)+LANG_EN:../current_version/%BASE.html.en
> > -o(ALL-LANG_*)+LANG_FR:../current_version/%BASE.html.fr
> >
> > which is fine
> >
> > But, for the creation of the index.php file (completely different of
> > the other files), I have really no idea. Do you think it is possible ?
>
> It is possible, just define a third "language" e.g.
>
> -o(ALLG-LANG_*)+LANG_PHP:../current_version/%BASE.php
>
> In your templage file you split e.g. with: <php></php>
> ( or [PHP: ... :PHP] )
>
> see -> man wml_p9_slice

Hi !

I finally use that :

wml -o(ALL-LANG_*)+LANG_EN:../current_version/%BASE.en.html
-o(ALL-LANG_*)+LANG_FR:../current_version/%BASE.fr.html
-oLANG_PHP:../current_version/index.php

to create my 3 files and the third slice is only the PHP "language"
(so I don't need to care of my template).

Thank you !

>
> You'll have to take care of your template file, using wml::std::page
> might not be of any much help to generate php.
>
>
> _____________________________________________________________________
> Website META Language (WML)                         http://thewml.org
> User Support Mailing List                        [email protected]
> Automated List Manager                            [email protected]
>
> --
> Ce message ne contient pas de virus connu.
> neoDomaine Postmaster - http://www.neodomaine.com/
>
>



-- 
Baptiste Pernet Mugnier
  tel: +33 699 499 349
  mel: [email protected]
  web: http://www.sp4ce.net
_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]