Commit ff61d846 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

translating tags

parent 246c08ec
......@@ -101,6 +101,7 @@ class RocketchatController extends CommunecterController {
// accessing Element > creates
// channels : http://127.0.0.1/ph/co2/rocketchat/chat/name/openatlas/type/test/roomType/channel/test/true
// groups : http://127.0.0.1/ph/co2/rocketchat/chat/name/openatlas/type/test/roomType/group/test/true
//http://www.communecter.org/co2/rocketchat/chat/name/codev/type/organizations/roomType/group
public function actionChat($name,$type="",$id=null,$roomType=null) {
$group = null;
if(Yii::app()->session["userId"])
......
<?php
class CO2 {
public static function getCategories(){
return array(
"food"=> array(
"name" => "Food",
"icon" => "fa-cutlery",
"tags" => [ Yii::t("tags","agriculture"),Yii::t("tags","food"),Yii::t("tags","nutrition"),Yii::t("tags","AMAP") ]
),
"health"=> array(
"name" => "Health",
"icon" => "fa-heart-o",
"tags" => [ Yii::t("tags","health") ]
),
"waste"=> array(
"name" => "Waste",
"icon" => "fa-trash-o ",
"tags" => [ Yii::t("tags","waste") ]
),
"transport"=> array(
"name" => "Transport",
"icon" => "fa-bus",
"tags" => [ Yii::t("tags","urbanism"),Yii::t("tags","transport"),Yii::t("tags","construction") ]
),
"education"=> array(
"name" => "Education",
"icon" => "fa-book",
"tags" => [ Yii::t("tags","education"),Yii::t("tags","childhood") ]
),
"citizen"=> array(
"name" => "Citizenship",
"icon" => "fa-user-circle-o",
"tags" => [ Yii::t("tags","citizen"),Yii::t("tags","society") ]
),
"economy"=> array(
"name" => "Economy",
"icon" => "fa-money",
"tags" => [ Yii::t("tags","ess") ,Yii::t("tags","social solidarity economy") ]
),
"energy"=> array(
"name" => "Energy",
"icon" => "fa-sun-o",
"tags" => [ Yii::t("tags","energy"),Yii::t("tags","climat") ]
),
"culture"=> array(
"name" => "Culture",
"icon" => "fa-universal-access",
"tags" => [ Yii::t("tags","culture"),Yii::t("tags","animation") ]
),
"environnement"=> array(
"name" => "Environnement",
"icon" => "fa-tree",
"tags" => [ Yii::t("tags","environment"),Yii::t("tags","biodiversity"),Yii::t("tags","ecology") ]
),
"numeric"=> array(
"name" => "Numeric",
"icon" => "fa-laptop",
"tags" => [ Yii::t("tags","computer"),Yii::t("tags","ict"),Yii::t("tags","internet"),Yii::t("tags","web") ]
),
"sport" => array(
"name" => "Sport",
"icon" => "fa-futbol-o",
"tags" => [ Yii::t("tags","sport") ]
)
);
}
public static function getThemeParams($domainName=null){
$domainName = @$domainName ? $domainName : Yii::app()->params["CO2DomainName"];
......
......@@ -319,6 +319,20 @@
} ?>
</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 contentInformation no-padding">
<div class="col-md-4 col-sm-4 col-xs-4 hidden-xs labelAbout padding-10">
<span><i class="fa fa-hashtag"></i></span> <?php echo Yii::t("common","Gamification"); ?>
</div>
<div id="tgamificationAbout" class="col-md-8 col-sm-8 col-xs-12 valueAbout padding-10">
<span class="visible-xs pull-left margin-right-5">
<i class="fa fa-hashtag"></i> <?php echo Yii::t("common","Gamification"); ?> :
</span>
<?php
echo Gamification::calcPoints( Yii::app()->session["userId"] );
?>
</div>
</div>
</div>
</div>
......
......@@ -924,6 +924,38 @@ var tradCategory = {
"biodiversity":"<?php echo Yii::t("category","Biodiversity") ?>",
"tic":"<?php echo Yii::t("category","ICT | Numeric | Internet") ?>",
};
var tradTags = {
"agriculture" : "<?php echo Yii::t("tags","agriculture") ?>",
"food" : "<?php echo Yii::t("tags","food") ?>",
"nutrition" : "<?php echo Yii::t("tags","nutrition") ?>",
"AMAP" : "<?php echo Yii::t("tags","AMAP") ?>",
"health" : "<?php echo Yii::t("tags","health") ?>",
"waste" : "<?php echo Yii::t("tags","waste") ?>",
"urbanism" : "<?php echo Yii::t("tags","urbanism") ?>",
"transport" : "<?php echo Yii::t("tags","transport") ?>",
"construction" : "<?php echo Yii::t("tags","construction") ?>",
"education" : "<?php echo Yii::t("tags","education") ?>",
"childhood" : "<?php echo Yii::t("tags","childhood") ?>",
"citizen" : "<?php echo Yii::t("tags","citizen") ?>",
"société" : "<?php echo Yii::t("tags","society") ?>",
"ess" : "<?php echo Yii::t("tags","ess") ?>",
"social solidarity economy" : "<?php echo Yii::t("tags","social solidarity economy") ?>",
"energy" : "<?php echo Yii::t("tags","energy") ?>",
"climat" : "<?php echo Yii::t("tags","climat") ?>",
"culture" : "<?php echo Yii::t("tags","culture") ?>",
"animation" : "<?php echo Yii::t("tags","animation") ?>",
"environment" : "<?php echo Yii::t("tags","environment") ?>",
"biodiversity" : "<?php echo Yii::t("tags","biodiversity") ?>",
"ecology" : "<?php echo Yii::t("tags","ecology") ?>",
"numeric" : "<?php echo Yii::t("tags","numeric") ?>",
"ict" : "<?php echo Yii::t("tags","ict") ?>",
"computer" : "<?php echo Yii::t("tags","computer") ?>",
"web" : "<?php echo Yii::t("tags","web") ?>",
"internet" : "<?php echo Yii::t("tags","ict"),Yii::t("tags","internet") ?>",
"sport" : "<?php echo Yii::t("tags","sport") ?>"
};
var tradCountry = {
"BE":"Belgique",
"FR":"France",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment