]> _ Git - ccv-wordpress.git/commitdiff
Updates for multilingual versions + compatibility with Loco Translate. WIP #4395 @10
authorStephen Cameron <stephen@cubedesigners.com>
Thu, 6 May 2021 14:09:35 +0000 (16:09 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Thu, 6 May 2021 14:09:35 +0000 (16:09 +0200)
26 files changed:
wp-content/mu-plugins/cube-loader.php
wp-content/mu-plugins/cube/languages/cube.pot [new file with mode: 0644]
wp-content/mu-plugins/cube/src/Common/Setup.php
wp-content/mu-plugins/cube/src/Elementor/Widgets/BackgroundImage.php
wp-content/mu-plugins/cube/src/Forms/Builder/Fields/Binary.php
wp-content/mu-plugins/cube/src/Forms/Builder/Fields/File.php
wp-content/mu-plugins/cube/src/Forms/Training.php
wp-content/themes/CCV/app/View/Composers/Title.php
wp-content/themes/CCV/app/setup.php
wp-content/themes/CCV/functions.php
wp-content/themes/CCV/loco.xml [new file with mode: 0644]
wp-content/themes/CCV/package.json
wp-content/themes/CCV/resources/languages/ccv.pot [new file with mode: 0644]
wp-content/themes/CCV/resources/views/archive-scientific_news.blade.php
wp-content/themes/CCV/resources/views/forms/search.blade.php
wp-content/themes/CCV/resources/views/index.blade.php
wp-content/themes/CCV/resources/views/partials/comments.blade.php
wp-content/themes/CCV/resources/views/partials/content-page.blade.php
wp-content/themes/CCV/resources/views/partials/content-scientific_news.blade.php
wp-content/themes/CCV/resources/views/partials/content-single-scientific_news.blade.php
wp-content/themes/CCV/resources/views/partials/content-single.blade.php
wp-content/themes/CCV/resources/views/partials/content.blade.php
wp-content/themes/CCV/resources/views/partials/entry-meta.blade.php
wp-content/themes/CCV/resources/views/partials/header.blade.php
wp-content/themes/CCV/resources/views/search.blade.php
wp-content/themes/CCV/style.css

index ede46dd56abbd2e9e5db305568a91835c0f1b6b8..de6393e009e30e4d741b76db7ff688bf1d3730e8 100644 (file)
@@ -5,6 +5,8 @@
  * Version:  1.0
  * Author: Cubedesigners
  * Author URI: https://www.cubedesigners.com
+ * Text Domain: cube
+ * Domain Path: cube/languages
  */
 
 namespace Cube;
diff --git a/wp-content/mu-plugins/cube/languages/cube.pot b/wp-content/mu-plugins/cube/languages/cube.pot
new file mode 100644 (file)
index 0000000..f31abcf
--- /dev/null
@@ -0,0 +1,519 @@
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Custom theme features\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-05-05 17:43+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: \n"
+"Language: \n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Loco https://localise.biz/\n"
+"X-Loco-Version: 2.5.2; wp-5.6\n"
+"X-Domain: cube"
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:105
+msgid "Alignement du texte"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:107 cube/src/Elementor/Setup.php:124
+msgid "Aucun (défaut)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Timeline.php:59
+msgid "Background Colour"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:70
+msgid "Background Position"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:64
+msgid "Balise de titre (SEO)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:90
+#: cube/src/Elementor/Widgets/JustifiedList.php:86
+msgid "Blanc"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/HeaderSlideshow.php:79
+#: cube/src/Elementor/Widgets/TextBlock.php:78
+msgid "Body"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:157
+msgid "Body Colour"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:191
+msgid "Bottom"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:79
+msgid "Bottom Center"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:78
+msgid "Bottom Left"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:121 cube/src/Elementor/Widgets/_Base.php:78
+msgid "Bottom Padding"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:80
+msgid "Bottom Right"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:96
+#: cube/src/Elementor/Widgets/Timeline.php:118
+msgid "Call to Action link"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:87
+#: cube/src/Elementor/Widgets/Timeline.php:112
+msgid "Call to Action text"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PhotoGrid.php:72
+msgid "Caption"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:78
+msgid "Cellules du tableau (une valeur par ligne)"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:190
+#: cube/src/Elementor/Widgets/BackgroundImage.php:77
+msgid "Center"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:110
+#: cube/src/Elementor/Widgets/TextBlock.php:229
+msgid "Centré"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Timeline.php:20
+msgid "Chronologie"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TimelineHorizontal.php:21
+msgid "Chronologie Horizontale"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:78
+msgid "Colonnes inversées"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:111
+msgid "Colours & Formatting"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:47
+#: cube/src/Elementor/Widgets/Timeline.php:52
+#: cube/src/Elementor/Widgets/TimelineHorizontal.php:64
+msgid "Content"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TimelineHorizontal.php:91
+msgid "Contenu"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/FancyList.php:79
+msgid "Contenus"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:89
+#: cube/src/Elementor/Widgets/DynamicTable.php:86
+#: cube/src/Elementor/Widgets/FancyList.php:101
+#: cube/src/Elementor/Widgets/JustifiedList.php:82
+msgid "Couleur de fond"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/FancyList.php:117
+msgid "Couleur de texte"
+msgstr ""
+
+#. Author of the plugin
+msgid "Cubedesigners"
+msgstr ""
+
+#. Name of the plugin
+msgid "Custom theme features"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PictoGrid.php:79
+#: cube/src/Elementor/Widgets/Timeline.php:106
+msgid "Description"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/HeaderSlideshow.php:88
+msgid "Desktop Images (1920px &times; 912px)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/_Base.php:48
+msgid "Disable margin bottom"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/_Base.php:37
+msgid "Disable margin top"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/JustifiedList.php:20
+#: cube/src/Elementor/Widgets/JustifiedList.php:56
+msgid "Données Justifiées"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:111
+msgid "Droit"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:231
+msgid "Droite"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/_Base.php:62
+#: cube/src/Elementor/Widgets/_Base.php:81
+#: cube/src/Elementor/Widgets/DynamicTable.php:89
+#: cube/src/Elementor/Widgets/DynamicTable.php:99
+#: cube/src/Elementor/Widgets/DynamicTable.php:108
+#: cube/src/Elementor/Widgets/JustifiedList.php:85
+#: cube/src/Elementor/Widgets/TextBlock.php:228
+msgid "Défaut"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:92
+msgid "Défaut (blanc)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PeopleGrid.php:79
+msgid "Détails"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:63
+msgid "En-têtes de colonne (un par ligne)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:52
+msgid "Flexible Background Image"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:21
+msgid "Flexible Image"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:16
+msgid "Formatted Text"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Form.php:21
+#: cube/src/Elementor/Widgets/Form.php:55
+#: cube/src/Elementor/Widgets/Form.php:63
+msgid "Formulaire"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:109
+#: cube/src/Elementor/Widgets/TextBlock.php:230
+msgid "Gauche"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:100
+msgid "Gras"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:93
+#: cube/src/Elementor/Widgets/DynamicTable.php:91
+#: cube/src/Elementor/Widgets/JustifiedList.php:87
+msgid "Gris clair"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:67
+msgid "H1"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:68
+msgid "H2 (Défaut)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:69
+msgid "H3"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/HeaderSlideshow.php:22
+#: cube/src/Elementor/Widgets/HeaderSlideshow.php:62
+msgid "Header Slideshow"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:133
+msgid "Hide title decoration"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Timeline.php:76
+msgid "Highlight"
+msgstr ""
+
+#. Author URI of the plugin
+msgid "https://www.cubedesigners.com"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/LinkCarousel.php:88
+#: cube/src/Elementor/Widgets/Timeline.php:83
+#: cube/src/Elementor/Widgets/TimelineHorizontal.php:76
+msgid "Image"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Timeline.php:71
+#: cube/src/Elementor/Widgets/TimelineHorizontal.php:71
+msgid "Items"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Form.php:75
+msgid "L'adresse e-mail de destination"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/NewsBanner.php:50
+msgid "Latest News Banner"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:88
+msgid "Lien"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:73
+msgid "Lignes du tableau"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/LinkCarousel.php:21
+#: cube/src/Elementor/Widgets/LinkCarousel.php:63
+msgid "Link Carousel"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/LinkCarousel.php:82
+msgid "Link URL"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/LinkCarousel.php:70
+msgid "Links"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/FancyList.php:20
+msgid "Liste Formatée"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/FancyList.php:56
+#: cube/src/Elementor/Widgets/FancyList.php:93
+msgid "Liste formatée"
+msgstr ""
+
+#. Description of the plugin
+msgid "Loads all custom functionality such as new post types and taxonomies."
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:200
+msgid "Maximum Width"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Form.php:86
+msgid "Message après la soumission réussie"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/HeaderSlideshow.php:98
+msgid "Mobile Images (portrait orientation)"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TestimonialCarousel.php:74
+msgid "Name"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/NewsBanner.php:19
+msgid "News Banner"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PeopleGrid.php:72
+msgid "Nom"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TestimonialCarousel.php:87
+msgid "Notes"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Form.php:88
+msgid "Nous vous remercions pour votre demande."
+msgstr ""
+
+#: cube/src/Elementor/Widgets/ScientificNews.php:68
+msgid "Number of posts to display"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PeopleGrid.php:58
+msgid "People"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PeopleGrid.php:20
+#: cube/src/Elementor/Widgets/PeopleGrid.php:51
+msgid "People Grid"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PeopleGrid.php:63
+#: cube/src/Elementor/Widgets/PhotoGrid.php:63
+msgid "Photo"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PhotoGrid.php:20
+#: cube/src/Elementor/Widgets/PhotoGrid.php:51
+msgid "Photo Grid"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PhotoGrid.php:58
+msgid "Photos"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PictoGrid.php:20
+#: cube/src/Elementor/Widgets/PictoGrid.php:51
+msgid "Picto Grid"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PictoGrid.php:63
+msgid "Pictogramme"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/PictoGrid.php:58
+msgid "Pictogrammes"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:225
+msgid "Positionnement de bloc"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/ScientificNews.php:21
+msgid "Scientific News"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/ScientificNews.php:52
+msgid "Scientific News Posts"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/_Base.php:30
+msgid "Spacing"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:96
+msgid "Style de police"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Form.php:66
+msgid "Sélectionner"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:20
+#: cube/src/Elementor/Widgets/DynamicTable.php:56
+msgid "Tableau de comparison"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TestimonialCarousel.php:81
+msgid "Testimonial"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TestimonialCarousel.php:20
+#: cube/src/Elementor/Widgets/TestimonialCarousel.php:62
+msgid "Testimonial Carousel"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TestimonialCarousel.php:69
+msgid "Testimonials"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/NewsBanner.php:57
+msgid ""
+"This widget will display the most recent news post. If no published news "
+"posts are available, nothing will be shown."
+msgstr ""
+
+#: cube/src/Elementor/Widgets/ScientificNews.php:59
+msgid "This widget will display the most recent scientific news posts."
+msgstr ""
+
+#: cube/src/Elementor/Widgets/LinkCarousel.php:75
+#: cube/src/Elementor/Widgets/Timeline.php:99
+#: cube/src/Elementor/Widgets/TimelineHorizontal.php:84
+msgid "Title"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/TextBlock.php:144
+msgid "Title Colour"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/JustifiedList.php:68
+#: cube/src/Elementor/Widgets/PictoGrid.php:72
+msgid "Titre"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:66
+msgid ""
+"Titre 1\n"
+"Titre 2\n"
+"Titre 3\n"
+"..."
+msgstr ""
+
+#: cube/src/Elementor/Widgets/FancyList.php:64
+msgid "Titre de liste"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:189
+msgid "Top"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:75
+msgid "Top Center"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:74
+msgid "Top Left"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:104 cube/src/Elementor/Widgets/_Base.php:59
+msgid "Top Padding"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/BackgroundImage.php:76
+msgid "Top Right"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/JustifiedList.php:75
+msgid "Valeur"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/DynamicTable.php:79
+msgid ""
+"Valeur 1\n"
+"Valeur 2\n"
+"Valeur 3\n"
+"..."
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:186
+msgid "Vertical Alignment"
+msgstr ""
+
+#: cube/src/Elementor/Setup.php:94
+msgid "Violet foncé"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/NewsBanner.php:89
+msgid "Voir toute l'actualité"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/Timeline.php:92
+msgid "Year"
+msgstr ""
+
+#: cube/src/Elementor/Widgets/FancyList.php:73
+#: cube/src/Elementor/Widgets/JustifiedList.php:63
+msgid "Éléments"
+msgstr ""
index 155790de84ae139792bc3187e01290fe33104680..14a09b9d6a37ac3a0109c1f18c17f90474cd6643 100644 (file)
@@ -9,6 +9,13 @@ class Setup {
      */
     public function register() {
 
+        add_action('init', function() {
+            // Load translations for the 'cube' textdomain
+            // Note: this mu-plugin also contains translations from the 'ccv' textdomain but these are
+            // managed from the CCV Theme bundle in Loco Translate. See the loco.xml in the theme directory
+            load_muplugin_textdomain('cube', 'cube/languages');
+        });
+
     }
 
 }
index a46dc854928420618540f9fe57d44204fba45415..73280f2325822c5798159f9f3e75ebf4b3aad943 100644 (file)
@@ -117,7 +117,7 @@ class BackgroundImage extends _Base {
 
         if (is_numeric($image['id'])) {
             $meta = wp_get_attachment_metadata($image['id']);
-            $ratio = $meta['height'] / $meta['width'] * 100 . '%';
+            $ratio = $meta['width'] > 0 ? $meta['height'] / $meta['width'] * 100 . '%' : '80%';
         } else {
             // No image set, use fallback
             $image['url'] = Utils::get_placeholder_image_src();
index 3cfc6035c04f5a2ff88d2ec5f2cda5294a0eaca7..a3a287428763826626ad071446e044f7b861b477 100644 (file)
@@ -8,8 +8,8 @@ class Binary extends Radio
     public function render($settings) {
 
         $settings['options'] = [
-            __('Oui', 'cube'),
-            __('Non', 'cube'),
+            __('Oui', 'ccv'),
+            __('Non', 'ccv'),
         ];
 
         return parent::render($settings);
index f5d03f4422d7286f590c976ac68142a270442a79..89f089eda3890ddb6147ddc0b6600bdb7d5d829d 100644 (file)
@@ -26,7 +26,7 @@ class File extends Field
         $res  = '<input type="file" name="'. $field_name .'" id="'. $this->get_name() .'" ';
         $res .= 'class="file-input" ';
         $res .= $multiple_attribute .' ';
-        $res .= 'data-multiple-caption="'. __('{count} fichiers sélectionnés', 'cube') .'" ';
+        $res .= 'data-multiple-caption="'. __('{count} fichiers sélectionnés', 'ccv') .'" ';
         $res .= $settings['validation'];
         $res .= '>';
         $res .= '<label for="'. $this->get_name() .'"><span class="file-input-label-text">'. $this->get_title() .'</span></label>';
index 9756be1cd6ecdcfd9f84fff7b7faa1c228f4de5b..ddbea4d190b3d94d9f8264f1915be1493e90aeba 100644 (file)
@@ -23,7 +23,7 @@ class Training extends Base
             Text::field('first-name', __('Prénom', 'ccv')),
             Date::field('birth-date', __('Date de naissance', 'ccv')),
             Text::field('phone', __('Tel', 'ccv')),
-            Email::field('email', __('Mail', 'ccv')),
+            Email::field('email', __('Email', 'ccv')),
             Text::field('country-residence', __('Pays de résidence', 'ccv')),
             Text::field('country-training', __('Pays de formation chirurgicale', 'ccv')),
             Radio::field('speciality', __('Spécialité chirurgicale', 'ccv'))
index d31cbcb144a51f350bdd2eb1c10e51feb0c3b879..ac2e3c2e2b5c9c680776b1a6aa14bb0fd1f4f319 100644 (file)
@@ -45,7 +45,7 @@ class Title extends Composer
                 return get_the_title($home);
             }
 
-            return __('Latest Posts', 'sage');
+            return __('Articles récents', 'ccv');
         }
 
         if (is_archive()) {
@@ -55,13 +55,13 @@ class Title extends Composer
         if (is_search()) {
             /* translators: %s is replaced with the search query */
             return sprintf(
-                __('Search Results for %s', 'sage'),
+                __('Résultats de recherche pour « %s »', 'ccv'),
                 get_search_query()
             );
         }
 
         if (is_404()) {
-            return __('Not Found', 'sage');
+            return __('Page non trouvée', 'ccv');
         }
 
         return get_the_title();
index 05ff8832e429aec81608bc87c659fa3ad22749e3..c5e575d6221d94c7d6b6dad6fcd64897de478049 100755 (executable)
@@ -80,6 +80,12 @@ add_action('wp_enqueue_scripts', function () {
  * Theme setup
  */
 add_action('after_setup_theme', function () {
+
+    /**
+     * Enable translations
+     */
+    load_theme_textdomain('ccv',  get_stylesheet_directory() . '/resources/languages');
+
     /**
      * Enable features from Soil when plugin is activated
      * @link https://roots.io/plugins/soil/
@@ -101,8 +107,8 @@ add_action('after_setup_theme', function () {
      * @link https://developer.wordpress.org/reference/functions/register_nav_menus/
      */
     register_nav_menus([
-        'primary_navigation' => __('Primary Navigation', 'sage'),
-        'cta_navigation' => __('Header Buttons (2 items max)', 'cube')
+        'primary_navigation' => __('Navigation primaire', 'ccv'),
+        'cta_navigation' => __("Boutons d'en-tête (maximum de 2)", 'ccv')
     ]);
 
     /**
index e2204d9c0ad05165099b5dddf116d96814b406f8..eb365a412033fc36fb9ae98c568c68b1b48a1eae 100644 (file)
@@ -12,7 +12,7 @@
  * @param string $title
  */
 $sage_error = function ($message, $subtitle = '', $title = '') {
-    $title = $title ?: __('Sage &rsaquo; Error', 'sage');
+    $title = $title ?: 'Sage &rsaquo; Error';
     $footer = '<a href="https://roots.io/sage/docs/">roots.io/sage/docs/</a>';
     $message = "<h1>{$title}<br><small>{$subtitle}</small></h1><p>{$message}</p><p>{$footer}</p>";
     wp_die($message, $title);
@@ -22,14 +22,14 @@ $sage_error = function ($message, $subtitle = '', $title = '') {
  * Ensure compatible version of PHP is used
  */
 if (version_compare('7.1.3', phpversion(), '>')) {
-    $sage_error(__('You must be using PHP 7.1.3 or greater.', 'sage'), __('Invalid PHP version', 'sage'));
+    $sage_error('You must be using PHP 7.1.3 or greater.', 'Invalid PHP version');
 }
 
 /**
  * Ensure compatible version of WordPress is used
  */
 if (version_compare('5.2', get_bloginfo('version'), '>')) {
-    $sage_error(__('You must be using WordPress 5.2 or greater.', 'sage'), __('Invalid WordPress version', 'sage'));
+    $sage_error('You must be using WordPress 5.2 or greater.', 'Invalid WordPress version');
 }
 
 /**
@@ -37,8 +37,8 @@ if (version_compare('5.2', get_bloginfo('version'), '>')) {
  */
 if (! file_exists($composer = __DIR__ . '/vendor/autoload.php')) {
     $sage_error(
-        __('You must run <code>composer install</code> from the Sage directory.', 'sage'),
-        __('Autoloader not found.', 'sage')
+        'You must run <code>composer install</code> from the Sage directory.',
+        'Autoloader not found.'
     );
 }
 require_once $composer;
@@ -53,8 +53,8 @@ array_map(function ($file) use ($sage_error) {
     $file = "app/{$file}.php";
     if (! locate_template($file, true, true)) {
         $sage_error(
-            sprintf(__('Error locating <code>%s</code> for inclusion.', 'sage'), $file),
-            __('File not found', 'sage')
+            sprintf('Error locating <code>%s</code> for inclusion.', $file),
+            'File not found'
         );
     }
 }, ['helpers', 'setup', 'filters', 'admin']);
diff --git a/wp-content/themes/CCV/loco.xml b/wp-content/themes/CCV/loco.xml
new file mode 100644 (file)
index 0000000..092ece1
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Custom configuration for Loco Translate -->
+<!--
+  The custom features of the CCV website are split between the theme and the "cube" mu-plugin, which contains features
+  that don't belong in a theme (custom post types, custom Elementor widgets etc). However, both the theme and the
+  mu-plugin use the "ccv" textdomain for translations and it's more convenient to have ALL "ccv" language strings in
+  one place for translation. The Loco Translate plugin makes this possible by allowing us to define the textdomain and
+  which folders should be scanned for extraction. This XML provides an automatic configuration to Loco Translate.
+
+  IMPORTANT: Loco Translate won't find translatable strings in Blade templates so it's important that the Blade
+  templates are all compiled to PHP first by running `wp acorn view:cache` from the command line.
+
+  The Cube mu-plugin can still contain some other textdomains (cube) but these aren't included here. Instead, they are
+  handled in the plugin section (/wp-admin/admin.php?bundle=cube-loader.php&page=loco-plugin&action=view)
+  The mu-plugin loads the "cube" text domain and the cube-<locale>.mo file if it is present.
+  (see wp-content/mu-plugins/cube/src/Common/Setup.php)
+
+  NOTE: Due to limitations in WordPress on how MU-Plugins work (they can't be in a folder and require a loader plugin)
+  it's not possible to have a loco.xml configuration for the Cube MU-Plugin :( The settings for it are as follows:
+
+  <?xml version="1.0" encoding="utf-8"?>
+  <bundle name="Custom theme features">
+    <domain name="cube">
+      <project name="Custom theme features" slug="cube">
+        <source>
+          <directory>cube</directory>
+          <file>cube-loader.php</file>
+        </source>
+        <target>
+          <directory>cube/languages</directory>
+        </target>
+        <template>
+          <file>cube/languages/cube.pot</file>
+        </template>
+      </project>
+    </domain>
+    <exclude>
+      <directory>cube/vendor</directory>
+    </exclude>
+  </bundle>
+
+  Ref: https://localise.biz/wordpress/plugin/manual/bundle-config/xml-schema
+-->
+<bundle name="CCV">
+  <domain name="ccv">
+    <project name="CCV Theme" slug="ccv">
+      <source>
+        <directory>.</directory>
+        <directory base="WPMU_PLUGIN_DIR">cube/src</directory>
+      </source>
+      <target>
+        <directory>resources/languages</directory>
+      </target>
+      <template>
+        <file>resources/languages/ccv.pot</file>
+      </template>
+    </project>
+  </domain>
+  <exclude>
+    <directory>node_modules</directory>
+    <directory>vendor</directory>
+    <directory base="WPMU_PLUGIN_DIR">cube/vendor</directory>
+  </exclude>
+</bundle>
index e7a5f24d9d030afd3bf91052c15d89f1438d9d33..19bc0f4085b0740e74cb13964162702545795d68 100644 (file)
@@ -3,17 +3,22 @@
   "scripts": {
     "build": "cross-env NODE_ENV=development run-s mix",
     "build:production": "cross-env NODE_ENV=production run-s clean mix",
-    "start": "cross-env NODE_ENV=development run-s \"mix --watch\"",
+    "start": "cross-env NODE_ENV=development run-s \"mix -- --watch\"",
     "hot": "cross-env NODE_ENV=development run-s build mix:hot",
     "mix": "webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
     "mix:hot": "webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
     "clean": "run-p clean:*",
     "clean:dist": "rimraf dist",
+    "clean:cache": "rimraf storage/framework/cache/*.php storage/framework/cache/data/*.php",
     "clean:views": "rimraf storage/framework/views/*.php",
     "lint": "run-s -c lint:*",
     "lint:scripts": "eslint resources/assets/scripts",
-    "lint:styles": "stylelint \"resources/assets/**/*.{vue,css,sass,scss,sss,less}\"",
-    "test": "run-s -c lint"
+    "lint:styles": "stylelint \"resources/assets/**/*.{vue,css,styl,sass,scss,less}\"",
+    "test": "run-s -c lint",
+    "translate": "run-s -c translate:*",
+    "translate:pot": "wp i18n make-pot . ./resources/languages/ccv.pot --ignore-domain --include=\"app,resources/assets,resources/views\"",
+    "translate:mu": "wp i18n make-pot ../../mu-plugins/cube ../../mu-plugins/cube/languages/cube.pot --ignore-domain --include=\"src\"",
+    "translate:js": "wp i18n make-json ./resources/languages --no-purge --pretty-print"
   },
   "devDependencies": {
     "@babel/plugin-syntax-dynamic-import": "^7.2",
diff --git a/wp-content/themes/CCV/resources/languages/ccv.pot b/wp-content/themes/CCV/resources/languages/ccv.pot
new file mode 100644 (file)
index 0000000..63f1848
--- /dev/null
@@ -0,0 +1,707 @@
+# Copyright (C) 2021 Cubedesigners
+# This file is distributed under the .
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: CCV Theme 1.0\n"
+"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/CCV\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"POT-Creation-Date: 2021-05-06 13:58+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"X-Generator: Loco https://localise.biz/\n"
+"Language: \n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
+
+#: storage/framework/views/e0697311831d1d0957c8ce423efdef4c1be43b78.php:19
+msgid "&larr; Commentaires plus anciens"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:162
+msgid ""
+"1. Munissez-vous du CD de votre examen (scanner, IRM, etc) et copiez-le sur "
+"votre ordinateur. Un dossier avec le nom du CD va être automatiquement "
+"généré."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:6
+msgid "1. Vos symptômes"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:6
+msgid "1. Votre identité"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:55
+msgid "2. Domaine d’intervention"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:167
+msgid ""
+"2. Glissez ce dossier dans la zone ci-dessous. Ou cliquez sur le bouton « "
+"Folders and Disks » et sélectionnez le dossier entier correspondant à votre "
+"CD."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:102
+msgid "2. Vos traitements réalisés"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:81
+msgid "3. Type de formation"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:184
+msgid ""
+"3. Une fois vos images envoyées, la barre de chargement disparait et le "
+"descriptif des images apparaît. Le CCV Montpellier aura accès de son côté à "
+"vos images."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:127
+msgid "3. Votre imagerie"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:283
+msgid "4. Vos informations"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:189
+msgid ""
+"4. Vous pouvez fermer cette fenêtre et terminer de compléter le formulaire "
+"de demande d’avis médical."
+msgstr ""
+
+#: storage/framework/views/1165902ef603b384094231fe9f23607049374cb2.php:6
+msgid "Actualité Scientifique"
+msgstr ""
+
+#: resources/views/partials/header.blade.php:6
+#: storage/framework/views/aa8d74b87c3c466ea72288001f5b7d69e3a8097a.php:6
+msgid "Aller à la page d'accueil"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:312
+msgid "ans"
+msgstr ""
+
+#: app/View/Composers/Title.php:48
+msgid "Articles récents"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:275
+msgid ""
+"Aucune demande d’avis ne pourra être étudiée sans imagerie médicale associée."
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:133
+msgid "Aucune image envoyée"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:92
+msgid "Avant-bras droit"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:93
+msgid "Avant-bras gauche"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:51
+msgid "Avez vous un message (ou une demande) spécifique à nous formuler ?"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:85
+msgid ""
+"Avez-vous des douleurs dans les bras ou les jambes (sciatiques, cruralgies, "
+"névralgies) ?"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:107
+msgid ""
+"Avez-vous des fourmillements ou une sensation d’engourdissement dans un des "
+"membres ? "
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:110
+msgid "Avez-vous une perte de force importante dans un des membres ?"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:96
+msgid "Bas de la jambe droite"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:97
+msgid "Bas de la jambe gauche"
+msgstr ""
+
+#: app/setup.php:111
+msgid "Boutons d'en-tête (maximum de 2)"
+msgstr ""
+
+#. Name of the theme
+msgid "CCV Theme"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:76
+msgid "Cervicales"
+msgstr ""
+
+#: storage/framework/views/95c11b34260f062782e05cb6edb308468a24dcfd.php:6
+msgid ""
+"Cette demande nécessite l'emploi de JavaScript qui, soit a été désactivé, "
+"soit n'est pas reconnu par votre fureteur."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:384
+msgid "Chargement des fichiers"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:410
+msgid "Chargement terminé"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:38
+msgid "Chirurgien en activité"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:32
+msgid "Chirurgien orthopédiste avec chirurgie du rachis exclusif"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:33
+msgid "Chirurgien orthopédiste généraliste"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:54
+msgid "Chirurgien spécifique"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:129
+msgid ""
+"Choix des interventions chaque jour parmi les 5 à 12 chirurgies quotidiennes "
+"du CCV. Formation théorique plus structurée sur les abords, les indications, "
+"la gestion des complications & discussion de dossiers."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:267
+msgid "Cochez cette case si vous envoyez vos images par courrier"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:207
+msgid ""
+"Collez votre lien ci-dessous ainsi que vos identifiant et mot de passe :"
+msgstr ""
+
+#: storage/framework/views/e0697311831d1d0957c8ce423efdef4c1be43b78.php:26
+msgid "Commentaires plus récents &rarr;"
+msgstr ""
+
+#: storage/framework/views/e0697311831d1d0957c8ce423efdef4c1be43b78.php:37
+msgid "Comments are closed."
+msgstr ""
+
+#: storage/framework/views/e0697311831d1d0957c8ce423efdef4c1be43b78.php:5
+#, php-format
+msgctxt "comments title"
+msgid "Une réponse à &ldquo;%2$s&rdquo;"
+msgid_plural "%1$s réponses à &ldquo;%2$s&rdquo;"
+msgstr[0] ""
+msgstr[1] ""
+
+#: storage/framework/views/d2dc1b7b2b7a2da728e771a013e823f7ef732306.php:11
+msgid "Contactez-moi"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:116
+msgid "Corset ou ceinture lombaire"
+msgstr ""
+
+#. Author of the theme
+msgid "Cubedesigners"
+msgstr ""
+
+#. Description of the theme
+msgid "Custom theme for the CCV website."
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:146
+msgid "CV et lettre de motivation exigés."
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:102
+msgid "Dans la colonne"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:103
+msgid "Dans les membres"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:24
+msgid "Date de naissance"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:20
+msgid "Date de naissance (JJ/MM/AAAA)"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:81
+msgid "Date des premiers symptômes :"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:14
+msgid "Demande de formation"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:83
+msgid "Douleurs permanentes depuis (le cas échéant) :"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:49
+msgid "Droite"
+msgstr ""
+
+#: storage/framework/views/1165902ef603b384094231fe9f23607049374cb2.php:12
+#: storage/framework/views/30f51a2a665511403a467eaa692091e23b92d865.php:23
+#: storage/framework/views/9da2f20b584252b99268575e2a54276488977177.php:9
+msgid "Désolé, aucun résultat n'a été trouvé"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:20
+msgid "E-diagnostic"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:44
+#: ../../mu-plugins/cube/src/Forms/Training.php:26
+msgid "Email"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:47
+#: ../../mu-plugins/cube/src/Forms/Training.php:54
+msgid "Entre 20 et 100"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:351
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:162
+msgid "Envoi en cours..."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:349
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:160
+msgid "Envoyer votre demande"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:157
+msgid "Envoyez vos images au CCV Montpellier en vue d’une téléconsultation"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:146
+msgid "Envoyez-nous l'ensemble des fichiers contenus sur votre CD :"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Base.php:273
+msgid "Erreur d'envoi du message. Veuillez réessayer."
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:37
+msgid "Etudiant (interne, fellow)"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:88
+msgid "Fellowship au CCV pour une durée variable"
+msgstr ""
+
+#: app/setup.php:152
+msgid "Footer Column 1"
+msgstr ""
+
+#: app/setup.php:156
+msgid "Footer Column 2"
+msgstr ""
+
+#: app/setup.php:160
+msgid "Footer Column 3"
+msgstr ""
+
+#: app/setup.php:164
+msgid "Footer Copyright"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:87
+msgid "Formation sur 3 à 5 jours aux côtés des différents chirurgiens du CCV"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Contact.php:10
+msgid "Formulaire de contact"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:50
+msgid "Gauche"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:94
+msgid "Haut de la jambe droite"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:95
+msgid "Haut de la jambe gauche"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:90
+msgid "Haut du bras droit"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:91
+msgid "Haut du bras gauche"
+msgstr ""
+
+#. Author URI of the theme
+msgid "https://www.cubedesigners.com/"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:71
+msgid "ID sur le NAS"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:65
+msgid "Imagerie"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:66
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:199
+msgid "Images en ligne"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:67
+msgid "Images envoyé par courrier"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:249
+msgid "Images envoyées par courrier"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:138
+msgid "Images sur CD (Purview)"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:235
+msgid "Images téléchargées :"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:138
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:220
+msgid "Images téléversées depuis portable"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:114
+msgid ""
+"Indiquez ici les médicaments que vous avez pris pour vos douleurs (le cas "
+"échéant)"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:119
+msgid ""
+"Indiquez ici vos précédentes chirurgies de la colonne et leurs dates (le cas "
+"échéant)"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:118
+msgid "Infiltration ou thermocoagulation"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:112
+msgid ""
+"Interventions aux côtés du chirurgien et discussion technique de dossier, "
+"indications, trucs et astuces opératoires entre les interventions."
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:130
+msgid ""
+"IRM, Scanner, Radiographies, faites-nous parvenir vos imageries les plus "
+"récentes en utilisant l'une des méthodes suivantes :"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:322
+msgid "J'envoie ma demande à l'équipe du CCV"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:8
+msgid "JJ/MM/AAAA"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:62
+msgid "Joindre vos documents"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:115
+msgid "Kinésithérapie ou ostéopathie"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:100
+msgid "La douleur principale est-elle ?"
+msgstr ""
+
+#: storage/framework/views/31c60973002de04923364eaf7e072a3616cf3fd5.php:3
+msgctxt "label"
+msgid "Rechercher :"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:170
+msgid "Le téléchargement des images se fait automatiquement."
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:104
+msgid "Les deux"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:175
+msgid ""
+"Les fichiers de scanner et IRM comportent souvent de nombreuses images et le "
+"téléchargement peut prendre plusieurs minutes, c’est normal."
+msgstr ""
+
+#: resources/views/partials/content-scientific_news.blade.php:34
+#: resources/views/partials/content.blade.php:25
+#: storage/framework/views/573ed32df26692b4935ea34b0130904032d35d61.php:26
+#: storage/framework/views/c3c7ccd2f03fbe80640cee086051311d979dda72.php:35
+msgid "Lire la suite"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:77
+msgid "Lombaires"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:46
+#: ../../mu-plugins/cube/src/Forms/Training.php:53
+msgid "Moins de 20 chirurgies"
+msgstr ""
+
+#: app/setup.php:110
+msgid "Navigation primaire"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:31
+msgid "Neurochirurgien"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:38
+#: ../../mu-plugins/cube/src/Forms/Contact.php:16
+#: ../../mu-plugins/cube/src/Forms/Training.php:22
+msgctxt "Nom de famille"
+msgid "Nom"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Builder/Fields/Binary.php:12
+msgid "Non"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:325
+msgid "ou je souhaite l'envoyer à un chirurgien spécifique :"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:321
+#: ../../mu-plugins/cube/src/Forms/Builder/Fields/Binary.php:11
+msgid "Oui"
+msgstr ""
+
+#: app/View/Composers/Title.php:64
+msgid "Page non trouvée"
+msgstr ""
+
+#: storage/framework/views/3cb18037d9ec3579525d2aa4a19348b02b80d433.php:2
+msgid "Pages :"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:61
+msgid "Par quel type de formation au CCV Montpellier êtes-vous intéressé ?"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:151
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:243
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:408
+msgid "Parcourir"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:45
+#: ../../mu-plugins/cube/src/Forms/Training.php:52
+msgid "Pas d'expérience"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:42
+msgid "Pays"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:28
+msgid "Pays de formation chirurgicale"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:27
+msgid "Pays de résidence"
+msgstr ""
+
+#: storage/framework/views/31c60973002de04923364eaf7e072a3616cf3fd5.php:4
+msgctxt "placeholder"
+msgid "Rechercher &hellip;"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:48
+#: ../../mu-plugins/cube/src/Forms/Training.php:55
+msgid "Plus de 100 chirurgies"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:228
+msgid ""
+"Prenez vos images en photo et envoyez-les directement depuis votre téléphone "
+":"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:74
+msgid "Problème principal"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:40
+msgid "Profession"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:39
+#: ../../mu-plugins/cube/src/Forms/Contact.php:17
+#: ../../mu-plugins/cube/src/Forms/Training.php:23
+msgid "Prénom"
+msgstr ""
+
+#: storage/framework/views/aed6d38ed8fbe9d9ba614666106bb65370261571.php:12
+msgid "Publié par"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:43
+msgid "Quel niveau d'expertise avez-vous dans ce domaine ?"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:50
+msgid "Quel niveau d’expertise avez-vous dans la chirurgie de la scoliose ?"
+msgstr ""
+
+#: resources/views/partials/content-single-scientific_news.blade.php:34
+#: storage/framework/views/aed6d38ed8fbe9d9ba614666106bb65370261571.php:36
+msgid "Retour"
+msgstr ""
+
+#: resources/views/partials/content-single.blade.php:18
+#: storage/framework/views/dfbbe2e2c43588ed8148e5eb78b257f2c06d2b02.php:19
+msgid "Retour aux actualités"
+msgstr ""
+
+#. %s is replaced with the search query
+#: app/View/Composers/Title.php:58
+#, php-format
+msgid "Résultats de recherche pour « %s »"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:78
+msgid "Scoliose"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:45
+msgid "Sexe"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:48
+msgctxt "Sexe (F)"
+msgid "F"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:47
+msgctxt "Sexe (M)"
+msgid "M"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:108
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:111
+msgid "Si oui depuis quand ?"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:87
+msgid "Si oui, cochez les membres concernés :"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:29
+msgid "Spécialité chirurgicale"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Training.php:35
+msgid "Statut"
+msgstr ""
+
+#: storage/framework/views/31c60973002de04923364eaf7e072a3616cf3fd5.php:7
+msgctxt "submit button"
+msgid "Rechercher"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:117
+msgid "Séjour en hospitalisation"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:340
+msgid "Sélectionner"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:43
+#: ../../mu-plugins/cube/src/Forms/Training.php:25
+msgid "Tel"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Contact.php:18
+msgid "Téléphone"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Base.php:197
+#: ../../mu-plugins/cube/src/Forms/Base.php:213
+msgid "Une erreur est survenue. Veuillez réessayer."
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:41
+msgid "Ville (département)"
+msgstr ""
+
+#. Text used for radio values and labels
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:86
+msgid "Visite ponctuelle sur 1 journée avec 2 à 5 interventions"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:142
+msgid "Vos images sont sur un CD ?"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:203
+msgid "Vous avez reçu un lien pour consulter vos images en ligne ?"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:253
+msgid "Vous pouvez aussi nous envoyer vos images par courrier :"
+msgstr ""
+
+#: storage/framework/views/23ae7e77232b4a4a1596204d2b2a7fcd3757dfdd.php:224
+msgid "Vous remplissez cette demande depuis votre téléphone ?"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Builder/Fields/File.php:29
+msgid "{count} fichiers sélectionnés"
+msgstr ""
+
+#: ../../mu-plugins/cube/src/Forms/Consultation.php:50
+msgid "Âge :"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:60
+msgid ""
+"Êtes-vous intéressé principalement par la chirurgie lombaire par voie "
+"antérieure (TDR & ALIF) ?"
+msgstr ""
+
+#: storage/framework/views/95d1d80ab69dd8a46e69b9d010541f84f22497f3.php:68
+msgid ""
+"Êtes-vous intéressé principalement par la chirurgie percutanée de la "
+"scoliose avec pré-implantation scanner ?"
+msgstr ""
index a8f71e12541b032a66f6bf159e3753a313035b41..c31b25b7fd02828b55c516a8d7db075410922740 100644 (file)
@@ -5,13 +5,13 @@
 
   <div class="bg-light py-2v px-4v">
 
-    <h1 class="h2">{{ __('Actualité Scientifique') }}</h1>
+    <h1 class="h2">{{ __('Actualité Scientifique', 'ccv') }}</h1>
 
     <div class="mt-2v">
 
       @if (! have_posts())
         @alert(['type' => 'warning'])
-          {{ __('Sorry, no results were found.', 'sage') }}
+          {{ __("Désolé, aucun résultat n'a été trouvé", 'ccv') }}
         @endalert
 
         {!! get_search_form(false) !!}
index b4ab242f60b5bb84788d41c8b039092922c1b588..bd2e7dc7d242ff6732c6ef5fc2cc94371ef95155 100644 (file)
@@ -1,8 +1,8 @@
 <form role="search" method="get" class="search-form" action="{{ esc_url(home_url('/')) }}">
   <label>
-    <span class="screen-reader-text">{{ _x('Search for:', 'label', 'sage') }}</span>
-    <input type="search" class="search-field" placeholder="{!! esc_attr_x('Search &hellip;', 'placeholder', 'sage') !!}" value="{{ get_search_query() }}" name="s">
+    <span class="screen-reader-text">{{ _x('Rechercher :', 'label', 'ccv') }}</span>
+    <input type="search" class="search-field" placeholder="{!! esc_attr_x('Rechercher &hellip;', 'placeholder', 'ccv') !!}" value="{{ get_search_query() }}" name="s">
   </label>
   
-  <input type="submit" class="search-submit" value="{{ esc_attr_x('Search', 'submit button', 'sage') }}">
+  <input type="submit" class="search-submit" value="{{ esc_attr_x('Rechercher', 'submit button', 'ccv') }}">
 </form>
index 25b6a53a702c65fdbf1b5b291ec154568ae4490d..59003cdd89dca3045b4d3953d42f7268a5e6e6ea 100644 (file)
@@ -22,7 +22,7 @@
 
       @if (! have_posts())
         @alert(['type' => 'warning'])
-          {{ __('Sorry, no results were found.', 'sage') }}
+          {{ __("Désolé, aucun résultat n'a été trouvé", 'ccv') }}
         @endalert
 
         {!! get_search_form(false) !!}
index e4589757064ef5c64cf0f7007f41cb6a7b5fa92f..ebc20803d33d9ab7bc4f5ebb2fd115384f87a086 100644 (file)
@@ -2,7 +2,7 @@
   <section id="comments" class="comments">
     @if (have_comments())
       <h2>
-        {!! sprintf(_nx('One response to &ldquo;%2$s&rdquo;', '%1$s responses to &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'sage'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>') !!}
+        {!! sprintf(_nx('Une réponse à &ldquo;%2$s&rdquo;', '%1$s réponses à &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ccv'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>') !!}
       </h2>
 
       <ol class="comment-list">
           <ul class="pager">
             @if (get_previous_comments_link())
               <li class="previous">
-                {!! get_previous_comments_link(__('&larr; Older comments', 'sage')) !!}
+                {!! get_previous_comments_link(__('&larr; Commentaires plus anciens', 'ccv')) !!}
               </li>
             @endif
 
             @if (get_next_comments_link())
               <li class="next">
-                {!! get_next_comments_link(__('Newer comments &rarr;', 'sage')) !!}
+                {!! get_next_comments_link(__('Commentaires plus récents &rarr;', 'ccv')) !!}
               </li>
             @endif
           </ul>
@@ -30,7 +30,7 @@
 
     @if (! comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments'))
       @alert
-        {{ __('Comments are closed.', 'sage') }}
+        {{ __('Comments are closed.', 'ccv') }}
       @endalert
     @endif
 
index 41e050a4fee61b2ddcc0b5fa4a858edf439a90a4..869d24d0b663828ea816a858fe57a67f9ab55b6c 100644 (file)
@@ -1,2 +1,2 @@
 @php(the_content())
-{!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
+{!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages :', 'ccv'), 'after' => '</p></nav>']) !!}
index bb365a482a9f3a7dae44ac47deae3ef8f6225f93..380760b05d44b649d974e58be50ed59956326f2a 100644 (file)
@@ -31,7 +31,7 @@
     <p class="mt-6 mb-1v">
       <a class="uppercase text-pink inline-flex items-center" href="{{ get_permalink($postID) }}">
         @svg('arrow', 'h-3 mr-2 fill-current')
-        <?= __('Lire la suite') ?>
+        <?= __('Lire la suite', 'ccv') ?>
       </a>
     </p>
 
index 9b852756b1c416e91ef978aab985eb84c408c2fd..65f6602e6d184f403e33ed1ad01b6a565471cca1 100644 (file)
@@ -9,7 +9,7 @@
              style="background-image: url({{ wp_get_attachment_image_url($published_by['photo'], 'medium') }}); max-width: 135px">
           <div style="padding-bottom: 100%">{{-- Image sizer to make square --}}</div>
         </div>
-        <em>{{ __('Publié par') }}</em>
+        <em>{{ __('Publié par', 'ccv') }}</em>
         <br/>
         <strong>{{ $published_by['name'] }}</strong>
       </div>
     <p class="mt-6">
       <a class="uppercase text-pink inline-flex items-center" href="<?= get_post_type_archive_link('scientific_news') ?>">
         @svg('arrow', 'h-3 mr-2 fill-current')
-        <?= __('Retour') ?>
+        <?= __('Retour', 'ccv') ?>
       </a>
     </p>
   </div>
 
   {{--
   <footer>
-    {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
+    {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages :', 'ccv'), 'after' => '</p></nav>']) !!}
   </footer>
   --}}
 </article>
index 71a4e7c9f91806db70ce475bbd3350baae20953f..aed3236b37f02b22cbedb1e719d1486ec3011e31 100644 (file)
     <p class="mt-6">
       <a class="uppercase text-pink inline-flex items-center" href="<?= get_post_type_archive_link('post') ?>">
         @svg('arrow', 'h-3 mr-2 fill-current')
-        <?= __('Retour aux actualités') ?>
+        <?= __('Retour aux actualités', 'ccv') ?>
       </a>
     </p>
   </div>
 
   {{--
   <footer>
-    {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
+    {!! wp_link_pages(['echo' => 0, 'before' => '<nav class="page-nav"><p>' . __('Pages :', 'ccv'), 'after' => '</p></nav>']) !!}
   </footer>
   --}}
 
index bfe141f933206423240a8907fbd26c84dd1deab2..f97b3bc044b1520fb426fde27bd5b36165b3dda9 100644 (file)
@@ -22,7 +22,7 @@
     <p class="mt-6 mb-1v">
       <a class="uppercase text-pink inline-flex items-center" href="{{ get_permalink() }}">
         @svg('arrow', 'h-3 mr-2 fill-current')
-        <?= __('Lire la suite') ?>
+        <?= __('Lire la suite', 'ccv') ?>
       </a>
     </p>
 
index aeb8de21485503e3af725702092998c4ff502fd9..76efdcbd079b3a5083184c30c9da42374ef7803d 100644 (file)
@@ -4,7 +4,7 @@
 
 {{--
 <p class="byline author vcard">
-  <span>{{ __('By', 'sage') }}</span>
+  <span>{{ __('Par', 'ccv') }}</span>
   <a href="{{ get_author_posts_url(get_the_author_meta('ID')) }}" rel="author" class="fn">
     {{ get_the_author() }}
   </a>
index 006bef39e6d001e1e317247f1a939d39270b3fcd..9181493e9d706f1704bcc09d23eb16b0c131ec09 100644 (file)
@@ -3,7 +3,7 @@
     <a class="mr-10"
        style="max-width: 45%"
        href="{{ home_url('/') }}"
-       aria-label="<?= _("Go to the home page") ?>">
+       aria-label="<?= __("Aller à la page d'accueil", 'ccv') ?>">
       <img class="header-logo" src="@asset('images/logo.svg')" alt="{{ get_bloginfo('name', 'display') }}">
     </a>
 
index 65477828642208e816ecaa3f5db568852334befc..c83d4e993854fa1337ca94158066d5cf06670ff1 100644 (file)
@@ -8,7 +8,7 @@
 
     @if (! have_posts())
       @alert(['type' => 'warning'])
-        {{ __('Sorry, no results were found.', 'sage') }}
+        {{ __("Désolé, aucun résultat n'a été trouvé", 'ccv') }}
       @endalert
 
       {!! get_search_form(false) !!}
index 726a689820a1bc278e55de47356006855a1d23c6..b137e0d642e2dcfc61ff841ce0bd47fe8def3a3e 100644 (file)
@@ -4,5 +4,6 @@ Description:        Custom theme for the CCV website.
 Version:            1.0
 Author:             Cubedesigners
 Author URI:         https://www.cubedesigners.com/
-Text Domain:        sage
+Text Domain:        ccv
+Domain Path:        resources/languages
 */