From: vincent@cubedesigners.com Date: Mon, 22 Aug 2016 12:40:50 +0000 (+0000) Subject: Prepare transation file | wip #568 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4d620f050d8c2c2f2785611ce80eb722eff79120;p=fluidbook-v3.git Prepare transation file | wip #568 @2 --- diff --git a/framework/application/forms/CMS/Contact.php b/framework/application/forms/CMS/Contact.php index 1855260..2d7171f 100644 --- a/framework/application/forms/CMS/Contact.php +++ b/framework/application/forms/CMS/Contact.php @@ -5,7 +5,7 @@ class Fluidbook_Form_CMS_Contact extends Fluidbook_Form_CMS_Base { public function init() { parent::init(); - $resellers_title = new Zend_Form_Element_Textarea('resellers_title'); + $resellers_title = new CubeIT_Form_Element_Textarea('resellers_title'); $resellers_title->setLabel('Titre pour bloc "Revendeurs internationaux"'); $resellers_title->setAttrib('rows', 3); $this->addElement($resellers_title); diff --git a/framework/application/forms/CMS/Exemples.php b/framework/application/forms/CMS/Exemples.php index 5d0574e..ef2690d 100644 --- a/framework/application/forms/CMS/Exemples.php +++ b/framework/application/forms/CMS/Exemples.php @@ -4,7 +4,7 @@ class Fluidbook_Form_CMS_Exemples extends Fluidbook_Form_CMS_Base { public function init() { parent::init(); - $titre = new Zend_Form_Element_Textarea('title'); + $titre = new CubeIT_Form_Element_Textarea('title'); $titre->setLabel('Titre'); $this->addElement($titre); diff --git a/framework/application/forms/CMS/Fonctionnalites.php b/framework/application/forms/CMS/Fonctionnalites.php index d806f1b..b5f44a3 100644 --- a/framework/application/forms/CMS/Fonctionnalites.php +++ b/framework/application/forms/CMS/Fonctionnalites.php @@ -9,7 +9,7 @@ class Fluidbook_Form_CMS_Fonctionnalites extends Fluidbook_Form_CMS_Base { $video->setLabel('Vidéo'); $this->addElement($video); - $features_title = new Zend_Form_Element_Textarea('features_title'); + $features_title = new CubeIT_Form_Element_Textarea('features_title'); $features_title->setLabel('Titre pour "Fonctionnalités incluses de série"'); $features_title->setAttrib('rows', 3); $this->addElement($features_title); @@ -18,7 +18,7 @@ class Fluidbook_Form_CMS_Fonctionnalites extends Fluidbook_Form_CMS_Base { $features->setLegend('Fonctionnalités incluses de série'); $this->addSubForm($features, 'features'); - $services_title = new Zend_Form_Element_Textarea('services_title'); + $services_title = new CubeIT_Form_Element_Textarea('services_title'); $services_title->setLabel('Titre pour "Services inclus de série"'); $services_title->setAttrib('rows', 3); $this->addElement($services_title); @@ -27,7 +27,7 @@ class Fluidbook_Form_CMS_Fonctionnalites extends Fluidbook_Form_CMS_Base { $services->setLegend('Services inclus de série'); $this->addSubForm($services, 'services'); - $extras_title = new Zend_Form_Element_Textarea('extras_title'); + $extras_title = new CubeIT_Form_Element_Textarea('extras_title'); $extras_title->setLabel('Titre pour "Enrichissements et services optionnels"'); $extras_title->setAttrib('rows', 3); $this->addElement($extras_title); diff --git a/framework/application/forms/CMS/Sub/Contact/Footer.php b/framework/application/forms/CMS/Sub/Contact/Footer.php index 2389a7e..71cadaa 100644 --- a/framework/application/forms/CMS/Sub/Contact/Footer.php +++ b/framework/application/forms/CMS/Sub/Contact/Footer.php @@ -5,7 +5,7 @@ class Fluidbook_Form_CMS_Sub_Contact_Footer extends CubeIT_Form_SubForm { parent::init(); - $intro_title = new Zend_Form_Element_Textarea('title'); + $intro_title = new CubeIT_Form_Element_Textarea('title'); $intro_title->setLabel('Titre'); $intro_title->setAttrib('rows', 3); $this->addElement($intro_title); diff --git a/framework/application/forms/CMS/Sub/Exemples/Category.php b/framework/application/forms/CMS/Sub/Exemples/Category.php index b7e401c..74fe0b5 100644 --- a/framework/application/forms/CMS/Sub/Exemples/Category.php +++ b/framework/application/forms/CMS/Sub/Exemples/Category.php @@ -8,11 +8,11 @@ class Fluidbook_Form_CMS_Sub_Exemples_Category extends CubeIT_Form_List_Model { $id = new CubeIT_Form_Element_Id(); $this->addElement($id); - $title = new Zend_Form_Element_Text('name'); + $title = new CubeIT_Form_Element_Text('name'); $title->setLabel('Nom'); $this->addElementLocalized($title, false); - $link = new Zend_Form_Element_Text('linklabel'); + $link = new CubeIT_Form_Element_Text('linklabel'); $link->setLabel('Label du lien « voir d\'autres ... »'); $this->addElementLocalized($link, false); diff --git a/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php b/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php index 4db3162..4bed9b2 100644 --- a/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php +++ b/framework/application/forms/CMS/Sub/Exemples/Fluidbook.php @@ -7,11 +7,12 @@ class Fluidbook_Form_CMS_Sub_Exemples_Fluidbook extends CubeIT_Form_List_Model { $id = new CubeIT_Form_Element_Id(); $this->addElement($id); - $title = new Zend_Form_Element_Text('title'); + $title = new CubeIT_Form_Element_Text('title'); + $title->setTranslate(false); $title->setLabel('Titre'); $this->addElementLocalized($title, false); - $text = new Zend_Form_Element_Textarea('text'); + $text = new CubeIT_Form_Element_Textarea('text'); $text->setLabel('Texte'); $this->addElementLocalized($text, false); diff --git a/framework/application/forms/CMS/Sub/Features/Feature.php b/framework/application/forms/CMS/Sub/Features/Feature.php index 0fa076c..d0a59a0 100644 --- a/framework/application/forms/CMS/Sub/Features/Feature.php +++ b/framework/application/forms/CMS/Sub/Features/Feature.php @@ -2,40 +2,40 @@ class Fluidbook_Form_CMS_Sub_Features_Feature extends CubeIT_Form_SubForm { - public function init() { - parent::init(); - - $title = new Zend_Form_Element_Text('title'); - $title->setLabel('Titre du bloc'); - $this->addElement($title); - - $content = new CubeIT_Form_Element_Markitup('content'); - $content->setLabel('Contenus'); - $this->addElement($content); - - $icon = new Zend_Form_Element_Text('icon'); - $icon->setLabel('Pictogramme reference (CSS class)'); - $this->addElement($icon); - - $bg_gradient = new Fluidbook_Form_CMS_Sub_Gradient(); - $bg_gradient->setLegend('Background Gradient'); - $this->addSubForm($bg_gradient, 'background_gradient'); - - $bg_image = new CubeIT_Form_Element_File_Image('background_image'); - $bg_image->setLabel('Background Image'); - $this->addElement($bg_image); - - $layout = new Zend_Form_Element_Select('layout'); - $layout->setLabel('Layout'); - $layout->setMultiOptions(array( - 'square-top' => 'Square block with image top', - 'square-bottom' => 'Square block with image bottom', - 'rectangle-right' => 'Large rectangle with image right', - 'rectangle-bottom' => 'Large rectangle with image bottom', - 'small-rectangle-tall' => 'Small rectangle (tall)', - 'small-rectangle-wide' => 'Small rectangle (wide)', - )); - $this->addElement($layout); - - } + public function init() { + parent::init(); + + $title = new CubeIT_Form_Element_Text('title'); + $title->setLabel('Titre du bloc'); + $this->addElement($title); + + $content = new CubeIT_Form_Element_Markitup('content'); + $content->setLabel('Contenus'); + $this->addElement($content); + + $icon = new Fluidbook_Form_Element_Picto('icon'); + $icon->setLabel('Pictogramme reference (CSS class)'); + $this->addElement($icon); + + $bg_gradient = new Fluidbook_Form_CMS_Sub_Gradient(); + $bg_gradient->setLegend('Background Gradient'); + $this->addSubForm($bg_gradient, 'background_gradient'); + + $bg_image = new CubeIT_Form_Element_File_Image('background_image'); + $bg_image->setLabel('Background Image'); + $this->addElement($bg_image); + + $layout = new Zend_Form_Element_Select('layout'); + $layout->setLabel('Layout'); + $layout->setMultiOptions(array( + 'square-top' => 'Square block with image top', + 'square-bottom' => 'Square block with image bottom', + 'rectangle-right' => 'Large rectangle with image right', + 'rectangle-bottom' => 'Large rectangle with image bottom', + 'small-rectangle-tall' => 'Small rectangle (tall)', + 'small-rectangle-wide' => 'Small rectangle (wide)', + )); + $this->addElement($layout); + + } } \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Home/Block.php b/framework/application/forms/CMS/Sub/Home/Block.php index bfda0de..eac06f5 100644 --- a/framework/application/forms/CMS/Sub/Home/Block.php +++ b/framework/application/forms/CMS/Sub/Home/Block.php @@ -4,7 +4,7 @@ class Fluidbook_Form_CMS_Sub_Home_Block extends CubeIT_Form_SubForm { public function init() { parent::init(); - $title = new Zend_Form_Element_Textarea('title'); + $title = new CubeIT_Form_Element_Textarea('title'); $title->setAttrib('rows', 2); $title->setLabel('Titre'); $title->setOrder(10); diff --git a/framework/application/forms/CMS/Sub/Home/Services/Example.php b/framework/application/forms/CMS/Sub/Home/Services/Example.php index ecb5b58..386043d 100644 --- a/framework/application/forms/CMS/Sub/Home/Services/Example.php +++ b/framework/application/forms/CMS/Sub/Home/Services/Example.php @@ -5,7 +5,7 @@ class Fluidbook_Form_CMS_Sub_Home_Services_Example extends CubeIT_Form_SubForm { public function init() { parent::init(); - $title = new Zend_Form_Element_Text('title'); + $title = new CubeIT_Form_Element_Text('title'); $title->setLabel('Titre du exemple'); $this->addElement($title); diff --git a/framework/application/forms/CMS/Sub/Intro.php b/framework/application/forms/CMS/Sub/Intro.php index 18f68be..b550541 100644 --- a/framework/application/forms/CMS/Sub/Intro.php +++ b/framework/application/forms/CMS/Sub/Intro.php @@ -10,7 +10,7 @@ class Fluidbook_Form_CMS_Sub_Intro extends CubeIT_Form_SubForm { public function init() { parent::init(); - $intro_title = new Zend_Form_Element_Textarea('title'); + $intro_title = new CubeIT_Form_Element_Textarea('title'); $intro_title->setLabel('Titre'); $intro_title->setAttrib('rows', 3); $this->addElement($intro_title); diff --git a/framework/application/forms/CMS/Sub/Resellers/Reseller.php b/framework/application/forms/CMS/Sub/Resellers/Reseller.php index 66ef0cf..0f23288 100644 --- a/framework/application/forms/CMS/Sub/Resellers/Reseller.php +++ b/framework/application/forms/CMS/Sub/Resellers/Reseller.php @@ -2,10 +2,14 @@ class Fluidbook_Form_CMS_Sub_Resellers_Reseller extends CubeIT_Form_SubForm { + public function getTranslate(){ + return false; + } + public function init() { parent::init(); - - $company = new Zend_Form_Element_Text('company'); + + $company = new CubeIT_Form_Element_Text('company'); $company->setLabel('Nom de la société'); $this->addElement($company); diff --git a/framework/application/forms/CMS/Sub/Resellers/Resellers.php b/framework/application/forms/CMS/Sub/Resellers/Resellers.php index 17826a1..b91b704 100644 --- a/framework/application/forms/CMS/Sub/Resellers/Resellers.php +++ b/framework/application/forms/CMS/Sub/Resellers/Resellers.php @@ -11,4 +11,9 @@ class Fluidbook_Form_CMS_Sub_Resellers_Resellers extends CubeIT_Form_Multi_SubFo $this->setNewLegend('Nouveau revendeur'); } + + public function getTranslate(){ + return false; + } + } \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Social/Network.php b/framework/application/forms/CMS/Sub/Social/Network.php index 3c57872..8c9d316 100644 --- a/framework/application/forms/CMS/Sub/Social/Network.php +++ b/framework/application/forms/CMS/Sub/Social/Network.php @@ -5,7 +5,8 @@ class Fluidbook_Form_CMS_Sub_Social_Network extends CubeIT_Form_SubForm { public function init() { parent::init(); - $title = new Zend_Form_Element_Text('title'); + $title = new CubeIT_Form_Element_Text('title'); + $title->setTranslate(false); $title->setLabel('Titre du réseau social'); $this->addElement($title); @@ -17,7 +18,7 @@ class Fluidbook_Form_CMS_Sub_Social_Network extends CubeIT_Form_SubForm { $couleur->setLabel('Couleur'); $this->addElement($couleur); - $icon = new Zend_Form_Element_Text('icon'); + $icon = new Fluidbook_Form_Element_Picto('icon'); $icon->setLabel('Pictogramme (fontastic)'); $this->addElement($icon); } diff --git a/framework/application/forms/CMS/Texte.php b/framework/application/forms/CMS/Texte.php index 496e410..23c6c3d 100644 --- a/framework/application/forms/CMS/Texte.php +++ b/framework/application/forms/CMS/Texte.php @@ -3,7 +3,7 @@ class Fluidbook_Form_CMS_Texte extends Fluidbook_Form_CMS { public function init() { parent::init(); - $title = new Zend_Form_Element_Textarea('title'); + $title = new CubeIT_Form_Element_Textarea('title'); $title->setLabel('Titre'); $title->setAttrib('rows', 3); $this->addElement($title); diff --git a/framework/application/forms/Contactdetails.php b/framework/application/forms/Contactdetails.php index d489b49..fbd9cb7 100644 --- a/framework/application/forms/Contactdetails.php +++ b/framework/application/forms/Contactdetails.php @@ -9,8 +9,9 @@ class Fluidbook_Form_Contactdetails extends CubeIT_Form_Adresse { public function init() { parent::init(); - $company = new Zend_Form_Element_Text('company'); + $company = new CubeIT_Form_Element_Text('company'); $company->setLabel('Nom'); + $company->setTranslate(false); $company->setOrder(5); $this->addElement($company); diff --git a/framework/application/forms/Element/Picto.php b/framework/application/forms/Element/Picto.php new file mode 100644 index 0000000..59e51dc --- /dev/null +++ b/framework/application/forms/Element/Picto.php @@ -0,0 +1,8 @@ +setLabel(__('Prénom')); $this->addElement($first_name); - $last_name = new Zend_Form_Element_Text('nom'); + $last_name = new CubeIT_Form_Element_Text('nom'); $last_name->setLabel(__('Nom')); $last_name->setRequired(true); $last_name->addErrorMessage(__('Veuillez indiquer votre nom')); $this->addElement($last_name); - $company = new Zend_Form_Element_Text('rs'); + $company = new CubeIT_Form_Element_Text('rs'); $company->setLabel(__('Nom de la société')); $company->setRequired(true); $company->addErrorMessage(__('Veuillez indiquer le nom de votre société')); @@ -41,11 +41,11 @@ class Fluidbook_Form_RequestQuote extends CubeIT_Form { $email->addErrorMessage(__('Veuillez indiquer une adresse e-mail valide')); $this->addElement($email); - $phone = new Zend_Form_Element_Text('telephone'); + $phone = new CubeIT_Form_Element_Text('telephone'); $phone->setLabel(__('Téléphone')); $this->addElement($phone); - $comments = new Zend_Form_Element_Textarea('detail'); + $comments = new CubeIT_Form_Element_Textarea('detail'); $comments->setLabel(__('Commentaires sur votre projet')); $this->addElement($comments); diff --git a/framework/application/forms/Settings.php b/framework/application/forms/Settings.php index ef18efc..a1ccdd6 100644 --- a/framework/application/forms/Settings.php +++ b/framework/application/forms/Settings.php @@ -11,7 +11,7 @@ class Fluidbook_Form_Settings extends CubeIT_Form_Settings { $logo->setLabel('Logo'); $this->addElement($logo); - $longTitle = new Zend_Form_Element_Text('longTitle'); + $longTitle = new CubeIT_Form_Element_Text('longTitle'); $longTitle->setLabel('Titre long par défaut'); $this->addElementLocalized($longTitle); diff --git a/framework/application/forms/User.php b/framework/application/forms/User.php index 77b8176..c41dd87 100644 --- a/framework/application/forms/User.php +++ b/framework/application/forms/User.php @@ -4,6 +4,4 @@ class Fluidbook_Form_User extends CubeIT_Form_User { public function init(){ parent::init(); } -} - -?> +} \ No newline at end of file diff --git a/less/010-admin.less b/less/010-admin.less index 1f4f8d2..3099aa9 100644 --- a/less/010-admin.less +++ b/less/010-admin.less @@ -23,4 +23,8 @@ #adminlogin { padding-top: 150px; +} + +#contentWrapper .cubeit-content{ + padding-top:120px; } \ No newline at end of file