I try to insert a third language in an existing page wich is already in french and english. I'm kind of beginner with php.
Here's the code:
<?php
$lang = (isset($_GET['lang']) && $_GET['lang'] == 'en') ? 'en' : 'fr' ;
$langParam = ($lang == 'en') ? '&lang=en' : '';
$typeTerms = array(
'fr' => array(
'WINES' => 'vins',
'BEERS' => 'Bières',
'MALTCOOLER' => 'boisson à base de malt',
'CIDER' => 'cidres',
'ALCOHOLFREE' => 'produits sans alcool<br/>et à faible teneur en alcool',
'OTHERS' => 'autres'
),
'en' => array(
'WINES' => 'Wines',
'BEERS' => 'Beers',
'MALTCOOLER' => 'Malt Based Cooler',
'CIDER' => 'Cider',
'ALCOHOLFREE' => 'Alcohol-free and low-alcoholic products',
'OTHERS' => 'Others'
)
);
?>
And I want to insert this array, and make it work!
'zh' => array(
'WINES' => '葡萄酒',
'BEERS' => '啤酒',
'MALTCOOLER' => '麦芽果酒',
'CIDER' => '苹果酒',
'ALCOHOLFREE' => '无酒精及低度酒精饮料',
'OTHERS' => '其它'
)
Thanks!