Skip to content

Commit

Permalink
Updated French translations, English strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-inksmith authored and arrdoubleyou committed Oct 26, 2022
1 parent d57fa9d commit 153b9b8
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 90 deletions.
17 changes: 0 additions & 17 deletions _locales/cak-jsdoc-strings.json

This file was deleted.

18 changes: 18 additions & 0 deletions _locales/climate-action-kit-land-jsdoc-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"motor.drive": "Control both wheels in one function.\nSpeeds range from -100 to 100.\nNegative speeds go backwards, positive go forwards.",
"motor.stop": "Stop the motors.",
"motor.turnLeft": "Turns the left motor at a specified speed.",
"motor.turnRight": "Turns the right motor at a specified speed.",
"pump.start": "Start the pump.",
"pump.startDuration": "Set a pump for a specified time at a specified speed.",
"pump.stop": "Stop the pump.",
"servos.motorPinPower": "Use a motor pin for power. The motor pins provide 5v, while the lightning bolt pins provide 3.3v",
"servos.resetServos": "Move specified servo back to home position.",
"servos.setServoPosition": "Move specified servo to the selected position.",
"servos.turnServo": "Move specified servo to the given position in degrees. \n0 is home, -90, 90 are the limits backward and forward.",
"soil.displayMoisture": "Displays the read moisture level on a vertical bar graph up to full scale.",
"soil.getMoisture": "Returns the value of the moisture sensor at a specific pin.",
"soil.ifMoisture": "Returns a boolean value based on if the moisture sensor at a specific pin is in a specified range of moisture.",
"touch.getTap": "Returns True only once per sensor touch. The sensor must be released before it will return true again.",
"touch.getTouch": "Returns the value of the touch sensor at a specific pin."
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"Mlevel.WET|block": "Wet",
"Motor.LEFT|block": "left",
"Motor.RIGHT|block": "right",
"MotorDirection.FORWARD|block": "forward",
"MotorDirection.REVERSE|block": "reverse",
"MotorPower.OFF|block": "off",
"MotorPower.ON|block": "on",
"Position.DOWN|block": "down",
Expand All @@ -17,7 +15,6 @@
"Pump.LEFT|block": "left",
"Pump.RIGHT|block": "right",
"motor.drive|block": "drive |left: %leftWheelSpeed|right: %rightWheelSpeed",
"motor.setPowers|block": "turn motors |power: %power",
"motor.stop|block": "stop motors",
"motor.turnLeft|block": "turn left motor at |speed: %speed",
"motor.turnRight|block": "turn right motor at |speed: %speed",
Expand All @@ -26,20 +23,26 @@
"pump.start|block": "start %pump pump at speed %speed",
"pump.stop|block": "stop %pump pump",
"pump|block": "pump",
"servos.MotorPin.Left|block": "left",
"servos.MotorPin.Right|block": "right",
"servos.Power.Off|block": "off",
"servos.Power.On|block": "on",
"servos.motorPinPower|block": "turn %side motor '+' pin %state",
"servos.resetServos|block": "reset servo at %pin",
"servos.setServoPosition|block": "set servo at %pin to |position: %position",
"servos.turnServo|block": "turn servo at %pin to |degrees: %degrees",
"servos|block": "servos",
"soil.displayMoisture|block": "display moisture level at %pin",
"soil.getMoisture|block": "moisture level at pin $pin",
"soil.ifMoisture|block": "on moisture level at $pin is below $mlevel",
"soil.ifMoisture|block": "moisture level at pin $pin is %Mlevel",
"soil|block": "soil",
"touch.getTap|block": "on tap at $pin",
"touch.getTouch|block": "on touch at $pin",
"touch|block": "touch",
"{id:category}Cak": "Cak",
"{id:category}CakLand": "CAK:Land",
"{id:category}Motor": "Motor",
"{id:category}Pump": "Pump",
"{id:category}Servos": "Servos",
"{id:category}Soil": "Soil",
"{id:category}Touch": "Touch"
}
}
17 changes: 0 additions & 17 deletions _locales/fr/cak-jsdoc-strings.json

This file was deleted.

45 changes: 0 additions & 45 deletions _locales/fr/cak-strings.json

This file was deleted.

