Fix i18n formatting for a11y.plural.count.characters_left

This commit is contained in:
Jed Fox 2022-12-03 14:18:39 -05:00
parent 5c1dea6942
commit 41e9cfa80d
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
4 changed files with 20 additions and 20 deletions

View File

@ -71,7 +71,7 @@
<key>a11y.plural.count.characters_left</key> <key>a11y.plural.count.characters_left</key>
<dict> <dict>
<key>NSStringLocalizedFormatKey</key> <key>NSStringLocalizedFormatKey</key>
<string>%#@character_count@ left</string> <string>%#@character_count@</string>
<key>character_count</key> <key>character_count</key>
<dict> <dict>
<key>NSStringFormatSpecTypeKey</key> <key>NSStringFormatSpecTypeKey</key>
@ -79,15 +79,15 @@
<key>NSStringFormatValueTypeKey</key> <key>NSStringFormatValueTypeKey</key>
<string>ld</string> <string>ld</string>
<key>zero</key> <key>zero</key>
<string>no characters</string> <string>no characters left</string>
<key>one</key> <key>one</key>
<string>1 character</string> <string>1 character left</string>
<key>few</key> <key>few</key>
<string>%ld characters</string> <string>%ld characters left</string>
<key>many</key> <key>many</key>
<string>%ld characters</string> <string>%ld characters left</string>
<key>other</key> <key>other</key>
<string>%ld characters</string> <string>%ld characters left</string>
</dict> </dict>
</dict> </dict>
<key>plural.count.followed_by_and_mutual</key> <key>plural.count.followed_by_and_mutual</key>

View File

@ -71,7 +71,7 @@
<key>a11y.plural.count.characters_left</key> <key>a11y.plural.count.characters_left</key>
<dict> <dict>
<key>NSStringLocalizedFormatKey</key> <key>NSStringLocalizedFormatKey</key>
<string>%#@character_count@ left</string> <string>%#@character_count@</string>
<key>character_count</key> <key>character_count</key>
<dict> <dict>
<key>NSStringFormatSpecTypeKey</key> <key>NSStringFormatSpecTypeKey</key>
@ -79,15 +79,15 @@
<key>NSStringFormatValueTypeKey</key> <key>NSStringFormatValueTypeKey</key>
<string>ld</string> <string>ld</string>
<key>zero</key> <key>zero</key>
<string>no characters</string> <string>no characters left</string>
<key>one</key> <key>one</key>
<string>1 character</string> <string>1 character left</string>
<key>few</key> <key>few</key>
<string>%ld characters</string> <string>%ld characters left</string>
<key>many</key> <key>many</key>
<string>%ld characters</string> <string>%ld characters left</string>
<key>other</key> <key>other</key>
<string>%ld characters</string> <string>%ld characters left</string>
</dict> </dict>
</dict> </dict>
<key>plural.count.followed_by_and_mutual</key> <key>plural.count.followed_by_and_mutual</key>

View File

@ -1338,9 +1338,9 @@ public enum L10n {
public enum A11y { public enum A11y {
public enum Plural { public enum Plural {
public enum Count { public enum Count {
/// Plural format key: "%#@character_count@ left" /// Plural format key: "%#@character_count@"
public static func charactersLeft(_ p1: Int) -> String { public static func charactersLeft(_ p1: Int) -> String {
return L10n.tr("Localizable", "a11y.plural.count.characters_left", p1, fallback: "Plural format key: \"%#@character_count@ left\"") return L10n.tr("Localizable", "a11y.plural.count.characters_left", p1, fallback: "Plural format key: \"%#@character_count@\"")
} }
/// Plural format key: "Input limit exceeds %#@character_count@" /// Plural format key: "Input limit exceeds %#@character_count@"
public static func inputLimitExceeds(_ p1: Int) -> String { public static func inputLimitExceeds(_ p1: Int) -> String {

View File

@ -71,7 +71,7 @@
<key>a11y.plural.count.characters_left</key> <key>a11y.plural.count.characters_left</key>
<dict> <dict>
<key>NSStringLocalizedFormatKey</key> <key>NSStringLocalizedFormatKey</key>
<string>%#@character_count@ left</string> <string>%#@character_count@</string>
<key>character_count</key> <key>character_count</key>
<dict> <dict>
<key>NSStringFormatSpecTypeKey</key> <key>NSStringFormatSpecTypeKey</key>
@ -79,15 +79,15 @@
<key>NSStringFormatValueTypeKey</key> <key>NSStringFormatValueTypeKey</key>
<string>ld</string> <string>ld</string>
<key>zero</key> <key>zero</key>
<string>no characters</string> <string>no characters left</string>
<key>one</key> <key>one</key>
<string>1 character</string> <string>1 character left</string>
<key>few</key> <key>few</key>
<string>%ld characters</string> <string>%ld characters left</string>
<key>many</key> <key>many</key>
<string>%ld characters</string> <string>%ld characters left</string>
<key>other</key> <key>other</key>
<string>%ld characters</string> <string>%ld characters left</string>
</dict> </dict>
</dict> </dict>
<key>plural.count.followed_by_and_mutual</key> <key>plural.count.followed_by_and_mutual</key>