2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Add localizations for attachment types

Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
This commit is contained in:
shannon 2025-02-11 11:59:48 -05:00
parent 13619fcfe5
commit d448815c9a
2 changed files with 156 additions and 0 deletions

View File

@ -1977,6 +1977,14 @@ public enum L10n {
return L10n.tr("Localizable", "plural.people_talking", p1, fallback: "Plural format key: \"%#@count_people_talking@\"")
}
public enum Count {
/// Plural format key: "%#@attachment_count@"
public static func attachment(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.attachment", p1, fallback: "Plural format key: \"%#@attachment_count@\"")
}
/// Plural format key: "%#@audio_count@"
public static func audio(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.audio", p1, fallback: "Plural format key: \"%#@audio_count@\"")
}
/// Plural format key: "%#@favorite_count@"
public static func favorite(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.favorite", p1, fallback: "Plural format key: \"%#@favorite_count@\"")
@ -1993,10 +2001,22 @@ public enum L10n {
public static func following(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.following", p1, fallback: "Plural format key: \"%#@count_following@\"")
}
/// Plural format key: "%#@gif_count@"
public static func gif(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.gif", p1, fallback: "Plural format key: \"%#@gif_count@\"")
}
/// Plural format key: "%#@image_count@"
public static func image(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.image", p1, fallback: "Plural format key: \"%#@image_count@\"")
}
/// Plural format key: "%#@media_count@"
public static func media(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.media", p1, fallback: "Plural format key: \"%#@media_count@\"")
}
/// Plural format key: "%#@poll_count@"
public static func poll(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.poll", p1, fallback: "Plural format key: \"%#@poll_count@\"")
}
/// Plural format key: "%#@post_count@"
public static func post(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.post", p1, fallback: "Plural format key: \"%#@post_count@\"")
@ -2013,6 +2033,10 @@ public enum L10n {
public static func reply(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.reply", p1, fallback: "Plural format key: \"%#@reply_count@\"")
}
/// Plural format key: "%#@video_count@"
public static func video(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.video", p1, fallback: "Plural format key: \"%#@video_count@\"")
}
/// Plural format key: "%#@vote_count@"
public static func vote(_ p1: Int) -> String {
return L10n.tr("Localizable", "plural.count.vote", p1, fallback: "Plural format key: \"%#@vote_count@\"")

View File

@ -165,6 +165,138 @@
<string>%ld media</string>
</dict>
</dict>
<key>plural.count.image</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@image_count@</string>
<key>image_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>0 image</string>
<key>one</key>
<string>1 image</string>
<key>few</key>
<string>%ld image</string>
<key>many</key>
<string>%ld image</string>
<key>other</key>
<string>%ld image</string>
</dict>
</dict>
<key>plural.count.gif</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@gif_count@</string>
<key>gif_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>0 gif</string>
<key>one</key>
<string>1 gif</string>
<key>few</key>
<string>%ld gif</string>
<key>many</key>
<string>%ld gif</string>
<key>other</key>
<string>%ld gif</string>
</dict>
</dict>
<key>plural.count.video</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@video_count@</string>
<key>video_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>0 video</string>
<key>one</key>
<string>1 video</string>
<key>few</key>
<string>%ld video</string>
<key>many</key>
<string>%ld video</string>
<key>other</key>
<string>%ld video</string>
</dict>
</dict>
<key>plural.count.audio</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@audio_count@</string>
<key>audio_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>0 audio</string>
<key>one</key>
<string>1 audio</string>
<key>few</key>
<string>%ld audio</string>
<key>many</key>
<string>%ld audio</string>
<key>other</key>
<string>%ld audio</string>
</dict>
</dict>
<key>plural.count.attachment</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@attachment_count@</string>
<key>attachment_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>0 attachment</string>
<key>one</key>
<string>1 attachment</string>
<key>few</key>
<string>%ld attachment</string>
<key>many</key>
<string>%ld attachment</string>
<key>other</key>
<string>%ld attachment</string>
</dict>
</dict>
<key>plural.count.poll</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@poll_count@</string>
<key>poll_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>zero</key>
<string>0 poll</string>
<key>one</key>
<string>1 poll</string>
<key>few</key>
<string>%ld poll</string>
<key>many</key>
<string>%ld poll</string>
<key>other</key>
<string>%ld poll</string>
</dict>
</dict>
<key>plural.count.post</key>
<dict>
<key>NSStringLocalizedFormatKey</key>