From: vincent@cubedesigners.com Date: Fri, 26 Aug 2016 15:40:44 +0000 (+0000) Subject: done #568 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cae3fe7b1d71a3973508ab576cc31e40c38e93c4;p=fluidbook-v3.git done #568 @1 --- diff --git a/framework/application/controllers/MaintenanceController.php b/framework/application/controllers/MaintenanceController.php index 2825582..7dba33b 100644 --- a/framework/application/controllers/MaintenanceController.php +++ b/framework/application/controllers/MaintenanceController.php @@ -7,4 +7,9 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController { } return $url; } + + public function importEn() { + $import = new CubeIT_Translate_Import_Excel('fr', 'en'); + $import->import(PUBLIC_PATH . '/translations_en.xlsx'); + } } diff --git a/framework/application/views/helpers/ContactFooter.php b/framework/application/views/helpers/ContactFooter.php index 44ec2ce..b657e27 100644 --- a/framework/application/views/helpers/ContactFooter.php +++ b/framework/application/views/helpers/ContactFooter.php @@ -18,7 +18,7 @@ class Fluidbook_View_Helper_ContactFooter extends CubeIT_View_Helper_Abstract { $res = $this->title($cf['title'], 'h2'); $res .= $this->markupDotclear($cf['content']); $buttons = $this->linkCMS($cf['button']); - $buttons .= $this->linkQuote('Demander un devis'); + $buttons .= $this->linkQuote(__('Demander un devis')); $res .= $this->htmlElement($buttons, 'div', array('class' => 'buttons')); $res = $this->htmlElement($res, 'div', array('class' => 'col-2')); diff --git a/framework/application/views/helpers/HeaderContactNav.php b/framework/application/views/helpers/HeaderContactNav.php index 059705b..7f964f1 100644 --- a/framework/application/views/helpers/HeaderContactNav.php +++ b/framework/application/views/helpers/HeaderContactNav.php @@ -8,7 +8,7 @@ class Fluidbook_View_Helper_HeaderContactNav extends CubeIT_View_Helper_Abstract $res = array(); $res[] = $this->linkInternal(null, 'internal:agences',array('class'=>'agencies')); - $res[] = $this->linkQuote('Demandez un devis'); + $res[] = $this->linkQuote(__('Demandez un devis')); return $this->htmlElement($this->listUnordered($res), 'nav', array('id' => 'contactnav', 'role' => 'navigation')); } diff --git a/translations_en.xlsx b/translations_en.xlsx new file mode 100644 index 0000000..cd2d77c Binary files /dev/null and b/translations_en.xlsx differ