This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 44#import " ../utils.h"
55
66// URL для скачивания authlib-injector
7- #define AUTHLIB_INJECTOR_URL @" https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.3 /authlib-injector-1.2.3 .jar"
7+ #define AUTHLIB_INJECTOR_URL @" https://github.com/yushijinhun/authlib-injector/releases/download/v1.2.5 /authlib-injector-1.2.5 .jar"
88#define AUTHLIB_INJECTOR_FILE @" authlib-injector.jar"
99#define ELYBY_API_ROOT @" https://authserver.ely.by"
1010
Original file line number Diff line number Diff line change @@ -98,8 +98,9 @@ void openLink(UIViewController* sender, NSURL* link) {
9898 // 1. Попытка получить строку из основного бандла для текущего языка
9999 NSString *value = NSLocalizedString(key, comment);
100100
101- // 2. Если строка не найдена (возвращен ключ) и язык не английский, попробовать английский
102- if (![NSLocale .preferredLanguages[0 ] isEqualToString: @" en" ] && [value isEqualToString: key]) {
101+ // 2. Если строка не найдена (возвращен ключ), всегда пробовать английский,
102+ // независимо от текущего языка пользователя
103+ if ([value isEqualToString: key]) {
103104 NSString * path = [NSBundle .mainBundle pathForResource: @" en" ofType: @" lproj" ];
104105 if (path) { // Убедиться, что путь существует
105106 NSBundle * englishBundle = [NSBundle bundleWithPath: path];
You can’t perform that action at this time.
0 commit comments