From d448815c9a0fbdeceb048d7a5e96f4747b374dd0 Mon Sep 17 00:00:00 2001 From: shannon Date: Tue, 11 Feb 2025 11:59:48 -0500 Subject: [PATCH] Add localizations for attachment types Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification --- .../Generated/Strings.swift | 24 ++++ .../Base.lproj/Localizable.stringsdict | 132 ++++++++++++++++++ 2 files changed, 156 insertions(+) diff --git a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift index 4fd565ef6..1385a7756 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift +++ b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift @@ -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@\"") diff --git a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.stringsdict b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.stringsdict index 1038e2ea8..8fda97b86 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.stringsdict +++ b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.stringsdict @@ -165,6 +165,138 @@ %ld media + plural.count.image + + NSStringLocalizedFormatKey + %#@image_count@ + image_count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + zero + 0 image + one + 1 image + few + %ld image + many + %ld image + other + %ld image + + + plural.count.gif + + NSStringLocalizedFormatKey + %#@gif_count@ + gif_count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + zero + 0 gif + one + 1 gif + few + %ld gif + many + %ld gif + other + %ld gif + + + plural.count.video + + NSStringLocalizedFormatKey + %#@video_count@ + video_count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + zero + 0 video + one + 1 video + few + %ld video + many + %ld video + other + %ld video + + + plural.count.audio + + NSStringLocalizedFormatKey + %#@audio_count@ + audio_count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + zero + 0 audio + one + 1 audio + few + %ld audio + many + %ld audio + other + %ld audio + + + plural.count.attachment + + NSStringLocalizedFormatKey + %#@attachment_count@ + attachment_count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + zero + 0 attachment + one + 1 attachment + few + %ld attachment + many + %ld attachment + other + %ld attachment + + + plural.count.poll + + NSStringLocalizedFormatKey + %#@poll_count@ + poll_count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + zero + 0 poll + one + 1 poll + few + %ld poll + many + %ld poll + other + %ld poll + + plural.count.post NSStringLocalizedFormatKey