From b0ee77caedfb8dcdfdabb9ce6646ce9a21c2fbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20R=C3=B3zga?= <53080024+AndrzejRozga@users.noreply.github.com> Date: Mon, 6 Mar 2023 07:07:35 +0100 Subject: [PATCH] Polish localization (#1174) * Fixed problem with with the translation of "mentions" in plural form - Localizable.stringsdict needs a digit (not string) to make a choice of a correct plural form. - fixed StatusEditorAutoCompleteView - changed %@ format specifier in Localizable.strings with %lld * Polish localization update --------- Co-authored-by: Thomas Ricouard --- .../Plurals/pl.lproj/Localizable.stringsdict | 20 ++++++++++++++++++- .../Localization/be.lproj/Localizable.strings | 2 +- .../Localization/ca.lproj/Localizable.strings | 2 +- .../Localization/de.lproj/Localizable.strings | 2 +- .../en-GB.lproj/Localizable.strings | 2 +- .../Localization/en.lproj/Localizable.strings | 2 +- .../Localization/es.lproj/Localizable.strings | 2 +- .../Localization/eu.lproj/Localizable.strings | 2 +- .../Localization/fr.lproj/Localizable.strings | 2 +- .../Localization/it.lproj/Localizable.strings | 2 +- .../Localization/ja.lproj/Localizable.strings | 2 +- .../Localization/ko.lproj/Localizable.strings | 2 +- .../Localization/nb.lproj/Localizable.strings | 2 +- .../Localization/nl.lproj/Localizable.strings | 2 +- .../Localization/pl.lproj/Localizable.strings | 1 - .../pt-BR.lproj/Localizable.strings | 2 +- .../Localization/tr.lproj/Localizable.strings | 2 +- .../Localization/uk.lproj/Localizable.strings | 2 +- .../zh-Hans.lproj/Localizable.strings | 2 +- .../zh-Hant.lproj/Localizable.strings | 2 +- .../StatusEditorAutoCompleteView.swift | 2 +- 21 files changed, 38 insertions(+), 21 deletions(-) diff --git a/IceCubesApp/Resources/Localization/Plurals/pl.lproj/Localizable.stringsdict b/IceCubesApp/Resources/Localization/Plurals/pl.lproj/Localizable.stringsdict index 3b9055be..14a526f9 100644 --- a/IceCubesApp/Resources/Localization/Plurals/pl.lproj/Localizable.stringsdict +++ b/IceCubesApp/Resources/Localization/Plurals/pl.lproj/Localizable.stringsdict @@ -156,7 +156,25 @@ other %lld pól - + + tag.suggested.mentions-%lld + + NSStringLocalizedFormatKey + %#@mentionsCount@ + mentionsCount + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + lld + one + %lld wzmianka + few + %lld wzmianki + other + %lld wzmianek + + design.tag.n-posts-from-n-participants %lld %lld NSStringLocalizedFormatKey diff --git a/IceCubesApp/Resources/Localization/be.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/be.lproj/Localizable.strings index b79d4bdb..9fe82d91 100644 --- a/IceCubesApp/Resources/Localization/be.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/be.lproj/Localizable.strings @@ -516,5 +516,5 @@ "report.action.send" = "Адправіць"; "status.action.report" = "Паскардзіцца"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/ca.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/ca.lproj/Localizable.strings index e3857932..18bab0a0 100644 --- a/IceCubesApp/Resources/Localization/ca.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/ca.lproj/Localizable.strings @@ -510,4 +510,4 @@ "report.action.send" = "Send"; "status.action.report" = "Report Post"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings index 4de402e4..7d20e5b1 100644 --- a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings @@ -506,4 +506,4 @@ "report.action.send" = "Absenden"; "status.action.report" = "Beitrag melden"; -"tag.suggested.mentions-%@" = "%@ Erwähnungen"; +"tag.suggested.mentions-%lld" = "%lld Erwähnungen"; diff --git a/IceCubesApp/Resources/Localization/en-GB.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/en-GB.lproj/Localizable.strings index 0e5288a9..764d4311 100644 --- a/IceCubesApp/Resources/Localization/en-GB.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/en-GB.lproj/Localizable.strings @@ -513,4 +513,4 @@ "report.action.send" = "Send"; "status.action.report" = "Report Post"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings index 56f27d11..3866d52d 100644 --- a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings @@ -512,4 +512,4 @@ "report.action.send" = "Send"; "status.action.report" = "Report Post"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings index 56646523..d6849656 100644 --- a/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings @@ -512,4 +512,4 @@ "report.action.send" = "Enviar"; "status.action.report" = "Denunciar publicación"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/eu.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/eu.lproj/Localizable.strings index 37071040..fc074d09 100644 --- a/IceCubesApp/Resources/Localization/eu.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/eu.lproj/Localizable.strings @@ -501,4 +501,4 @@ "report.action.send" = "Bidali"; "status.action.report" = "Salatu edukia"; -"tag.suggested.mentions-%@" = "%@ aipamenak"; +"tag.suggested.mentions-%@" = "%lld aipamenak"; diff --git a/IceCubesApp/Resources/Localization/fr.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/fr.lproj/Localizable.strings index d10d50a1..7e8d7bd8 100644 --- a/IceCubesApp/Resources/Localization/fr.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/fr.lproj/Localizable.strings @@ -507,4 +507,4 @@ "report.action.send" = "Envoyer"; "status.action.report" = "Signaler la publication"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings index bfd9e1d2..8091b715 100644 --- a/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings @@ -512,4 +512,4 @@ "report.action.send" = "Invia"; "status.action.report" = "Segnala il messaggio"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings index a80e35b5..60dd5804 100644 --- a/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings @@ -511,4 +511,4 @@ "report.action.send" = "送信"; "status.action.report" = "投稿を報告"; -"tag.suggested.mentions-%@" = "返信:%@"; +"tag.suggested.mentions-%lld" = "返信:%lld"; diff --git a/IceCubesApp/Resources/Localization/ko.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/ko.lproj/Localizable.strings index 81bd8532..4128f548 100644 --- a/IceCubesApp/Resources/Localization/ko.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/ko.lproj/Localizable.strings @@ -513,4 +513,4 @@ "report.action.send" = "제출"; "status.action.report" = "글 신고"; -"tag.suggested.mentions-%@" = "%@개 글"; +"tag.suggested.mentions-%lld" = "%lld개 글"; diff --git a/IceCubesApp/Resources/Localization/nb.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/nb.lproj/Localizable.strings index a50d5bc3..a0c81423 100644 --- a/IceCubesApp/Resources/Localization/nb.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/nb.lproj/Localizable.strings @@ -511,4 +511,4 @@ "report.action.send" = "Send"; "status.action.report" = "Report Post"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings index efb57809..cf5ab66c 100644 --- a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings @@ -508,4 +508,4 @@ "report.action.send" = "Verstuur"; "status.action.report" = "Meld post"; -"tag.suggested.mentions-%@" = "%@ vermeldingen"; +"tag.suggested.mentions-%lld" = "%lld vermeldingen"; diff --git a/IceCubesApp/Resources/Localization/pl.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/pl.lproj/Localizable.strings index b2c8d4f4..0bc6336f 100644 --- a/IceCubesApp/Resources/Localization/pl.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/pl.lproj/Localizable.strings @@ -503,4 +503,3 @@ "report.action.send" = "Wyślij"; "status.action.report" = "Zgłoś post"; -"tag.suggested.mentions-%@" = "%@ mentions"; diff --git a/IceCubesApp/Resources/Localization/pt-BR.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/pt-BR.lproj/Localizable.strings index d45ec1a6..ae284554 100644 --- a/IceCubesApp/Resources/Localization/pt-BR.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/pt-BR.lproj/Localizable.strings @@ -511,4 +511,4 @@ "report.action.send" = "Enviar"; "status.action.report" = "Repostar Postagem"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings index 5ce5fb28..2fee0935 100644 --- a/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings @@ -511,4 +511,4 @@ "report.action.send" = "Send"; "status.action.report" = "Report Post"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/uk.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/uk.lproj/Localizable.strings index 730af535..3f823343 100644 --- a/IceCubesApp/Resources/Localization/uk.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/uk.lproj/Localizable.strings @@ -512,5 +512,5 @@ "report.action.send" = "Надіслати"; "status.action.report" = "Поскаржитися на допис"; -"tag.suggested.mentions-%@" = "%@ mentions"; +"tag.suggested.mentions-%lld" = "%lld mentions"; diff --git a/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings index f7956de8..3b301373 100644 --- a/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings @@ -513,4 +513,4 @@ "report.action.send" = "发送"; "status.action.report" = "举报嘟文"; -"tag.suggested.mentions-%@" = "%@ 个提及"; +"tag.suggested.mentions-%lld" = "%lld 个提及"; diff --git a/IceCubesApp/Resources/Localization/zh-Hant.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/zh-Hant.lproj/Localizable.strings index a1694e7b..d95ec33a 100644 --- a/IceCubesApp/Resources/Localization/zh-Hant.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/zh-Hant.lproj/Localizable.strings @@ -512,4 +512,4 @@ "report.action.send" = "送出"; "status.action.report" = "檢舉嘟文"; -"tag.suggested.mentions-%@" = "%@ 提及"; +"tag.suggested.mentions-%lld" = "%lld 提及"; diff --git a/Packages/Status/Sources/Status/Editor/Components/StatusEditorAutoCompleteView.swift b/Packages/Status/Sources/Status/Editor/Components/StatusEditorAutoCompleteView.swift index 4e72ca0f..b2b832eb 100644 --- a/Packages/Status/Sources/Status/Editor/Components/StatusEditorAutoCompleteView.swift +++ b/Packages/Status/Sources/Status/Editor/Components/StatusEditorAutoCompleteView.swift @@ -55,7 +55,7 @@ struct StatusEditorAutoCompleteView: View { Text("#\(tag.name)") .font(.scaledFootnote) .foregroundColor(theme.tintColor) - Text("tag.suggested.mentions-\(String(tag.totalUses))") + Text("tag.suggested.mentions-\(tag.totalUses)") .font(.scaledCaption) .foregroundColor(.gray) }