Skip to content

Commit 78b8d52

Browse files
authored
Merge pull request #2 from svyatoynick/main
Updated localisations. Fixed "required" word.
2 parents c7e5a9c + cc72d69 commit 78b8d52

File tree

4 files changed

+91
-71
lines changed

4 files changed

+91
-71
lines changed

Sources/SPProfiling/Data/Texts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum Texts {
3939

4040
static var canceled: String { NSLocalizedString("error auth canceled", bundle: .module, comment: "") }
4141
static var cant_present: String { NSLocalizedString("error auth cant present", bundle: .module, comment: "") }
42-
static var cant_prepare_requerid_data: String { NSLocalizedString("error auth cant prepare requerid data", bundle: .module, comment: "") }
42+
static var cant_prepare_required_data: String { NSLocalizedString("error auth cant prepare required data", bundle: .module, comment: "") }
4343
}
4444

4545
enum Profile {

Sources/SPProfiling/Models/Errors/AuthError.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ public enum AuthError: LocalizedError {
2626

2727
case canceled
2828
case cantPresent
29-
case cantPrepareRequeridData
29+
case cantPrepareRequiredData
3030

3131
public var errorDescription: String? {
3232
switch self {
3333
case .canceled: return Texts.Error.Auth.canceled
3434
case .cantPresent: return Texts.Error.Auth.cant_present
35-
case .cantPrepareRequeridData: return Texts.Error.Auth.cant_prepare_requerid_data
35+
case .cantPrepareRequiredData: return Texts.Error.Auth.cant_prepare_required_data
3636
}
3737
}
3838

3939
static func convert(_ error: SPFirebaseAuthError) -> AuthError {
4040
switch error {
4141
case .canceled: return .canceled
4242
case .cantPresent: return .cantPresent
43-
case .faild: return .cantPrepareRequeridData
43+
case .faild: return .cantPrepareRequiredData
4444
}
4545
}
4646
}

Sources/SPProfiling/Resources/Localization/en.lproj/Localizable.strings

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,56 @@
1+
/* No comment provided by engineer. */
2+
"auth continue anonymously" = "Continue Anonymously";
3+
4+
/* No comment provided by engineer. */
5+
"auth description" = "Log in to access the benefits.";
6+
7+
/* No comment provided by engineer. */
8+
"auth footer description" = "Profile can be abandoned and deleted at any time. You can change your name and avatar after logging in.";
9+
10+
/* No comment provided by engineer. */
11+
"auth sign in" = "Sign In";
12+
113
/* No comment provided by engineer. */
214
"cancel" = "Cancel";
315

416
/* No comment provided by engineer. */
5-
"error not enough permissions" = "Not Enough Permissions";
17+
"error auth canceled" = "Authentication canceled";
18+
19+
/* No comment provided by engineer. */
20+
"error auth cant prepare required data" = "Failed to prepare the necessary data";
21+
22+
/* No comment provided by engineer. */
23+
"error auth cant present" = "Failed to show authentication screen";
24+
25+
/* No comment provided by engineer. */
26+
"error not enough permissions" = "Not enough permissions";
627

728
/* No comment provided by engineer. */
829
"error not found" = "Not Found";
930

1031
/* No comment provided by engineer. */
1132
"error not reachable" = "Not Reachable";
1233

34+
/* No comment provided by engineer. */
35+
"error profile big avatar size" = "The size of the avatar is too large.";
36+
37+
/* No comment provided by engineer. */
38+
"error profile big avatar width" = "The width of the avatar is too wide.";
39+
40+
/* No comment provided by engineer. */
41+
"error profile empty name" = "The profile name cannot be empty.";
42+
43+
/* No comment provided by engineer. */
44+
"error profile name long" = "Profile name is too long.";
45+
46+
/* No comment provided by engineer. */
47+
"error profile name short" = "Profile name is too short.";
48+
1349
/* No comment provided by engineer. */
1450
"error unknown" = "Unknown Error";
1551

1652
/* No comment provided by engineer. */
17-
"profile actions delete confirm description" = "The profile will be permanently deleted with all data. This action cannot be undone";
53+
"profile actions delete confirm description" = "The profile will be permanently deleted with all data. This action cannot be undone.";
1854

1955
/* No comment provided by engineer. */
2056
"profile actions delete confirm title" = "Delete Profile?";
@@ -46,18 +82,6 @@
4682
/* No comment provided by engineer. */
4783
"profile actions sign out title" = "Sign Out";
4884

49-
/* No comment provided by engineer. */
50-
"profile auth continue anonymously" = "Continue Anonymously";
51-
52-
/* No comment provided by engineer. */
53-
"profile auth description" = "Log in to access the benefits.";
54-
55-
/* No comment provided by engineer. */
56-
"profile auth footer description" = "Profile can be abandoned and deleted at any time. You can change your name and avatar after logging in.";
57-
58-
/* No comment provided by engineer. */
59-
"profile auth title" = "Profile";
60-
6185
/* No comment provided by engineer. */
6286
"profile avatar actions description" = "Select where you want to install the photo from.";
6387

@@ -70,6 +94,9 @@
7094
/* No comment provided by engineer. */
7195
"profile avatar open photo library" = "Photo Library";
7296

97+
/* No comment provided by engineer. */
98+
"profile devices added date" = "Added on %@";
99+
73100
/* No comment provided by engineer. */
74101
"profile devices footer" = "You can disable access to a profile by deleting it.";
75102

@@ -80,22 +107,7 @@
80107
"profile devices title" = "Devices";
81108

82109
/* No comment provided by engineer. */
83-
"profile error big avatar size" = "The size of the avatar is too large.";
84-
85-
/* No comment provided by engineer. */
86-
"profile error big avatar width" = "The width of the avatar is too wide.";
87-
88-
/* No comment provided by engineer. */
89-
"profile error empty name" = "The profile name cannot be empty.";
90-
91-
/* No comment provided by engineer. */
92-
"profile error name long" = "Profile name is too long.";
93-
94-
/* No comment provided by engineer. */
95-
"profile error name short" = "Profile name is too short.";
96-
97-
/* No comment provided by engineer. */
98-
"profile name didint set" = "Profile name is not set.";
110+
"profile placeholder name" = "No Name";
99111

100112
/* No comment provided by engineer. */
101113
"profile rename alert description" = "The name will be visible for everybody.";
@@ -109,5 +121,3 @@
109121
/* No comment provided by engineer. */
110122
"save" = "Save";
111123

112-
/* No comment provided by engineer. */
113-
"profile devices added date" = "Added on %@";

Sources/SPProfiling/Resources/Localization/ru.lproj/Localizable.strings

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,116 @@
1+
/* No comment provided by engineer. */
2+
"auth continue anonymously" = "Продолжить анонимно";
3+
4+
/* No comment provided by engineer. */
5+
"auth description" = "Войдите, чтобы получить доступ к преимуществам.";
6+
7+
/* No comment provided by engineer. */
8+
"auth footer description" = "Профиль можно покинуть или удалить в любое время.";
9+
10+
/* No comment provided by engineer. */
11+
"auth sign in" = "Войти";
12+
113
/* No comment provided by engineer. */
214
"cancel" = "Отменить";
315

416
/* No comment provided by engineer. */
5-
"error not enough permissions" = "Недостаточно прав";
17+
"error auth canceled" = "Аутентификация отменена";
618

719
/* No comment provided by engineer. */
8-
"error not found" = "Не найдено";
20+
"error auth cant prepare required data" = "Не удалось подготовить необходимые данные";
921

1022
/* No comment provided by engineer. */
11-
"error not reachable" = "Недоступно";
23+
"error auth cant present" = "Не удалось показать экран аутентификации";
1224

1325
/* No comment provided by engineer. */
14-
"error unknown" = "Неизвестная ошибка";
26+
"error not enough permissions" = "Недостаточно прав";
1527

1628
/* No comment provided by engineer. */
17-
"profile actions delete confirm description" = "Профиль будет удалён вместе со всеми данными. Это действие нельзя отменить.";
29+
"error not found" = "Не найдено";
1830

1931
/* No comment provided by engineer. */
20-
"profile actions delete confirm title" = "Удалить профиль?";
32+
"error not reachable" = "Недоступно";
2133

2234
/* No comment provided by engineer. */
23-
"profile actions delete description" = "Профиль будет удалён вместе со всеми данными.";
35+
"error profile big avatar size" = "Размер аватара слишком большой.";
2436

2537
/* No comment provided by engineer. */
26-
"profile actions delete title" = "Удалить профиль";
38+
"error profile big avatar width" = "Аватар слишком широкий.";
2739

2840
/* No comment provided by engineer. */
29-
"profile actions email copied" = "Скопировано";
41+
"error profile empty name" = "Имя профиля не может быть пустым.";
3042

3143
/* No comment provided by engineer. */
32-
"profile actions rename description" = "Имя будет видно всем.";
44+
"error profile name long" = "Имя профиля слишком длинное.";
3345

3446
/* No comment provided by engineer. */
35-
"profile actions rename title" = "Введите новое имя";
47+
"error profile name short" = "Имя слишком короткое.";
3648

3749
/* No comment provided by engineer. */
38-
"profile actions sign out confirm description" = "Все данные будут удалены с этого устройства. Их можно будет восстановить повторно войдя в профиль.";
50+
"error unknown" = "Неизвестная ошибка";
3951

4052
/* No comment provided by engineer. */
41-
"profile actions sign out confirm title" = "Выйти из профиля?";
53+
"profile actions delete confirm description" = "Профиль будет безвозвратно удален со всеми данными. Это действие нельзя отменить.";
4254

4355
/* No comment provided by engineer. */
44-
"profile actions sign out description" = "Когда вы выйдете из профиля, все данные на устройстве будут удалены.";
56+
"profile actions delete confirm title" = "Удалить профиль?";
4557

4658
/* No comment provided by engineer. */
47-
"profile actions sign out title" = "Выйти";
59+
"profile actions delete description" = "Профиль будет удален вместе со всеми данными.";
4860

4961
/* No comment provided by engineer. */
50-
"profile auth continue anonymously" = "Продолжить анонимно";
62+
"profile actions delete title" = "Удалить профиль";
5163

5264
/* No comment provided by engineer. */
53-
"profile auth description" = "Войдите для использования преимуществ.";
65+
"profile actions email copied" = "Почта скопирована";
5466

5567
/* No comment provided by engineer. */
56-
"profile auth footer description" = "Вы можете удалить профиль в любой момент. Смена имени и аватара доступна после входа.";
68+
"profile actions rename description" = "Имя будет видно всем.";
5769

5870
/* No comment provided by engineer. */
59-
"profile auth title" = "Профиль";
71+
"profile actions rename title" = "Введите новое имя";
6072

6173
/* No comment provided by engineer. */
62-
"profile avatar actions description" = "Выберите, откуда хотите использовать фото.";
74+
"profile actions sign out confirm description" = "Все данные будут удалены с этого устройства. Вы сможете восстановить их, войдя в свою профиль заново.";
6375

6476
/* No comment provided by engineer. */
65-
"profile avatar delete action title" = "Удалить аватар";
77+
"profile actions sign out confirm title" = "Выйти из профиля?";
6678

6779
/* No comment provided by engineer. */
68-
"profile avatar open camera" = "Камера";
80+
"profile actions sign out description" = "При выходе из профиля все данные будут удалены с устройства.";
6981

7082
/* No comment provided by engineer. */
71-
"profile avatar open photo library" = "Фотопленка";
83+
"profile actions sign out title" = "Выйти";
7284

7385
/* No comment provided by engineer. */
74-
"profile devices footer" = "Вы можете забрать доступ к профилю, удалив устройство.";
86+
"profile avatar actions description" = "Выберите место, откуда хотите установить фотографию.";
7587

7688
/* No comment provided by engineer. */
77-
"profile devices header" = "Подключенные устройства";
89+
"profile avatar delete action title" = "Удалить";
7890

7991
/* No comment provided by engineer. */
80-
"profile devices title" = "Устройства";
92+
"profile avatar open camera" = "Камера";
8193

8294
/* No comment provided by engineer. */
83-
"profile error big avatar size" = "Размер аватара слишком большой.";
95+
"profile avatar open photo library" = "Библиотека фото";
8496

8597
/* No comment provided by engineer. */
86-
"profile error big avatar width" = "Аватар слишком широкий.";
98+
"profile devices added date" = "Добавлено %@";
8799

88100
/* No comment provided by engineer. */
89-
"profile error empty name" = "Имя не может быть пустым.";
101+
"profile devices footer" = "Вы можете запретить доступ к профилю, удалив его.";
90102

91103
/* No comment provided by engineer. */
92-
"profile error name long" = "Имя слишком длинное.";
104+
"profile devices header" = "Подключенные устройства";
93105

94106
/* No comment provided by engineer. */
95-
"profile error name short" = "Имя слишком короткое.";
107+
"profile devices title" = "Устройства";
96108

97109
/* No comment provided by engineer. */
98-
"profile name didint set" = "Имя не установлено.";
110+
"profile placeholder name" = "Нет имени";
99111

100112
/* No comment provided by engineer. */
101-
"profile rename alert description" = "Имя будет видно всем.";
113+
"profile rename alert description" = "Имя профиля будет видно всем.";
102114

103115
/* No comment provided by engineer. */
104116
"profile rename alert placeholder" = "Имя Фамилия";
@@ -109,5 +121,3 @@
109121
/* No comment provided by engineer. */
110122
"save" = "Сохранить";
111123

112-
/* No comment provided by engineer. */
113-
"profile devices added date" = "Added on %@";

0 commit comments

Comments
 (0)