Skip to content

Commit

Permalink
Disable plural option for indefinite pronouns (DE)
Browse files Browse the repository at this point in the history
also for scribe-org#303

Causes a small graphical bug when switching from the indefinite pronouns to the definite pronouns
  • Loading branch information
lucastronova committed May 21, 2023
1 parent 0167d9f commit 7080429
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions Keyboards/KeyboardsBase/KeyboardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,13 @@ class KeyboardViewController: UIInputViewController {

for btn in get2x2FormDisplayButtons() {
activateBtn(btn: btn)
btn.isEnabled = true
}

if controllerLanguage == "German"
&& [.accusativeIndefinite, .dativeIndefinite, .genitiveIndefinite].contains(deCaseDeclensionState) {
deactivateBtn(btn: formKeyBR)
formKeyBR.isEnabled = false
}

if DeviceType.isPad {
Expand Down
6 changes: 3 additions & 3 deletions Keyboards/LanguageKeyboards/German/DECommandVariables.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func deSetCaseDeclensions() {
formTopLeft = "einen"
formTopRight = "eine"
formBottomLeft = "ein"
formBottomRight = "-"
formBottomRight = ""
case .accusativePersonal:
formFPS = "mich"
formSPS = "dich/Sie"
Expand All @@ -271,7 +271,7 @@ func deSetCaseDeclensions() {
formTopLeft = "einem"
formTopRight = "einer"
formBottomLeft = "einem"
formBottomRight = "-"
formBottomRight = ""
case .dativePersonal:
formFPS = "mir"
formSPS = "dir/Ihnen"
Expand All @@ -293,7 +293,7 @@ func deSetCaseDeclensions() {
formTopLeft = "eines"
formTopRight = "einer"
formBottomLeft = "eines"
formBottomRight = "-"
formBottomRight = ""
case .genitivePersonal:
formFPS = "meiner"
formSPS = "deiner/Ihrer"
Expand Down

0 comments on commit 7080429

Please sign in to comment.