]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6248 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Sep 2023 06:56:00 +0000 (08:56 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Sep 2023 06:56:00 +0000 (08:56 +0200)
views/footer.blade.php
views/header_question.blade.php
views/screens/outro.blade.php
views/screens/question_draganddrop.blade.php

index 0133295215bf8de2cc58da64bfeac4087628fe0f..8be8fc4b290c7fbbc1c745c056600de88ccebebe 100644 (file)
@@ -1,28 +1,29 @@
 <footer class="footer-question footer">
     @isset($reset)
         <a class="btn secondary reset" aria-keyshortcuts="R">
-            <span class="text">Reset</span>
+            <span class="text">{{__('Reset')}}</span>
             <span class="access">R</span>
         </a>
     @endisset
-    <a class="btn primary action validate {{$question['countdown_enable'] ? 'countdown' : ''}}" aria-keyshortcuts="Space">
-        <span class="text">Validate answer</span>
-        <span class="access space">space</span>
+    <a class="btn primary action validate {{$question['countdown_enable'] ? 'countdown' : ''}}"
+       aria-keyshortcuts="Space">
+        <span class="text">{{__('Validate answer')}}</span>
+        <span class="access space">{{__('space')}}</span>
         <span class="runningman"></span>
-        
+
         @isset($time)
             <span data-icon="running-man"></span>
         @endisset
     </a>
     @if($data['instantReview'])
         <a class="btn primary action none continue" aria-keyshortcuts="Space">
-            <span class="text">Continue</span>
-            <span class="access space">space</span>
+            <span class="text">{{__('Continue')}}</span>
+            <span class="access space">{{__('space')}}</span>
         </a>
     @endif
     @isset($info)
         <a class="btn secondary none" aria-keyshortcuts="F1">
-            More infos
+            {{__('More infos')}}
             <span class="access infos">F1</span>
         </a>
     @endisset
index 1fa42bd72f512ec9e9ddedc56f31aeaefe5db852..447bcd19d7b2f2f8d9282c05117d508f6d48d835 100644 (file)
@@ -7,6 +7,6 @@
     </div>
     <h1 id="titleQuestion">{{$question['question']}}</h1>
     @if($data['type'] === "draganddrop")
-        <h2 class="subtitle">Use arrow keys to move the cards to the corresponding zone</h2>
+        <h2 class="subtitle">{{__('Use arrow keys to move the cards to the corresponding zone')}}</h2>
     @endif
 </header>
index 7f05bc87ed475c2966cf21caad12ba1f2e928eac..1f62d8d025a1ccb40ffbc1c5a2c71e5391f97250 100644 (file)
@@ -19,7 +19,7 @@
                     </div>
                 </div>
                 <div class="score-text">
-                    <h1>Congratulation!</h1>
+                    <h1>{{__('Congratulation!')}}</h1>
                     <div class="subtitle">
                         <p class="word">You have completed the quiz</p><br/>
                         <p class="word">with <span id="score-text"></span>
                         </p>
                     </div>
                     @if($data->restart_button)
-                        <div class="restart-sentence-mobile">Want to improve your score?</div>
+                        <div class="restart-sentence-mobile">{{__('Want to improve your score?')}}</div>
                         <a class="btn secondary restart restart-mobile">
                             <span data-icon="reset"></span>
-                            Restart
+                            {{__('Restart')}}
                         </a>
                     @endif
                 </div>
             </div>
             <footer>
                 @if($data->restart_button)
-                    <div class="restart-sentence">Want to improve your score?</div>
+                    <div class="restart-sentence">{{__('Want to improve your score?')}}</div>
                 @endif
                 <div class="controls">
                     @if($data->restart_button)
                         <a class="btn secondary restart" aria-keyshortcuts="r">
-                            Restart
+                            {{__('Restart')}}
                             <span class="access">R</span>
                         </a>
                     @endif
                     <a class="btn secondary toggle-answers-review">
                         <span data-icon=""></span>
-                        Review answers
+                        {{__('Review answers')}}
                     </a>
                     <a class="btn primary action">
-                        Leave
-                        <span class="access space">space</span>
+                        {{__('Leave')}}
+                        <span class="access space">{{__('space')}}</span>
                     </a>
                 </div>
             </footer>
         </div>
         <div class="score-answers-review_container">
             <div class="score-answers-review">
-                <h2>Answers review<span class="toggle-answers-review" id="close-answers" data-icon="wrong"></span></h2>
-                <p class="subtitle">Review your answers before you go</p>
+                <h2>{{__('Answers review')}}<span class="toggle-answers-review" id="close-answers" data-icon="wrong"></span></h2>
+                <p class="subtitle">{{__('Review your answers before you go')}}</p>
                 <ul id="answers-list">
                     @verbatim
                         <script id="template-answers-review" type="text/x-handlebars-template">
index a96019753341a233ddc51f1092f36de9e5cc66eb..825731edf6d0414e1b66d744f79f649ef436920b 100644 (file)
@@ -17,7 +17,7 @@
     @include('header_question', ['data' => $data, 'max' => $max, 'position' => $position])
     <div class="screen question-draganddrop">
         <div class="controls left">
-            <p>Move left</p>
+            <p>{{__('Move left')}}</p>
             <button class="access"><span data-icon="arrow"></span></button>
         </div>
         <ul class="list">
@@ -28,7 +28,7 @@
             @endforeach
         </ul>
         <div class="controls right">
-            <p>Move right</p>
+            <p>{{__('Move right')}}</p>
             <button class="access"><span data-icon="arrow"></span></button>
         </div>
     </div>
@@ -46,5 +46,5 @@
             </form>
         </div>
     </div>
-    @include('footer', ['data' => $data, 'reset' => true, 'text' => 'Validate answer', 'info' => true])
+    @include('footer', ['data' => $data, 'reset' => true, 'text' => __('Validate answer'), 'info' => true])
 </div>