mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 02:32:10 +00:00
v3.0.1 support
This commit is contained in:
parent
4789166a33
commit
30b08252a7
4 changed files with 75 additions and 19 deletions
2
Makefile
2
Makefile
|
|
@ -6,7 +6,7 @@ DEBUG=0
|
|||
FINALPACKAGE=1
|
||||
TARGET := iphone:clang:latest:11.0
|
||||
ARCHS = arm64
|
||||
PACKAGE_VERSION = 3.0
|
||||
PACKAGE_VERSION = 3.0.1
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
|
|
|
|||
44
Tweak.xm
44
Tweak.xm
|
|
@ -26,7 +26,8 @@ static inline NSString *LOC(NSString *key) {
|
|||
self = %orig;
|
||||
if (self) {
|
||||
UILabel *countLabel = [self valueForKey:@"countLabel"];
|
||||
countLabel.adjustsFontSizeToFitWidth = YES;
|
||||
countLabel.font = [UIFont systemFontOfSize:15.0];
|
||||
countLabel.adjustsFontSizeToFitWidth = YES; //in case if your text still doesnt fit
|
||||
} return self;
|
||||
}
|
||||
%end
|
||||
|
|
@ -36,7 +37,7 @@ static inline NSString *LOC(NSString *key) {
|
|||
- (void)setText:(NSString *)text {
|
||||
NSBundle *tweakBundle = uYouLocalizationBundle();
|
||||
NSString *localizedText = [tweakBundle localizedStringForKey:text value:nil table:nil];
|
||||
NSArray *centered = @[@"SKIP", @"DISMISS", @"UPDATE NOW", @"DON'T SHOW"];
|
||||
NSArray *centered = @[@"SKIP", @"DISMISS", @"UPDATE NOW", @"DON'T SHOW", @"Cancel", @"Copy all", @"Move all"];
|
||||
|
||||
%orig;
|
||||
if (localizedText && ![localizedText isEqualToString:text]) {
|
||||
|
|
@ -66,8 +67,14 @@ static inline NSString *LOC(NSString *key) {
|
|||
if ([text containsString:@"Video •"]) {
|
||||
%orig([NSString stringWithFormat:@"%@ %@", LOC(@"Video"), [text substringFromIndex:[text rangeOfString:@"•"].location]]);
|
||||
}
|
||||
if ([text containsString:@"Completed :"]) {
|
||||
%orig([NSString stringWithFormat:@"%@ %@", LOC(@"Completed"), [text substringFromIndex:[text rangeOfString:@":"].location]]);
|
||||
if ([text containsString:@"Completed: "]) {
|
||||
text = [text stringByReplacingOccurrencesOfString:@"Completed" withString:LOC(@"Completed")];
|
||||
}
|
||||
if ([text containsString:@"Importing ("]) {
|
||||
text = [text stringByReplacingOccurrencesOfString:@"Importing" withString:LOC(@"Importing")];
|
||||
}
|
||||
if ([text containsString:@"Error: Conversion failed with code "]) {
|
||||
text = [text stringByReplacingOccurrencesOfString:@"Error: Conversion failed with code" withString:LOC(@"ConversionFailedWithCode")];
|
||||
}
|
||||
if ([text containsString:@"Are you sure you want to delete ("]) {
|
||||
NSRange parenthesesRange = [text rangeOfString:@"("];
|
||||
|
|
@ -129,18 +136,33 @@ static inline NSString *LOC(NSString *key) {
|
|||
}
|
||||
%end
|
||||
|
||||
// Translate update messages
|
||||
// Translate update messages from https://miro92.com/repo/check.php?id=com.miro.uyou&v=3.0 (3.0 - tweak version)
|
||||
%hook uYouCheckUpdate
|
||||
- (id)initWithTweakName:(id)arg1 tweakID:(id)arg2 version:(id)arg3 message:(id)arg4 tintColor:(id)arg5 showAllButtons:(BOOL)arg6 {
|
||||
NSString *tweakVersion = arg3;
|
||||
|
||||
// Up to date
|
||||
if ([arg4 containsString:@"which it\'s the latest version."]) {
|
||||
NSString *version = arg3;
|
||||
arg4 = [NSString stringWithFormat:LOC(@"UpToDate"), version];
|
||||
arg4 = [NSString stringWithFormat:LOC(@"UpToDate"), tweakVersion];
|
||||
}
|
||||
|
||||
// Update available (new msg)
|
||||
else if ([arg4 containsString:@"Please update to the latest version for the best experience."]) {
|
||||
NSString *startOfMsg = [NSString stringWithFormat:@"Current version v.%@\nAvailable version v.", tweakVersion];
|
||||
NSString *endOfMsg = @"\n\nPlease update to the latest version for the best experience.";
|
||||
NSArray *components = [arg4 componentsSeparatedByString:startOfMsg];
|
||||
|
||||
if (components.count > 1) {
|
||||
NSString *newVersion = [components[1] componentsSeparatedByString:endOfMsg].firstObject;
|
||||
arg4 = [NSString stringWithFormat:LOC(@"NewVersion"), tweakVersion, newVersion];
|
||||
}
|
||||
}
|
||||
|
||||
else if ([arg4 containsString:@"is now available."]) {
|
||||
NSRange oldVerion = [arg4 rangeOfString:@" is now available."];
|
||||
NSString *version = [arg4 substringToIndex:oldVerion.location];
|
||||
arg4 = [NSString stringWithFormat:LOC(@"NewVersion"), version];
|
||||
// Update available (old msg)
|
||||
else if ([arg4 containsString:@"is now available.\nPlease make sure"]) {
|
||||
NSRange getNewVerion = [arg4 rangeOfString:@" is now available."];
|
||||
NSString *newVersion = [arg4 substringToIndex:getNewVerion.location];
|
||||
arg4 = [NSString stringWithFormat:LOC(@"NewVersionOld"), newVersion];
|
||||
} return %orig(arg1, arg2, arg3, arg4, arg5, arg6);
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
"Explicit" = "Explicit";
|
||||
"Kind" = "Kind";
|
||||
"Title" = "Title";
|
||||
"Channel" = "Channel";
|
||||
"Album" = "Album";
|
||||
"Artist" = "Artist";
|
||||
"Year" = "Year";
|
||||
|
|
@ -84,6 +85,9 @@
|
|||
"Loading" = "Loading";
|
||||
"Download Started" = "Download started";
|
||||
"Saved!" = "Saved!";
|
||||
"Error!" = "Error!";
|
||||
"uYou did not find any quality to download" = "uYou did not find any quality to download";
|
||||
"No links found" = "No links found";
|
||||
"Exported successfully" = "Exported successfully";
|
||||
"Renamed successfully" = "Renamed successfully";
|
||||
"Downloading Thumbnail" = "Downloading Thumbnail";
|
||||
|
|
@ -91,7 +95,16 @@
|
|||
"Image updated successfully" = "Image updated successfully";
|
||||
"Invalid YouTube link" = "Invalid YouTube link";
|
||||
|
||||
/* Download status */
|
||||
"Merging video with audio into MP4..." = "Merging video with audio into MP4...";
|
||||
"Adding Metadata to the M4A..." = "Adding Metadata to the M4A...";
|
||||
"Merging video with audio into MKV..." = "Merging video with audio into MKV...";
|
||||
"Converting MKV video into MP4..." = "Converting MKV video into MP4...";
|
||||
"Error: Conversion cancelled by user" = "Error: Conversion cancelled by user";
|
||||
"ConversionFailedWithCode" = "Error: Conversion failed with code";
|
||||
|
||||
/* Settings */
|
||||
"Show uYou settings" = "Show uYou settings";
|
||||
"QUALITY AND FORMAT" = "QUALITY AND FORMAT";
|
||||
"Show Formats" = "Show Formats";
|
||||
|
||||
|
|
@ -172,6 +185,7 @@
|
|||
|
||||
"Hide Tabs" = "Hide Tabs";
|
||||
"YT Tabs" = "YT Tabs";
|
||||
"Hide uYou Tab" = "Hide uYou Tab";
|
||||
"Hide Shorts Tab" = "Hide Shorts Tab";
|
||||
"Hide Create Tab" = "Hide Create Tab";
|
||||
"Hide Subscriptions Tab" = "Hide Subscriptions Tab";
|
||||
|
|
@ -213,8 +227,10 @@
|
|||
"You can easily migrate all of your videos/audios from \"Cercube\" to \"uYou\" with a tap of a button!\n\nPlease choose one of the following:" = "You can easily migrate all of your videos/audios from \"Cercube\" to \"uYou\" with a tap of a button!\n\nPlease choose one of the following:";
|
||||
"Import From DLEasy" = "Import From DLEasy";
|
||||
"You can easily migrate all of your videos/audios from \"DLEasy\" to \"uYou\" with a tap of a button!\n\nPlease choose one of the following:" = "You can easily migrate all of your videos/audios from \"DLEasy\" to \"uYou\" with a tap of a button!\n\nPlease choose one of the following:";
|
||||
"Copy all" = "Copy all";
|
||||
"Move all" = "Move all";
|
||||
"Please choose one of the following:" = "Please choose one of the following:";
|
||||
"Copy All" = "Copy All";
|
||||
"Move All" = "Move All";
|
||||
"Importing" = "Importing";
|
||||
|
||||
"Clear Downloading" = "Clear Downloading";
|
||||
"Are you sure you want to clear all current downloading videos/audios?" = "Are you sure you want to clear all current downloading videos/audios?";
|
||||
|
|
@ -229,7 +245,8 @@
|
|||
"Automatically Check For Updates" = "Automatically Check For Updates";
|
||||
"Check For Update" = "Check For Update";
|
||||
"UpToDate" = "You're using v.%@ which is the latest version.";
|
||||
"NewVersion" = "v.%@ is now available. Please make sure to always updating to the latest version to ensure having a flawless/uninterrupted experience.";
|
||||
"NewVersionOld" = "v.%@ is now available. Please make sure to always updating to the latest version to ensure having a flawless/uninterrupted experience.";
|
||||
"NewVersion" = "Current version v.%@\nAvailable version v.%@\n\nPlease update to the latest version for the best experience.";
|
||||
|
||||
"SKIP" = "SKIP";
|
||||
"DON'T SHOW" = "DON'T SHOW";
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
"Explicit" = "Explicit-контент";
|
||||
"Kind" = "Тип";
|
||||
"Title" = "Название";
|
||||
"Channel" = "Канал";
|
||||
"Album" = "Альбом";
|
||||
"Artist" = "Исполнитель";
|
||||
"Year" = "Год";
|
||||
|
|
@ -84,6 +85,9 @@
|
|||
"Loading" = "Загрузка";
|
||||
"Download started" = "Скачивается";
|
||||
"Saved!" = "Сохранено!";
|
||||
"Error!" = "Ошибка!";
|
||||
"uYou did not find any quality to download" = "uYou не смог найти ни одной скачиваемой версии";
|
||||
"No links found" = "Не удалось найти ссылки";
|
||||
"Exported successfully" = "Экспортировано";
|
||||
"Renamed successfully" = "Переименовано";
|
||||
"Downloading Thumbnail" = "Загрузка обложки";
|
||||
|
|
@ -91,7 +95,16 @@
|
|||
"Image updated successfully" = "Обложка обновлена";
|
||||
"Invalid YouTube link" = "Неверная ссылка";
|
||||
|
||||
/* Download status */
|
||||
"Merging video with audio into MP4..." = "Слияние файлов в MP4...";
|
||||
"Adding Metadata to the M4A..." = "Добавление метаданных в M4A...";
|
||||
"Merging video with audio into MKV..." = "Слияние файлов в MKV...";
|
||||
"Converting MKV video into MP4..." = "Конвертация MKV в MP4...";
|
||||
"Error: Conversion cancelled by user" = "Ошибка: Конвертация отменена пользователем";
|
||||
"ConversionFailedWithCode" = "Ошибка: Конвертация не удалась. Код ошибки";
|
||||
|
||||
/* Settings */
|
||||
"Show uYou settings" = "Перейти в настройки uYou";
|
||||
"QUALITY AND FORMAT" = "КАЧЕСТВО И ФОРМАТ";
|
||||
"Show Formats" = "Отображаемые форматы";
|
||||
|
||||
|
|
@ -137,7 +150,7 @@
|
|||
"uYou Fullscreen to The Right" = "Поворот экрана вправо";
|
||||
"Playback Speed Controls" = "Кнопки управления скоростью";
|
||||
"Enable \"uYou Gestures Controls\"" = "Включить управление жестами";
|
||||
"uYou Gestures Controls: It can let you drag your finger left/right on the top/bottom of the video screen to adjust the volume/brightness/seek.\n\nChanging settings require restarting the YouTube app" = "Управление жестами «uYou» позволяет проводить пальцем влево и вправо по нижней и верхней части плеера для регулировки громкости, яркости и перемотки.\n\nДля вступления настроек в силу перезапустите YouTube.";
|
||||
"uYou Gestures Controls: It can let you drag your finger left/right on the top/bottom of the video screen to adjust the volume/brightness/seek.\n\nChanging settings require restarting the YouTube app." = "Управление жестами «uYou» позволяет проводить пальцем влево и вправо по нижней и верхней части плеера для регулировки громкости, яркости и перемотки.\n\nДля вступления настроек в силу перезапустите YouTube.";
|
||||
"Disable Auto Play Video" = "Запретить автовоспроизведение";
|
||||
"Hide Shorts Cells" = "Скрыть Shorts";
|
||||
"Hide Fullscreen Button" = "Скрыть кнопку полноэкранного режима";
|
||||
|
|
@ -172,6 +185,7 @@
|
|||
|
||||
"Hide Tabs" = "Скрыть вкладки";
|
||||
"YT Tabs" = "Скрыть вкладки";
|
||||
"Hide uYou Tab" = "Скрыть вкладку uYou";
|
||||
"Hide Shorts Tab" = "Скрыть Shorts";
|
||||
"Hide Create Tab" = "Скрыть Создать (+)";
|
||||
"Hide Subscriptions Tab" = "Скрыть Подписки";
|
||||
|
|
@ -213,8 +227,10 @@
|
|||
"You can easily migrate all of your videos/audios from \"Cercube\" to \"uYou\" with a tap of a button!\n\nPlease choose one of the following:" = "Теперь вы с легкостью сможете перенести все свои медиафайлы с Cercube в uYou одним нажатием!\n\nВыберите вариант переноса данных:";
|
||||
"Import From DLEasy" = "Перенос файлов из DLEasy";
|
||||
"You can easily migrate all of your videos/audios from \"DLEasy\" to \"uYou\" with a tap of a button!\n\nPlease choose one of the following:" = "Теперь вы с легкостью сможете перенести все свои медиафайлы с DLEasy в uYou одним нажатием!\n\nВыберите вариант переноса данных:";
|
||||
"Copy all" = "Скопировать";
|
||||
"Move all" = "Переместить";
|
||||
"Please choose one of the following:" = "Выберите действие:";
|
||||
"Copy All" = "Скопировать";
|
||||
"Move All" = "Переместить";
|
||||
"Importing" = "Импортируется";
|
||||
|
||||
"Clear Downloading" = "Удалить текущие загрузки";
|
||||
"Are you sure you want to clear all current downloading videos/audios?" = "Уверены, что хотите удалить все загружаемые медиафайлы?";
|
||||
|
|
@ -229,7 +245,8 @@
|
|||
"Automatically Check For Updates" = "Проверять обновления";
|
||||
"Check For Update" = "Проверить наличие обновлений";
|
||||
"UpToDate" = "Данная версия является актуальной. Версия: %@";
|
||||
"NewVersion" = "Доступна новая, %@ версия uYou. Не забывайте обновляться до последней версии для обеспечения плавного и бесперебойного опыта.";
|
||||
"NewVersionOld" = "Доступна новая версия: %@. Не забывайте обновляться до последней версии для обеспечения плавного и бесперебойного опыта.";
|
||||
"NewVersion" = "Текущая версия: %@\nДоступная версия: %@\n\nПожалуйста, обновитесь до последней версии для лучшей совместимости.";
|
||||
|
||||
"SKIP" = "Позже";
|
||||
"DON'T SHOW" = "Скрыть";
|
||||
|
|
|
|||
Loading…
Reference in a new issue