about language
Bapt <[email protected]> Thu, 17 Jan 2008 23:13:50 +0100
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody !
I have one question concerning The WML. I think this language is fun
and I want to use it as more as I can to make my website but I am a
newbie.
I have a multilingual website and I want that it works like this :
index.html.LANG contains the page in the LANG (for example LANG =
fr or LANG = en)
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 ?
(see the short wml code about it below)
Best Regards,
--
Baptiste Pernet Mugnier
tel: +33 699 499 349
mel: [email protected]
web: http://www.sp4ce.net
attachements : the wml code about the index.php file :
<?php
include("lib_php/sel_lang.php");
if(=="FR"){
include("{#PAGE_NAME#}.html.fr");
} else if (=="EN"){
include("{#PAGE_NAME#}.html.en");
}
?>
_____________________________________________________________________
Website META Language (WML) http://thewml.org
User Support Mailing List [email protected]
Automated List Manager [email protected]