[ADD] add multi-languages for webpages content + translations source & fr_fr for home page general content

This commit is contained in:
David Drapeau 2019-10-08 15:22:42 +02:00
parent 21ce4addca
commit e4d1f1918c
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<?php <?php
$oConf = new ClassConfig(); $oConf = new ClassConfig();
$oTrans = new ClassTranslation(); $oTrans = new ClassTranslation();
$lang_code = (isset($_SESSION['user']['lang_code']))?$_SESSION['user']['lang_code']:$_SESSION['config']['default_lang_code'];
//if(isset($_SESSION['user'])){ //if(isset($_SESSION['user'])){
// $url = $_SESSION['erp']['url']; // $url = $_SESSION['erp']['url'];

View File

@ -13,7 +13,7 @@ if(isset($_SESSION['user'])){
<div class="col s12"> <div class="col s12">
<div class="icon-block"> <div class="icon-block">
<h2 class="center brown-text"><i class="material-icons">face</i></h2> <h2 class="center brown-text"><i class="material-icons">face</i></h2>
<h5 class="center">Well Done, you have successfully been able to log in. Which means installation is finished.</h5> <?php echo $oTrans->getTranslation('webpage_home_content_welldoneMessageSuccesInstall', $lang_code); ?>
</div> </div>
</div> </div>
<!--ENDOF .col--> <!--ENDOF .col-->
@ -78,7 +78,7 @@ if(isset($_SESSION['user'])){
<div class="section" style="padding: 100px 0px 100px 0px; "> <div class="section" style="padding: 100px 0px 100px 0px; ">
<div class="row"> <div class="row">
<div class="col s12 center"> <div class="col s12 center">
<h1>Welcome to Wefra for Odoo 11.0</h1> <?php echo $oTrans->getTranslation('webpage_home_content_welcome', $lang_code); ?>
</div> </div>
</div> </div>
</div> </div>
@ -88,7 +88,9 @@ if(isset($_SESSION['user'])){
<div class="container"> <div class="container">
<div class="section"> <div class="section">
<div class="row"> <div class="row">
<div class="col s12 center"><h2>Included Libraries</h2></div> <div class="col s12 center">
<?php echo $oTrans->getTranslation('webpage_home_content_includedLibrariesTitle', $lang_code); ?>
</div>
<!--jQuery--> <!--jQuery-->
<div class="col s12 m4 center"> <div class="col s12 m4 center">
<div class="icon-block"> <div class="icon-block">