From 090e54c8d89176071ff7653d39e09fd588ea6577 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Mon, 26 Sep 2022 20:32:24 +0100 Subject: [PATCH] ios: fix translations on user profile page (#1134) --- apps/ios/Shared/Views/UserSettings/UserProfile.swift | 4 ++-- .../de.xcloc/Localized Contents/de.xliff | 10 ++++++++++ .../en.xcloc/Localized Contents/en.xliff | 10 ++++++++++ .../ru.xcloc/Localized Contents/ru.xliff | 10 ++++++++++ apps/ios/de.lproj/Localizable.strings | 8 +++++++- apps/ios/ru.lproj/Localizable.strings | 8 +++++++- 6 files changed, 46 insertions(+), 4 deletions(-) diff --git a/apps/ios/Shared/Views/UserSettings/UserProfile.swift b/apps/ios/Shared/Views/UserSettings/UserProfile.swift index 05951e5d3..de7a19c8b 100644 --- a/apps/ios/Shared/Views/UserSettings/UserProfile.swift +++ b/apps/ios/Shared/Views/UserSettings/UserProfile.swift @@ -114,7 +114,7 @@ struct UserProfile: View { } } - func profileNameTextEdit(_ label: String, _ name: Binding) -> some View { + func profileNameTextEdit(_ label: LocalizedStringKey, _ name: Binding) -> some View { TextField(label, text: name) .textInputAutocapitalization(.never) .disableAutocorrection(true) @@ -122,7 +122,7 @@ struct UserProfile: View { .padding(.leading, 28) } - func profileNameView(_ label: String, _ name: String) -> some View { + func profileNameView(_ label: LocalizedStringKey, _ name: String) -> some View { HStack { Text(label) Text(name).fontWeight(.bold) diff --git a/apps/ios/SimpleX Localizations/de.xcloc/Localized Contents/de.xliff b/apps/ios/SimpleX Localizations/de.xcloc/Localized Contents/de.xliff index 4846fead7..475388a11 100644 --- a/apps/ios/SimpleX Localizations/de.xcloc/Localized Contents/de.xliff +++ b/apps/ios/SimpleX Localizations/de.xcloc/Localized Contents/de.xliff @@ -813,6 +813,11 @@ Display name + Angezeigter Name + No comment provided by engineer. + + + Display name: Angezeigter Name: No comment provided by engineer. @@ -1096,6 +1101,11 @@ Vollständiger Name (optional) No comment provided by engineer. + + Full name: + Vollständiger: + No comment provided by engineer. + Group Gruppe diff --git a/apps/ios/SimpleX Localizations/en.xcloc/Localized Contents/en.xliff b/apps/ios/SimpleX Localizations/en.xcloc/Localized Contents/en.xliff index e6978341f..b84b019c4 100644 --- a/apps/ios/SimpleX Localizations/en.xcloc/Localized Contents/en.xliff +++ b/apps/ios/SimpleX Localizations/en.xcloc/Localized Contents/en.xliff @@ -816,6 +816,11 @@ Display name No comment provided by engineer. + + Display name: + Display name: + No comment provided by engineer. + Do NOT use SimpleX for emergency calls. Do NOT use SimpleX for emergency calls. @@ -1096,6 +1101,11 @@ Full name (optional) No comment provided by engineer. + + Full name: + Full name: + No comment provided by engineer. + Group Group diff --git a/apps/ios/SimpleX Localizations/ru.xcloc/Localized Contents/ru.xliff b/apps/ios/SimpleX Localizations/ru.xcloc/Localized Contents/ru.xliff index fd2a55e21..da7aaf661 100644 --- a/apps/ios/SimpleX Localizations/ru.xcloc/Localized Contents/ru.xliff +++ b/apps/ios/SimpleX Localizations/ru.xcloc/Localized Contents/ru.xliff @@ -816,6 +816,11 @@ Имя профиля No comment provided by engineer. + + Display name: + Имя профиля: + No comment provided by engineer. + Do NOT use SimpleX for emergency calls. Не используйте SimpleX для экстренных звонков @@ -1096,6 +1101,11 @@ Полное имя (не обязательно) No comment provided by engineer. + + Full name: + Полное имя: + No comment provided by engineer. + Group Группа diff --git a/apps/ios/de.lproj/Localizable.strings b/apps/ios/de.lproj/Localizable.strings index b94279256..72b7990c4 100644 --- a/apps/ios/de.lproj/Localizable.strings +++ b/apps/ios/de.lproj/Localizable.strings @@ -576,7 +576,10 @@ "Disable SimpleX Lock" = "SimpleX Sperre deaktivieren"; /* No comment provided by engineer. */ -"Display name" = "Angezeigter Name:"; +"Display name" = "Angezeigter Name"; + +/* No comment provided by engineer. */ +"Display name:" = "Angezeigter Name:"; /* No comment provided by engineer. */ "Do it later" = "Später wiederholen"; @@ -761,6 +764,9 @@ /* No comment provided by engineer. */ "Full name (optional)" = "Vollständiger Name (optional)"; +/* No comment provided by engineer. */ +"Full name:" = "Vollständiger:"; + /* No comment provided by engineer. */ "Group" = "Gruppe"; diff --git a/apps/ios/ru.lproj/Localizable.strings b/apps/ios/ru.lproj/Localizable.strings index 5535d5647..8ac1fc1f8 100644 --- a/apps/ios/ru.lproj/Localizable.strings +++ b/apps/ios/ru.lproj/Localizable.strings @@ -578,6 +578,9 @@ /* No comment provided by engineer. */ "Display name" = "Имя профиля"; +/* No comment provided by engineer. */ +"Display name:" = "Имя профиля:"; + /* No comment provided by engineer. */ "Do it later" = "Отложить"; @@ -636,7 +639,7 @@ "Encrypted message: no passphrase" = "Зашифрованное сообщение: пароль не сохранен"; /* notification */ -"Encrypted message: unexpeсted error" = "Зашифрованное сообщение: неожиданная ошибка"; +"Encrypted message: unexpected error" = "Зашифрованное сообщение: неожиданная ошибка"; /* No comment provided by engineer. */ "ended" = "завершён"; @@ -761,6 +764,9 @@ /* No comment provided by engineer. */ "Full name (optional)" = "Полное имя (не обязательно)"; +/* No comment provided by engineer. */ +"Full name:" = "Полное имя:"; + /* No comment provided by engineer. */ "Group" = "Группа";