Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Mar 17, 2024
1 parent 45d3489 commit b5d8a93
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _locales/de/jacdac-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"jacdac.BootloaderError.PacketTooSmall|block": "Paket zu klein",
"jacdac.BridgeReg.Enabled": "Lese-Schreib-Bool (uint8_t).",
"jacdac.Client.isConnected|block": "%client verbunden",
"jacdac.Client.onConnectionChanged|block": "bei %client $state",
"jacdac.Client.onConnectionChanged|block": "wenn %client $state",
"jacdac.ClientConnectionState.Connected|block": "verbunden",
"jacdac.ClientConnectionState.Disconnected|block": "getrennt",
"jacdac.ControlAnnounceFlags.IsClient|block": "ist Client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"jacdac.AccelerometerReg.ForcesError": "Nur-Lesen g u12.",
"jacdac.AccelerometerReg.MaxForce": "Schreib-Lesen g u12.",
"jacdac.AccelerometerReg.MaxForcesSupported": "Konstante.",
"modules.AccelerometerClient.onEvent|block": "bei %accelerometer %event",
"modules.AccelerometerClient.onEvent|block": "wenn %accelerometer %event",
"modules.AccelerometerClient.x|block": "%accelerometer x (g)",
"modules.AccelerometerClient.y|block": "%accelerometer y (g)",
"modules.AccelerometerClient.z|block": "%accelerometer z (g)",
Expand Down
2 changes: 1 addition & 1 deletion button/_locales/de/jacdac-button-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"jacdac.ButtonReg.Pressed": "Nur-Lesen bool (uint8_t).",
"jacdac.ButtonReg.Pressure": "Nur-Lesen Verhältnis u0.",
"modules.ButtonClient.holdDuration|block": "%button Haltezeit (ms)",
"modules.ButtonClient.onEvent|block": "bei %button %event",
"modules.ButtonClient.onEvent|block": "wenn %button %event",
"modules.ButtonClient.pressed|block": "%button gedrückt",
"modules.button1|block": "knopf1",
"modules.button2|block": "knopf2",
Expand Down
5 changes: 4 additions & 1 deletion genaisrc/loc-strings.genai.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ and should be translated following these rules:

// language specific instructions
if (langCode === "de") {
$`- Capitalize Pipe in translations.`
$`
- Capitalize Pipe in translations.
- Always translate "on ..." with "wenn ..."
`
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"jacdac.MagneticFieldLevelVariant.DigitalNS|block": "digital ns",
"jacdac.MagneticFieldLevelVariant.DigitalN|block": "digital n",
"jacdac.MagneticFieldLevelVariant.DigitalS|block": "digital s",
"modules.MagneticFieldLevelClient.onEvent|block": "bei %magneticfieldlevel %event",
"modules.MagneticFieldLevelClient.onStrengthChangedBy|block": "bei %magneticfieldlevel Stärkeänderung um %threshold (\\%)",
"modules.MagneticFieldLevelClient.onEvent|block": "wenn %magneticfieldlevel %event",
"modules.MagneticFieldLevelClient.onStrengthChangedBy|block": "wenn %magneticfieldlevel Stärkeänderung um %threshold (\\%)",
"modules.MagneticFieldLevelClient.strength|block": "%magneticfieldlevel Stärke (\\%)",
"modules.magneticFieldLevel1|block": "magnetfeldstärke1",
"modules.magneticFieldLevel2|block": "magnetfeldstärke2",
Expand Down
2 changes: 1 addition & 1 deletion model-runner/_locales/de/jacdac-model-runner-strings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"jacdac.ModelRunnerClient.onDetection|block": "bei %modelRunner ML Klasse %classId erkannt",
"jacdac.ModelRunnerClient.onDetection|block": "wenn %modelRunner ML Klasse %classId erkannt",
"jacdac.ModelRunnerCmd.Predict": "Bericht SetModel.",
"jacdac.ModelRunnerCmd.SetModel": "Argument: model_size B uint32_t.",
"jacdac.ModelRunnerModelFormat.EdgeImpulseCompiled|block": "edge impulse kompiliert",
Expand Down
2 changes: 1 addition & 1 deletion motion/_locales/de/jacdac-motion-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"jacdac.MotionReg.Variant": "Konstante Variante (uint8_t).",
"jacdac.MotionVariant.PIR|block": "pir",
"modules.MotionClient.moving|block": "%motion bewegt sich",
"modules.MotionClient.onEvent|block": "bei %motion %event",
"modules.MotionClient.onEvent|block": "wenn %motion %event",
"modules.motion1|block": "motion1",
"modules|block": "module",
"{id:category}Jacdac": "Jacdac",
Expand Down
2 changes: 1 addition & 1 deletion sat-nav/_locales/de/jacdac-sat-nav-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"modules.SatNavClient.enabled|block": "%satelittenavigationsystem aktiviert",
"modules.SatNavClient.latitude|block": "%satelittenavigationsystem Breitengrad (lat)",
"modules.SatNavClient.longitude|block": "%satelittenavigationsystem Längengrad (lon)",
"modules.SatNavClient.onEvent|block": "bei %satelittenavigationsystem %event",
"modules.SatNavClient.onEvent|block": "wenn %satelittenavigationsystem %event",
"modules.SatNavClient.setEnabled|block": "setze %satelittenavigationsystem %value=toggleOnOff",
"modules.SatNavClient.timestamp|block": "%satelittenavigationsystem Zeitstempel (ms)",
"modules.satNav1|block": "sat nav1",
Expand Down
4 changes: 2 additions & 2 deletions sound-level/_locales/de/jacdac-sound-level-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"jacdac.SoundLevelReg.QuietThreshold": "Lese-Schreib-Verhältnis u0.",
"jacdac.SoundLevelReg.SoundLevel": "Nur-Lesen-Verhältnis u0.",
"modules.SoundLevelClient.enabled|block": "%soundlevel aktiviert",
"modules.SoundLevelClient.onEvent|block": "bei %soundlevel %event",
"modules.SoundLevelClient.onSoundLevelChangedBy|block": "bei %soundlevel Schallpegeländerung um %threshold (\\%)",
"modules.SoundLevelClient.onEvent|block": "wenn %soundlevel %event",
"modules.SoundLevelClient.onSoundLevelChangedBy|block": "wenn %soundlevel Schallpegeländerung um %threshold (\\%)",
"modules.SoundLevelClient.setEnabled|block": "setze %soundlevel %value=toggleOnOff",
"modules.SoundLevelClient.soundLevel|block": "%soundlevel Schallpegel (\\%)",
"modules.soundLevel1|block": "schallpegel1",
Expand Down
2 changes: 1 addition & 1 deletion switch/_locales/de/jacdac-switch-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"jacdac.SwitchVariant.Tilt|block": "Neigung",
"jacdac.SwitchVariant.Toggle|block": "Umschalter",
"modules.SwitchClient.active|block": "%switch aktiv",
"modules.SwitchClient.onEvent|block": "bei %switch %event",
"modules.SwitchClient.onEvent|block": "wenn %switch %event",
"modules.switch_1|block": "Schalter1",
"modules.switch_2|block": "Schalter2",
"modules|block": "Module",
Expand Down

0 comments on commit b5d8a93

Please sign in to comment.