Skip to content

Commit

Permalink
add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang-tang committed Sep 10, 2024
1 parent 556a9bd commit fb931cd
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 21 deletions.
36 changes: 36 additions & 0 deletions _locales/cs/maqueenPlusV2-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,42 @@
"maqueenPlusV2.NeoPixelColors.Purple|block":"purpurovou",
"maqueenPlusV2.NeoPixelColors.White|block":"bílou",
"maqueenPlusV2.NeoPixelColors.Black|block":"černou",
"maqueenPlusV2.systemInit|block": "Inicializace systému",
"maqueenPlusV2.setPatrolSpeed|block": "Nastavení sledování čáry Rychlost %speed=PatrolSpeed_conv",
"maqueenPlusV2.setMotorType|block": "Typ motoru %type",
"maqueenPlusV2.setIntersectionRunMode|block": "Na křižovatkách %mode",
"maqueenPlusV2.setTRordRunMode|block": "Na T-křižovatce %mode",
"maqueenPlusV2.setLeftOrStraightRunMode|block": "Na levé odbočce a přímé křižovatce %mode",
"maqueenPlusV2.setRightOrStraightRunMode|block": "Na pravé odbočce a přímé křižovatce %mode",
"maqueenPlusV2.patrolling|block": "Sledování čáry %patrol",
"maqueenPlusV2.intersectionDetecting|block": "Detekce křižovatky",
"maqueenPlusV2.readLightIntensity|block": "Čtení hodnot světla %type",
"maqueenPlusV2.pidControlDistance|block": "PID kontrola vzdálenosti %dir Rychlost %speed=PatrolSpeed_conv vzdálenost %distance cm",
"maqueenPlusV2.pidControlAngle|block": "PID kontrola úhlu Rychlost %speed=PatrolSpeed_conv úhlu %angle °",
"maqueenPlusV2.pidControlStop|block": "Zastavení PID kontroly",
"maqueenPlusV2.readRealTimeSpeed|block": "Čtení aktuální rychlosti %type",
"maqueenPlusV2.setRgblLed|block": "RGB světla auta %type %rgb",
"maqueenPlusV2.MotorType.Motor133|block": "133转",
"maqueenPlusV2.MotorType.Motor266|block": "266转",
"maqueenPlusV2.Intersection.Straight|block": "Jet rovně",
"maqueenPlusV2.Intersection.Left|block": "Odbočit vlevo",
"maqueenPlusV2.Intersection.Right|block": "Odbočit vpravo",
"maqueenPlusV2.Intersection.Stop|block": "Zastavit",
"maqueenPlusV2.Trord.Left|block": "Odbočit vlevo",
"maqueenPlusV2.Trord.Right|block": "Odbočit vpravo",
"maqueenPlusV2.Trord.Stop|block": "Zastavit",
"maqueenPlusV2.LeftOrStraight.Straight|block": "Jet rovně",
"maqueenPlusV2.LeftOrStraight.Left|block": "Odbočit vlevo",
"maqueenPlusV2.LeftOrStraight.Stop|block": "Zastavit",
"maqueenPlusV2.RightOrStraight.Straight|block": "Jet rovně",
"maqueenPlusV2.RightOrStraight.Right|block": "Odbočit vpravo",
"maqueenPlusV2.RightOrStraight.Stop|block": "Zastavit",
"maqueenPlusV2.Patrolling.ON|block": "Zapnout",
"maqueenPlusV2.Patrolling.OFF|block": "Zastavit",
"maqueenPlusV2.DirectionType.Left|block": "vlevo",
"maqueenPlusV2.DirectionType.Right|block": "vpravo",
"maqueenPlusV2.SpeedDirection.SpeedCW|block": "Jízda vpřed",
"maqueenPlusV2.SpeedDirection.SpeedCCW|block": "Couvání",
"maqueenPlusV2|block":"Maqueen Plus v2",
"{id:category}maqueenPlusV2": "Maqueen Plus v2",
"IR.IR_read|block": "hodnota z infra přijímače",
Expand Down
36 changes: 36 additions & 0 deletions _locales/fr/maqueenPlusV2-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,42 @@
"maqueenPlusV2.NeoPixelColors.Violet|block":"violet",
"maqueenPlusV2.NeoPixelColors.White|block":"blanc",
"maqueenPlusV2.NeoPixelColors.Yellow|block":"jaune",
"maqueenPlusV2.systemInit|block": "Initialisation du système",
"maqueenPlusV2.setPatrolSpeed|block": "Paramètres de suivi de ligne Vitesse %speed=PatrolSpeed_conv",
"maqueenPlusV2.setMotorType|block": "Type de moteur %type",
"maqueenPlusV2.setIntersectionRunMode|block": "Aux carrefours %mode",
"maqueenPlusV2.setTRordRunMode|block": "Au croisement en T %mode",
"maqueenPlusV2.setLeftOrStraightRunMode|block": "À l'intersection gauche et tout droit %mode",
"maqueenPlusV2.setRightOrStraightRunMode|block": "À l'intersection droite et tout droit %mode",
"maqueenPlusV2.patrolling|block": "Suivi de ligne %patrol",
"maqueenPlusV2.intersectionDetecting|block": "Détection d'intersection",
"maqueenPlusV2.readLightIntensity|block": "Lire les valeurs de lumière %type",
"maqueenPlusV2.pidControlDistance|block": "Contrôle de distance PID %dir %speed=PatrolSpeed_conv %distance cm",
"maqueenPlusV2.pidControlAngle|block": "Contrôle d'angle PID %speed=PatrolSpeed_conv %angle °",
"maqueenPlusV2.pidControlStop|block": "Arrêt du contrôle PID",
"maqueenPlusV2.readRealTimeSpeed|block": "Lire la vitesse en temps réel %type",
"maqueenPlusV2.setRgblLed|block": "Feux RGB de la voiture %type couleur %rgb",
"maqueenPlusV2.MotorType.Motor133|block": "133转",
"maqueenPlusV2.MotorType.Motor266|block": "266转",
"maqueenPlusV2.Intersection.Straight|block": "Avancer tout droit",
"maqueenPlusV2.Intersection.Left|block": "Tourner à gauche",
"maqueenPlusV2.Intersection.Right|block": "Tourner à droite",
"maqueenPlusV2.Intersection.Stop|block": "Arrêter",
"maqueenPlusV2.Trord.Left|block": "Tourner à gauche",
"maqueenPlusV2.Trord.Right|block": "Tourner à droite",
"maqueenPlusV2.Trord.Stop|block": "Arrêter",
"maqueenPlusV2.LeftOrStraight.Straight|block": "Avancer tout droit",
"maqueenPlusV2.LeftOrStraight.Left|block": "Tourner à gauche",
"maqueenPlusV2.LeftOrStraight.Stop|block": "Arrêter",
"maqueenPlusV2.RightOrStraight.Straight|block": "Avancer tout droit",
"maqueenPlusV2.RightOrStraight.Right|block": "Tourner à droite",
"maqueenPlusV2.RightOrStraight.Stop|block": "Arrêter",
"maqueenPlusV2.Patrolling.ON|block": "Allumer",
"maqueenPlusV2.Patrolling.OFF|block": "Arrêter",
"maqueenPlusV2.DirectionType.Left|block": "gauche",
"maqueenPlusV2.DirectionType.Right|block": "droite",
"maqueenPlusV2.SpeedDirection.SpeedCW|block": "Avancer",
"maqueenPlusV2.SpeedDirection.SpeedCCW|block": "Reculer",
"{id:category}maqueenPlusV2":"DFRobotMaqueenPlusV2",
"{id:category}Ws2812b":"Ws2812b"
}
2 changes: 1 addition & 1 deletion _locales/zh-cn/maqueenPlusV2-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"maqueenPlusV2.Trord.Stop|block": "停止",
"maqueenPlusV2.LeftOrStraight.Straight|block": "直行",
"maqueenPlusV2.LeftOrStraight.Left|block": "左转",
"maqueenPlusV2.LeftOrStraight.Stop|block": "右转",
"maqueenPlusV2.LeftOrStraight.Stop|block": "停止",
"maqueenPlusV2.RightOrStraight.Straight|block": "直行",
"maqueenPlusV2.RightOrStraight.Right|block": "右转",
"maqueenPlusV2.RightOrStraight.Stop|block": "停止",
Expand Down
36 changes: 36 additions & 0 deletions _locales/zh-tw/maqueenPlusV2-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,42 @@
"maqueenPlusV2.NeoPixelColors.Purple|block": "",
"maqueenPlusV2.NeoPixelColors.White|block": "",
"maqueenPlusV2.NeoPixelColors.Black|block": "",
"maqueenPlusV2.systemInit|block": "系統初始化",
"maqueenPlusV2.setPatrolSpeed|block": "巡線設置 速度%speed=PatrolSpeed_conv",
"maqueenPlusV2.setMotorType|block": "電機類型 %type",
"maqueenPlusV2.setIntersectionRunMode|block": "十字路口時 %mode",
"maqueenPlusV2.setTRordRunMode|block": "T字路口時 %mode",
"maqueenPlusV2.setLeftOrStraightRunMode|block": "左轉及直行路口時 %mode",
"maqueenPlusV2.setRightOrStraightRunMode|block": "右轉及直行路口時 %mode",
"maqueenPlusV2.patrolling|block": "巡線 %patrol",
"maqueenPlusV2.intersectionDetecting|block": "路口檢測",
"maqueenPlusV2.readLightIntensity|block": "讀取光線值 %type",
"maqueenPlusV2.pidControlDistance|block": "PID距離控制 %dir 速度 %speed=PatrolSpeed_conv 距離 %distance cm",
"maqueenPlusV2.pidControlAngle|block": "PID角度控制 速度 %speed=PatrolSpeed_conv 角度 %angle °",
"maqueenPlusV2.pidControlStop|block": "PID控制停止",
"maqueenPlusV2.readRealTimeSpeed|block": "讀取實時速度 %type 轮",
"maqueenPlusV2.setRgblLed|block": "RGB車燈 %type 顏色 %rgb",
"maqueenPlusV2.MotorType.Motor133|block": "133转",
"maqueenPlusV2.MotorType.Motor266|block": "266转",
"maqueenPlusV2.Intersection.Straight|block": "直行",
"maqueenPlusV2.Intersection.Left|block": "左轉",
"maqueenPlusV2.Intersection.Right|block": "右轉",
"maqueenPlusV2.Intersection.Stop|block": "停止",
"maqueenPlusV2.Trord.Left|block": "左轉",
"maqueenPlusV2.Trord.Right|block": "右轉",
"maqueenPlusV2.Trord.Stop|block": "停止",
"maqueenPlusV2.LeftOrStraight.Straight|block": "直行",
"maqueenPlusV2.LeftOrStraight.Left|block": "左轉",
"maqueenPlusV2.LeftOrStraight.Stop|block": "停止",
"maqueenPlusV2.RightOrStraight.Straight|block": "直行",
"maqueenPlusV2.RightOrStraight.Right|block": "右轉",
"maqueenPlusV2.RightOrStraight.Stop|block": "停止",
"maqueenPlusV2.Patrolling.ON|block": "開啟",
"maqueenPlusV2.Patrolling.OFF|block": "停止",
"maqueenPlusV2.DirectionType.Left|block": "",
"maqueenPlusV2.DirectionType.Right|block": "",
"maqueenPlusV2.SpeedDirection.SpeedCW|block": "前進",
"maqueenPlusV2.SpeedDirection.SpeedCCW|block": "後退",
"maqueenPlusV2|block": "麥昆Plus V2",
"{id:category}maqueenPlusV2": "麥昆Plus V2"
}
41 changes: 21 additions & 20 deletions maqueenPlusV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ namespace maqueenPlusV2 {
* ...
*/

//% block="system initialization module"
//% block="System Initialization"
//% weight=25
//% group="V3"
//% advanced=true
Expand All @@ -697,7 +697,7 @@ namespace maqueenPlusV2 {
* @param speed to speed ,eg: PatrolSpeed.Speed1
*/

//% block="set up a patrol route speed %speed=PatrolSpeed_conv"
//% block="Line Following Settings Speed %speed=PatrolSpeed_conv"
//% weight=24
//% group="V3"
//% advanced=true
Expand All @@ -714,6 +714,7 @@ namespace maqueenPlusV2 {
//% weight=23
//% group="V3"
//% advanced=true
//% deprecated=true
export function setMotorType(type: MotorType) {

}
Expand All @@ -723,7 +724,7 @@ namespace maqueenPlusV2 {
* @param mode to mode ,eg: Intersection.Straight
*/

//% block="set up intersection %mode"
//% block="At Crossroads %mode"
//% weight=22
//% group="V3"
//% advanced=true
Expand All @@ -736,7 +737,7 @@ namespace maqueenPlusV2 {
* @param mode to mode ,eg: Trord.Left
*/

//% block="set up Trord %mode"
//% block="At T-junction %mode"
//% weight=21
//% group="V3"
//% advanced=true
Expand All @@ -749,7 +750,7 @@ namespace maqueenPlusV2 {
* @param mode to mode ,eg: LeftOrStraight.Straight
*/

//% block="set up left or straight %mode"
//% block="At Left Turn and Straight Intersection %mode"
//% weight=20
//% group="V3"
//% advanced=true
Expand All @@ -762,7 +763,7 @@ namespace maqueenPlusV2 {
* @param mode to mode ,eg: RightOrStraight.Straight
*/

//% block="set up right or straight %mode"
//% block="At Right Turn and Straight Intersection %mode"
//% weight=19
//% group="V3"
//% advanced=true
Expand All @@ -775,7 +776,7 @@ namespace maqueenPlusV2 {
* @param patrol to patrol ,eg: Patrolling.ON
*/

//% block="patrolling %patrol"
//% block="Line patrolling %patrol"
//% weight=18
//% group="V3"
//% advanced=true
Expand All @@ -787,25 +788,25 @@ namespace maqueenPlusV2 {
* ...
*/

//% block="intersection detecting"
//% block="Intersection Detection"
//% weight=17
//% group="V3"
//% advanced=true
export function intersectionDetecting() {

export function intersectionDetecting(): number {
return 0;
}

/**
* ...
* @param type to type ,eg: DirectionType.Left
*/

//% block="read light intensity %type"
//% block="Read Light Values %type"
//% weight=16
//% group="V3"
//% advanced=true
export function readLightIntensity(type: DirectionType) {

export function readLightIntensity(type: DirectionType): number {
return 0;
}

/**
Expand All @@ -815,7 +816,7 @@ namespace maqueenPlusV2 {
* @param distance to distance ,eg: 50
*/

//% block="PID distance control %dir speed %speed=PatrolSpeed_conv distance %distance cm"
//% block="PID Distance Control %dir speed %speed=PatrolSpeed_conv distance %distance cm"
//% weight=15
//% group="V3"
//% advanced=true
Expand All @@ -829,7 +830,7 @@ namespace maqueenPlusV2 {
* @param angle to angle ,eg: 90
*/

//% block="PID angle control speed %speed=PatrolSpeed_conv angle %angle"
//% block="PID Angle Control speed %speed=PatrolSpeed_conv angle %angle"
//% angle.min=-180 angle.max=180 angle.defl=90
//% weight=14
//% group="V3"
Expand All @@ -842,7 +843,7 @@ namespace maqueenPlusV2 {
* ...
*/

//% block="PID control stop"
//% block="PID Control Stop"
//% weight=13
//% group="V3"
//% advanced=true
Expand All @@ -855,12 +856,12 @@ namespace maqueenPlusV2 {
* @param type to type ,eg: DirectionType.Left
*/

//% block="read real time speed %type wheel"
//% block="Read Real-time Speed %type wheel"
//% weight=12
//% group="V3"
//% advanced=true
export function readRealTimeSpeed(type: DirectionType) {

export function readRealTimeSpeed(type: DirectionType): number {
return 0;
}

/**
Expand All @@ -869,7 +870,7 @@ namespace maqueenPlusV2 {
* @param rgb to rgb ,eg: NeoPixelColors.Red
*/

//% block="rgb led %type color %rgb"
//% block="RGB Car Lights %type color %rgb"
//% weight=11
//% group="V3"
//% advanced=true
Expand Down

0 comments on commit fb931cd

Please sign in to comment.