18 changes: 18 additions & 0 deletions _locales/fr/climate-action-kit-land-jsdoc-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"motor.drive": "Contrôler les deux roues à l’aide d’une fonction.\r\nVitesses se situent entre -100 et 100.\r\n Vitesses négatives vont vers l’arrière, positives vont vers l’avant.",
"motor.stop": "Arrêter les moteurs.",
"motor.turnLeft": "Fait tourner le moteur gauche à une vitesse spécifiée.",
"motor.turnRight": "Fait tourner le moteur droit à une vitesse spécifiée.",
"pump.start": "Faire fonctionner la pompe.",
"pump.startDuration": " Faire fonctionner une pompe pour une durée spécifiée à une vitesse spécifiée.",
"pump.stop": "Arrêter la pompe.",
"servos.motorPinPower": "Utilisez une broche moteur comme source l'alimentation. Les broches moteurs fournissent 5v, tandis que les broches foudre fournissent 3.3v.",
"servos.resetServos": "Déplacer le servo spécifié à la position de départ.",
"servos.setServoPosition": "Déplacer le servo spécifié à la position sélectionnée.",
"servos.turnServo": "Déplacer le servo spécifié à la position donnée en degrés. \r\n0 est la position de départ, -90, 90 sont les limites arrière/avant.",
"soil.displayMoisture": "Affiche le taux d’humidité mesuré dans un graphique à barres verticales à grande échelle.",
"soil.getMoisture": "Renvoie la valeur du capteur d’humidité à une broche spécifique.",
"soil.ifMoisture": "Exécute une fonction spécifique si le taux d’humidité est au-dessous d’un taux d’humidité sélectionné.",
"touch.getTap": "Renvoie « True » une seule fois par contact du capteur. Le capteur tactile doit être relâché avant de renvoie « True » à nouveau.",
"touch.getTouch": "Renvoie la valeur du capteur tactile à une broche spécifique."
}
48 changes: 48 additions & 0 deletions _locales/fr/climate-action-kit-land-strings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"Mlevel.DRY|block": "Sec",
"Mlevel.VERY_DRY|block": "Très sec",
"Mlevel.VERY_WET|block": "Très humide",
"Mlevel.WET|block": "Humide",
"Motor.LEFT|block": "gauche",
"Motor.RIGHT|block": "droite",
"MotorPower.OFF|block": "arrêt",
"MotorPower.ON|block": "marche",
"Position.DOWN|block": "bas",
"Position.HALF_DOWN|block": "mi-bas",
"Position.HALF_UP|block": "mi-haut",
"Position.MIDDLE|block": "milieu",
"Position.UP|block": "haut",
"Pump.LEFT|block": "gauche",
"Pump.RIGHT|block": "droite",
"motor.drive|block": "conduire |gauche: %leftWheelSpeed|droite: %rightWheelSpeed",
"motor.stop|block": "arrêter les moteurs",
"motor.turnLeft|block": "faire tourner le moteur gauche à |la vitesse: %speed",
"motor.turnRight|block": "faire tourner le moteur droit à |la vitesse: %speed",
"motor|block": "moteur",
"pump.startDuration|block": "faire fonctionner %pump la pompe à la vitesse %speed durant %duration secondes",
"pump.start|block": "faire fonctionner %pump la pompe à la vitesse %speed",
"pump.stop|block": "arrêter %pump la pompe",
"pump|block": "pompe",
"servos.MotorPin.Left|block": "gauche",
"servos.MotorPin.Right|block": "droite",
"servos.Power.Off|block": "éteindre",
"servos.Power.On|block": "allumer",
"servos.motorPinPower|block": "%state la broche du moteur « + » %side",
"servos.resetServos|block": "réinitialiser servo à %pin",
"servos.setServoPosition|block": "régler servo à %pin en |position: %position",
"servos.turnServo|block": "faire tourner servo à %pin à |degrés: %degrees",
"servos|block": "servos",
"soil.displayMoisture|block": "afficher taux d’humidité à %pin",
"soil.getMoisture|block": "taux d’humidité à la broche $pin",
"soil.ifMoisture|block": "lorsque le taux d’humidité à $pin est au-dessous de %Mlevel",
"soil|block": "terre",
"touch.getTap|block": "lorsque $pin est tapée",
"touch.getTouch|block": "lorsque $pin est touchée",
"touch|block": "toucher",
"{id:category}CakLand": "TAC:Terre",
"{id:category}Motor": "Moteur",
"{id:category}Pump": "Pompe",
"{id:category}Servos": "Servos",
"{id:category}Soil": "Terre",
"{id:category}Touch": "Toucher"
}
10 changes: 5 additions & 5 deletions pxt.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "climate-action-kit-land",
"version": "2.0.3",
"version": "2.1.1",
"description": "Climate Action Kit: Land",
"license": "MIT",
"dependencies": {
Expand All @@ -14,10 +14,10 @@
"touch.ts",
"motor.ts",
"soil.ts",
"_locales/fr/cak-jsdoc-strings.json",
"_locales/es/cak-jsdoc-strings.json",
"_locales/es/cak-strings.json",
"_locales/fr/cak-strings.json"
"_locales/fr/climate-action-kit-land-jsdoc-strings.json",
"_locales/es/climate-action-kit-land-jsdoc-strings.json",
"_locales/es/climate-action-kit-land-strings.json",
"_locales/fr/climate-action-kit-land-strings.json"
],
"testFiles": [
"test.ts"
Expand Down

0 comments on commit 153b9b8

Please sign in to comment.