Re: about language
Jan Holler <[email protected]> Fri, 18 Jan 2008 09:24:02 +0100
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
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 You'll have to take care of your template file, using wml::std::page might not be a lot of help to generate php -- Holler iNetCom http://www.inetcom.ch/ tel: +41 31 3725450 fax: 51 landoltstr. 64, 3007 bern, schweiz postanschrift: postfach, 3000 bern 23 _____________________________________________________________________ Website META Language (WML) http://thewml.org User Support Mailing List [email protected] Automated List Manager [email protected]