Commit 5ccdaf8a authored by Curtis Adam's avatar Curtis Adam

Add a pomodoro i18n translation

parent ad8f58cd
......@@ -426,6 +426,7 @@ $themes: (
$pomodoro_timer_arc_progress: map-get($map, "pomodoro_timer_arc_progress");
$pomodoro_timer_arc_break: map-get($map, "pomodoro_timer_arc_break");
$pomodoro_timer_text: map-get($map, "pomodoro_timer_text");
$pomodoro_timer_text_highlight: map-get($map, "pomodoro_timer_text_highlight");
//sweet alert 2 colors
$sweet_alert_2_title: map-get($map, "sweet_alert_2_title");
$sweet_alert_2_text: map-get($map, "sweet_alert_2_text");
......@@ -2532,6 +2533,10 @@ $themes: (
}
}
.pomodoroHighlight {
color: $pomodoro_timer_text_highlight !important;
}
//sweet alert 2
.swal2-popup {
background-color: $sweet_alert_2_modal_background !important;
......
......@@ -436,6 +436,7 @@
"pomodoro_timer_arc_progress":$thm_red,
"pomodoro_timer_arc_break":$thm_dark_blue,
"pomodoro_timer_text" :white,
"pomodoro_timer_text_highlight": $thm_orange,
//sweet alert 2 colors
"sweet_alert_2_title": black,
"sweet_alert_2_text": black,
......
......@@ -438,6 +438,7 @@
"pomodoro_timer_arc_progress":$thm_red,
"pomodoro_timer_arc_break":$thm_dark_blue,
"pomodoro_timer_text": white,
"pomodoro_timer_text_highlight": $thm_orange,
//sweet alert 2 colors
"sweet_alert_2_title": black,
"sweet_alert_2_text": black,
......
This diff is collapsed.
......@@ -33,57 +33,152 @@
"backButton": "Back",
"backToStartButton": "Back to the start page"
},
"pomodoro" : {
"Pluralpomodoro" : "pomodoros",
"clickClock" :"click clock to",
"start" : "start",
"startBig" : "Start",
"goal" : "Choose your goal",
"count" : "How many",
"make" : "will you do",
"settings" : "Settings",
"productivity" : "Stop the prouctivity train",
"reachedgoal" : "Hey, you've reached your goal of",
"momentum" : " You've built up some good momentum, are you sure you want to stop?",
"session": "are you sure you want to stop?",
"goodJob" : "Good Job!",
"success1" : "In the End you did ",
"success2" : "pomodoros, for a total of ",
"success3" : " minutes of work! You are awesome! Come back soon!",
"stop1" : "Press again to",
"stop2" : "stop",
"stopBig" : "stop",
"minutes" : "How many Minutes?",
"continue" : "Continue",
"break" : "Ready for break?",
"breakOver" : "End of the break?",
"breakRefresh" : "After a relaxing break, Let's start again",
"fastgoing": "Not so fast!",
"stillOpen1" : "You have to do ",
"stillOpen2" : "pomodoros",
"stillOpen3" : "Do you really want to quit?",
"stillOpen4" : "pomodoro",
"notDone": "You are not done yet!",
"notDone2": "You have not reached your goal of ",
"notDone3": " pomodoros units!",
"notDone4" : " pomodoro",
"learn" : "learn",
"break1" : "break",
"schoolBell" : "School Bell",
"learningSession" : "Learning session completed",
"cancelSession" : "Cancel learning session",
"SessionTime1": "You need",
"SessionTime2" : "to finish",
"hour" : " hour ",
"hours" : " hour",
"minute" : " minute",
"minutes2" : " minutes",
"isAnd": "and",
"onePomo" : "one",
"onePomo1" : "one",
"linkToPom" : "/learning#Pomodoro ",
"pomodoroEmoji" : "\uD83C\uDF45"
"pomodoro": {
"name": "Pomodoro",
"name_plural": "Pomodoros",
"timer": {
"instructions": {
"activate": "Pomodoro",
"deactivate": ""
}
},
"form": {
"time": {
"hour": "hour",
"hour_plural": "__count__ hours",
"minute": "minute",
"minute_plural": "__count__ minutes",
"and": " and "
},
"sounds": {
"title": "Sounds",
"break": "Pause",
"success": "Lerneinheit erfolgreich",
"abort": "Abgebrochen"
},
"link": "/learning#Pomodoro",
"tooltip": {
"link": "A 'Pomodoro' is a work / break cycle. Default: 25 mins work and 5 mins break. After 4 __pomodoro__: 15 mins break."
},
"user": {
"title": "Choose your goal!",
"count": "I want to do <span class=\"pomodoroHighlight\">__count__</span> <a href=\"__link__\" data-toggle=\"tooltip\" title=\"__tooltip__\" target=\"_blank\"> <b>__pomodoro__<i>🍅</i></b></a>!",
"totalTime": "Reserve the next __time__ for getting stuff done!",
"work": "Work for: <span class=\"pomodoroHighlight\">__minutes__</span> each pomodoro",
"break": "Relax for: <span class=\"pomodoroHighlight\">__minutes__</span> each pomodoro",
"settings": {
"title": "How many minutes?"
},
"button": {
"start": "Let's go!",
"settings": "Settings"
}
},
"bonus": {
"count": "Set the bonus to <span class=\"pomodoroHighlight\">__count__</span> <a href=\"__link__\" data-toggle=\"tooltip\" title=\"__tooltip__\" target=\"_blank\"> <b>__pomodoro__<i>🍅</i></b></a>!",
"totalTime": "Set the pomodoro Session to __time__ for getting stuff done!",
"work": "Work during Bonus-Pomodoro: <span class=\"pomodoroHighlight\">__minutes__</span>",
"break": "Break during Bonus-Pomodoro: <span class=\"pomodoroHighlight\">__minutes__</span>"
}
},
"sweetAlert": {
"user": {
"quit": {
"title": "Not so fast!",
"text": "You are still <span class=\"pomodoroHighlight\">__missingPomodoros__ __pomodoro__</span> short of your goal of <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span>! <br><br>Come on, you can do <span class=\"pomodoroHighlight\">__remainingMinutes__ more minutes</span> of work!",
"button": {
"cancel": "Stop.",
"confirm": "Continue!"
},
"confirm": {
"title": "You didn't make it.",
"text": "You couldn't complete the <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span> you planned on doing. Sometimes life gets in the way, we get it! See you back here later!",
"button": {
"confirm": "OK!"
}
}
},
"end": {
"title": "Stop the productivity train?",
"text": "Hey, you've reached your goal of <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span>! You've built up some good momentum, are you sure you want to stop?",
"button": {
"cancel": "Continue!",
"confirm": "Stop."
},
"confirm": {
"title": "Great job!",
"text": "In the end you did <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span>, for a total of <span class=\"pomodoroHighlight\"> __pomodoroTotal__ minutes</span> of work! You are awesome! Come back soon!",
"button": {
"confirm": "OK!"
}
}
},
"break": {
"start": {
"title": "Good job!",
"text": "You have completed <span class=\"pomodoroHighlight\"> __pomodoroTotal__ __pomodoro__</span> of work! Are you ready for a relaxing <span class=\"pomodoroHighlight\"> __pomodoroBreak__ minutes</span> of whatever the heck you feel like?",
"button": {
"confirm": "Yes, I can't wait!"
}
},
"end": {
"title": "Break's over!",
"text": "Hope that break left you feeling refreshed! Now it's time to get back to accomplishing your goals. Ready for <span class=\"pomodoroHighlight\"> __pomodoroLength__ more minutes</span> of work?",
"button": {
"confirm": "Let me at it!"
}
}
}
},
"bonus": {
"quit": {
"title": "Not so fast!",
"text": "You are still <span class=\"pomodoroHighlight\">__missingPomodoros__ __pomodoro__</span> short of your goal of <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span>! <br><br>Come on, you can do <span class=\"pomodoroHighlight\">__remainingMinutes__ more minutes</span> of work!",
"button": {
"cancel": "Stop.",
"confirm": "Continue!"
},
"confirm": {
"title": "You didn't make it.",
"text": "You couldn't complete the <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span> you planned on doing. Sometimes life gets in the way, we get it! See you back here later!",
"button": {
"confirm": "OK!"
}
}
},
"end": {
"title": "Stop the productivity train?",
"text": "Hey, you've reached your goal of <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span>! You've built up some good momentum, are you sure you want to stop?",
"button": {
"cancel": "Continue!",
"confirm": "Stop."
},
"confirm": {
"title": "Great job!",
"text": "In the end you did <span class=\"pomodoroHighlight\"> __pomodoroGoal__ __pomodoro__</span>, for a total of <span class=\"pomodoroHighlight\"> __pomodoroTotal__ minutes</span> of work! You are awesome! Come back soon!",
"button": {
"confirm": "OK!"
}
}
},
"break": {
"start": {
"title": "Good job!",
"text": "You have completed <span class=\"pomodoroHighlight\"> __pomodoroTotal__ __pomodoro__</span> of work! Are you ready for a relaxing <span class=\"pomodoroHighlight\"> __pomodoroBreak__ minutes</span> of whatever the heck you feel like?",
"button": {
"confirm": "Yes, I can't wait!"
}
},
"end": {
"title": "Break's over!",
"text": "Hope that break left you feeling refreshed! Now it's time to get back to accomplishing your goals. Ready for <span class=\"pomodoroHighlight\"> __pomodoroLength__ more minutes</span> of work?",
"button": {
"confirm": "Let me at it!"
}
}
}
}
}
},
"carousel-inner": {
"carousel-header-0": " Your digital flashcards",
......
This diff is collapsed.
......@@ -28,7 +28,7 @@
<path class="breakArc"/>
</svg>
{{#unless isActiveRoute regex='box|memo'}}
<h2 class="text-center pomodoroInstructions">Pomodoro</h2>
<h2 class="text-center pomodoroInstructions">{{_ "pomodoro.timer.instructions.activate"}}</h2>
{{/unless}}
<!--empty audio tag to make the sounds work on chrome for android-->
<audio id="chromeMobile" preload="auto">
......@@ -54,7 +54,7 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h3 class="modal-title" id="modalTitle">Choose your goal!</h3>
<h3 class="modal-title" id="modalTitle">{{_ "pomodoro.form.user.title"}}</h3>
</div>
<div class="modal-body">
<form id="input" autocomplete="off">
......@@ -65,10 +65,11 @@
</div>
<div class="modal-footer">
<button type="button" id="settingsBtn" class="btn btn-info btn-raised fa fa-gear hvr-bounce-in"
style="float:left;"> Settings
style="float:left;">
{{_ "pomodoro.form.user.button.settings"}}
</button>
<button type="button" id="startPom" class="btn btn-success btn-raised" data-dismiss="modal">Let's
go!
<button type="button" id="startPom" class="btn btn-success btn-raised" data-dismiss="modal">
{{_ "pomodoro.form.user.button.start"}}
</button>
</div>
</div>
......@@ -78,11 +79,7 @@
<template name="pomodoroTimerModalContent">
<div id="goalDiv" class="form-group row">
<label class="col-xs-12 control-label" for="pomNumSlider">I want to do <span id="pomodoroCount"></span>
<a href="/learning#Pomodoro" data-toggle="tooltip"
title='A "Pomodoro" is a work / break cycle. Default: 25 mins work and 5 mins break. After 4 pomodoros: 15 mins break.'
target="_blank">
<b>pomodoros<i>🍅</i></b></a>!</label>
<label class="col-xs-12 control-label" id="pomNumLabel" for="pomNumSlider"></label>
<input class="numSlider col-xs-12" type=range min=1 max=16 value=1 id="pomNumSlider" step=1>
<label id="workTime" class="col-xs-12 control-label"></label>
</div>
......@@ -90,38 +87,40 @@
style="{{#if isHiddenByDefault}}display: none;{{/if}}">
<div class="form-group row">
<label for="workSlider" class="col-xs-12 control-label" style="float:left;"><i class="fa fa-briefcase"></i>
Work for: <b><span id="workLength"></span> Minutes</b> each pomodoro</label>
<span id="workSliderLabel"></span>
</label>
<input class="numSlider col-xs-12" type="range" min="15" max="45" value="25" id="workSlider"
step="1">
</div>
<div class="form-group row">
<label for="breakSlider" class="col-xs-12 control-label" style="float:left;"><i class="fa fa-coffee"></i>
Relax for: <b><span id="breakLength"></span> Minutes</b> each pomodoro</label>
<span id="breakSliderLabel"></span>
</label>
<input class="numSlider col-xs-12" type="range" min="5" max="30" value="5" id="breakSlider"
step="1">
</div>
{{#unless isiOS}}
<div class="form-group row">
<label for="" class="control-label"><i class="fa fa-music"></i>
Sounds</label>
{{_ "pomodoro.form.sounds.title"}}</label>
</div>
<div class="form-group row">
<input type="checkbox" id="sound1" value="Clock" checked>
<label for="sound1" class="control-label">{{_ "pomodoro.schoolBell"}}</label><br>
<label for="sound1" class="control-label">{{_ "pomodoro.form.sounds.break"}}</label><br>
<audio id="bellPreview" style="width: 260px;" controls controlsList="nodownload noremoteplayback">
<source src="/audio/Schulgong.mp3" type="audio/mpeg">
</audio>
</div>
<div class="form-group row">
<input type="checkbox" id="sound2" value="Complete" checked>
<label for="sound2" class="control-label">{{_ "pomodoro.learningSession"}}</label><br>
<label for="sound2" class="control-label">{{_ "pomodoro.form.sounds.success"}}</label><br>
<audio id="successPreview" style="width: 260px" controls controlsList="nodownload noremoteplayback">
<source src="/audio/success.mp3" type="audio/mpeg">
</audio>
</div>
<div class="form-group row">
<input type="checkbox" id="sound3" value="Cancel" checked>
<label for="sound3" class="control-label">{{_ "pomodoro.cancelSession"}}</label><br>
<label for="sound3" class="control-label">{{_ "pomodoro.form.sounds.abort"}}</label><br>
<audio id="failurePreview" style="width: 260px" controls controlsList="nodownload noremoteplayback">
<source src="/audio/fail.mp3" type="audio/mpeg">
</audio>
......
......@@ -55,3 +55,6 @@
background-image: url('/img/pomodoro.png');
}
.pomodoroHighlight {
font-weight: bold;
}
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