@@ -24,7 +24,7 @@ let exerciseType = {
2424// add new exercises here:
2525const exerciseTypes = [ {
2626 "id" : "pushup" ,
27- "name" : "push ups",
27+ "name" : /*LANG*/ "Push- ups",
2828 "useYaxis" : true ,
2929 "useZaxis" : false ,
3030 "threshold" : 2500 ,
@@ -34,7 +34,7 @@ const exerciseTypes = [{
3434 } ,
3535 {
3636 "id" : "curl" ,
37- "name" : "curls ",
37+ "name" : /*LANG*/ "Curls ",
3838 "useYaxis" : true ,
3939 "useZaxis" : false ,
4040 "threshold" : 2500 ,
@@ -44,7 +44,7 @@ const exerciseTypes = [{
4444 } ,
4545 {
4646 "id" : "situp" ,
47- "name" : "sit ups",
47+ "name" : /*LANG*/ "Sit- ups",
4848 "useYaxis" : false ,
4949 "useZaxis" : true ,
5050 "threshold" : 3500 ,
@@ -88,7 +88,7 @@ function showMainMenu() {
8888 menu [ "--------" ] = {
8989 value : ""
9090 } ;
91- menu [ "Last:" ] = {
91+ menu [ /*LANG*/ "Last:" ] = {
9292 value : exerciseCounter + " " + exerciseType . name
9393 } ;
9494 }
@@ -189,10 +189,10 @@ function isValidExercise(slope, t) {
189189 if ( p1 > 0 && p2 < 0 ) {
190190 if ( lastZeroPassCameFromPositive == false ) {
191191 lastExerciseHalfCompletionTime = t ;
192- console . log ( t , exerciseName + " half complete..." ) ;
192+ console . log ( t , exerciseName + /*LANG*/ " half complete..." ) ;
193193
194194 layout . progress . label = "½" ;
195- layout . recording . label = "TRAINING" ;
195+ layout . recording . label = /*LANG*/ "TRAINING" ;
196196 g . clear ( ) ;
197197 layout . render ( ) ;
198198 }
@@ -204,7 +204,7 @@ function isValidExercise(slope, t) {
204204 if ( lastZeroPassCameFromPositive == true ) {
205205 const tDiffLastExercise = t - lastExerciseCompletionTime ;
206206 const tDiffStart = t - tStart ;
207- console . log ( t , exerciseName + " maybe complete?" , Math . round ( tDiffLastExercise ) , Math . round ( tDiffStart ) ) ;
207+ console . log ( t , exerciseName + /*LANG*/ " maybe complete?" , Math . round ( tDiffLastExercise ) , Math . round ( tDiffStart ) ) ;
208208
209209 // check minimal time between exercises:
210210 if ( ( lastExerciseCompletionTime <= 0 && tDiffStart >= thresholdMinTime ) || tDiffLastExercise >= thresholdMinTime ) {
@@ -222,34 +222,34 @@ function isValidExercise(slope, t) {
222222
223223 layout . count . label = exerciseCounter ;
224224 layout . progress . label = "" ;
225- layout . recording . label = "Good!" ;
225+ layout . recording . label = /*LANG*/ "Good!" ;
226226
227227 g . clear ( ) ;
228228 layout . render ( ) ;
229229
230230 if ( settings . buzz )
231231 Bangle . buzz ( 200 , 0.5 ) ;
232232 } else {
233- console . log ( t , exerciseName + " too quick for duration time threshold!" ) ; // thresholdMinDurationTime
233+ console . log ( t , exerciseName + /*LANG*/ " too quick for duration time threshold!" ) ; // thresholdMinDurationTime
234234 lastExerciseCompletionTime = t ;
235235
236- layout . recording . label = "Go slower!" ;
236+ layout . recording . label = /*LANG*/ "Go slower!" ;
237237 g . clear ( ) ;
238238 layout . render ( ) ;
239239 }
240240 } else {
241- console . log ( t , exerciseName + " top slow for time threshold!" ) ; // thresholdMaxTime
241+ console . log ( t , exerciseName + /*LANG*/ " top slow for time threshold!" ) ; // thresholdMaxTime
242242 lastExerciseCompletionTime = t ;
243243
244- layout . recording . label = "Go faster!" ;
244+ layout . recording . label = /*LANG*/ "Go faster!" ;
245245 g . clear ( ) ;
246246 layout . render ( ) ;
247247 }
248248 } else {
249- console . log ( t , exerciseName + " too quick for time threshold!" ) ; // thresholdMinTime
249+ console . log ( t , exerciseName + /*LANG*/ " too quick for time threshold!" ) ; // thresholdMinTime
250250 lastExerciseCompletionTime = t ;
251251
252- layout . recording . label = "Go slower!" ;
252+ layout . recording . label = /*LANG*/ "Go slower!" ;
253253 g . clear ( ) ;
254254 layout . render ( ) ;
255255 }
@@ -337,15 +337,15 @@ function startTraining() {
337337 type : "txt" ,
338338 id : "recording" ,
339339 font : "6x8:2" ,
340- label : "TRAINING" ,
340+ label : /*LANG*/ "TRAINING" ,
341341 bgCol : "#f00" ,
342342 pad : 5 ,
343343 fillx : 1
344344 } ,
345345 ]
346346 } , {
347347 btns : [ {
348- label : "STOP" ,
348+ label : /*LANG*/ "STOP" ,
349349 cb : ( ) => {
350350 stopTraining ( ) ;
351351 }
0 commit comments