Skip to content

Commit

Permalink
πŸ”€ Merge pull request #513 from MrKai77/updated-italian-and-spanish
Browse files Browse the repository at this point in the history
🌐 Updated Italian + Spanish localization
  • Loading branch information
MrKai77 committed Jul 18, 2024
2 parents 055be43 + a42013c commit 599720a
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 64 deletions.
166 changes: 104 additions & 62 deletions Loop/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -47,58 +47,6 @@
}
}
},
"%@ %@" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "%1$@ %2$@"
}
},
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "%1$@ %2$@"
}
}
}
},
"%@ is already used as your trigger key." : {
"localizations" : {
"en-GB" : {
Expand Down Expand Up @@ -254,7 +202,7 @@
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Informazioni"
"value" : "Info"
}
},
"ko" : {
Expand Down Expand Up @@ -4688,7 +4636,7 @@
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Unisciti a Discord"
"value" : "Entra in Discord"
}
},
"ko" : {
Expand Down Expand Up @@ -4895,6 +4843,53 @@
}
}
},
"Left %@" : {
"comment" : "Trigger Key: Left side",
"localizations" : {
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "Left %@"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Izquierda %@"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@ Sinistro"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "μ™Όμͺ½ %@"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Esquerda %@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "ε·¦δΎ§ %@"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "左側 %@"
}
}
}
},
"Left Cycle" : {
"localizations" : {
"en-GB" : {
Expand Down Expand Up @@ -6347,14 +6342,14 @@
"plural" : {
"one" : {
"stringUnit" : {
"state" : "new",
"value" : "%lld Loop left"
"state" : "translated",
"value" : "%lld Loop restante"
}
},
"other" : {
"stringUnit" : {
"state" : "new",
"value" : "%lld Loops left"
"state" : "translated",
"value" : "%lld Loops restantes"
}
}
}
Expand All @@ -6366,13 +6361,13 @@
"one" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld loop rimasto"
"value" : "Solo %lld loop!"
}
},
"other" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld loop rimasti"
"value" : "Solo %lld loop"
}
}
}
Expand Down Expand Up @@ -8221,7 +8216,7 @@
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ehm… Io… scusa, l’ho perso"
"value" : "Ehm… io… scusa, l’ho perso"
}
},
"ko" : {
Expand Down Expand Up @@ -10285,6 +10280,53 @@
}
}
},
"Right %@" : {
"comment" : "Trigger Key: Right side",
"localizations" : {
"en-GB" : {
"stringUnit" : {
"state" : "translated",
"value" : "Right %@"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Derecha %@"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@ Destro"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "였λ₯Έμͺ½ %@"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Direita %@"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "右侧 %@"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "右側 %@"
}
}
}
},
"Right Cycle" : {
"localizations" : {
"en-GB" : {
Expand Down Expand Up @@ -11302,7 +11344,7 @@
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Tematizzazione"
"value" : "Tema"
}
},
"ko" : {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ struct Keycorder: View {
}
}
.buttonStyle(PlainButtonStyle())

// Don't allow the button to be pressed if more than one keybind is selected in the list
.allowsHitTesting(model.selectedKeybinds.count <= 1)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ struct TriggerKeycorder: View {
} else {
HStack(spacing: 12) {
ForEach(selectionKey.sorted(), id: \.self) { key in
Text("\(key.isOnRightSide ? String(localized: .init("Right", defaultValue: "Right")) : String(localized: .init("Left", defaultValue: "Left"))) \(Image(systemName: key.systemImage ?? "exclamationmark.circle.fill"))")
let keyText: LocalizedStringKey = key.isOnRightSide ?
"Right \(Image(systemName: key.systemImage ?? "exclamationmark.circle.fill"))" :
"Left \(Image(systemName: key.systemImage ?? "exclamationmark.circle.fill"))"

Text(keyText)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.fixedSize(horizontal: true, vertical: false)

Expand Down

0 comments on commit 599720a

Please sign in to comment.