mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
3.0.3
This commit is contained in:
parent
5e43614117
commit
65d5d230af
8 changed files with 40 additions and 16 deletions
2
Makefile
2
Makefile
|
|
@ -6,7 +6,7 @@ DEBUG=0
|
|||
FINALPACKAGE=1
|
||||
TARGET := iphone:clang:latest:13.0
|
||||
ARCHS = arm64
|
||||
PACKAGE_VERSION = 3.0.2
|
||||
PACKAGE_VERSION = 3.0.3
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
|
|
|
|||
30
Tweak.xm
30
Tweak.xm
|
|
@ -24,19 +24,12 @@ static inline NSString *LOC(NSString *key) {
|
|||
%hook UILabel
|
||||
- (void)setText:(NSString *)text {
|
||||
NSString *localizedText = [uYouLocalizationBundle() localizedStringForKey:text value:nil table:nil];
|
||||
NSArray *centered = @[@"SKIP", @"DISMISS", @"UPDATE NOW", @"DON'T SHOW", @"Cancel", @"Copy all", @"Move all"];
|
||||
|
||||
if (localizedText && ![localizedText isEqualToString:text]) {
|
||||
text = localizedText;
|
||||
self.adjustsFontSizeToFitWidth = YES;
|
||||
}
|
||||
|
||||
// Make non-attributed buttons text centered
|
||||
if ([centered containsObject:text]) {
|
||||
self.textAlignment = NSTextAlignmentCenter;
|
||||
self.adjustsFontSizeToFitWidth = YES;
|
||||
}
|
||||
|
||||
// Replace (translate) only a certain part of the text
|
||||
if ([text containsString:@"TOTAL ("]) {
|
||||
text = [NSString stringWithFormat:@"%@ %@", LOC(@"TOTAL"), [text substringFromIndex:[text rangeOfString:@"("].location]];
|
||||
|
|
@ -105,6 +98,25 @@ static inline NSString *LOC(NSString *key) {
|
|||
}
|
||||
%end
|
||||
|
||||
@interface SSBouncyButton : UIButton
|
||||
@end
|
||||
|
||||
// Make non-attributed buttons text centered
|
||||
%hook SSBouncyButton
|
||||
- (void)setTitle:(NSString *)title forState:(UIControlState)state {
|
||||
NSString *localizedText = [uYouLocalizationBundle() localizedStringForKey:title value:nil table:nil];
|
||||
NSArray *centered = @[@"SKIP", @"DISMISS", @"UPDATE NOW", @"DON'T SHOW", @"Cancel", @"Copy all", @"Move all"];
|
||||
|
||||
if ([centered containsObject:title]) {
|
||||
self.titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||
self.titleLabel.adjustsFontSizeToFitWidth = YES;
|
||||
[self.titleLabel sizeToFit];
|
||||
}
|
||||
|
||||
%orig(localizedText, state);
|
||||
}
|
||||
%end
|
||||
|
||||
// Replace (translate) old text to the new one in Navbars
|
||||
%hook _UINavigationBarContentView
|
||||
- (void)setTitle:(NSString *)title {
|
||||
|
|
@ -153,8 +165,8 @@ static inline NSString *LOC(NSString *key) {
|
|||
|
||||
// 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.";
|
||||
NSString *startOfMsg = @"Available version v.";
|
||||
NSString *endOfMsg = @"\n\nPlease update";
|
||||
NSArray *components = [arg4 componentsSeparatedByString:startOfMsg];
|
||||
|
||||
if (components.count > 1) {
|
||||
|
|
|
|||
|
|
@ -182,11 +182,13 @@
|
|||
"uYou Repeat" = "uYou Repeat";
|
||||
"uYou Fullscreen to The Right" = "uYou Fullscreen to The Right";
|
||||
"Playback Speed Controls" = "Playback Speed Controls";
|
||||
"Auto Fullscreen" = "Auto Fullscreen";
|
||||
"Disable Double Tap To Seek" = "Disable Double Tap To Seek";
|
||||
"Auto Play Videos in Fullscreen" = "Auto Play Videos in Fullscreen";
|
||||
"No Suggested Videos at The Video End" = "No Suggested Videos at The Video End";
|
||||
"Fullscreen Always on The Right Side" = "Fullscreen Always on The Right Side";
|
||||
"uYou Gestures Controls" = "uYou Gestures Controls";
|
||||
"Two Fingers Tap to Pause/Play" = "Two Fingers Tap to Pause/Play";
|
||||
"Hide Next/Previous Buttons" = "Hide Next/Previous Buttons";
|
||||
"Replace Next with Fast Forward" = "Replace Next with Fast Forward";
|
||||
"uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app." = "uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app.";
|
||||
|
||||
|
|
|
|||
|
|
@ -182,11 +182,13 @@
|
|||
"uYou Repeat" = "uYou repetir";
|
||||
"uYou Fullscreen to The Right" = "uYou pantalla completa a la derecha";
|
||||
"Playback Speed Controls" = "Controles de velocidad de reproducción";
|
||||
"Auto Fullscreen" = "Pantalla completa automática";
|
||||
"Disable Double Tap To Seek" = "Disable Double Tap To Seek";
|
||||
"Auto Play Videos in Fullscreen" = "Pantalla completa automática";
|
||||
"No Suggested Videos at The Video End" = "No hay vídeos sugeridos al final del vídeo";
|
||||
"Fullscreen Always on The Right Side" = "Pantalla completa siempre en el lado derecho";
|
||||
"uYou Gestures Controls" = "Controles de gestos de uYou";
|
||||
"Two Fingers Tap to Pause/Play" = "Toque con dos dedos para pausar/reproducir";
|
||||
"Hide Next/Previous Buttons" = "Hide Next/Previous Buttons";
|
||||
"Replace Next with Fast Forward" = "Sustituir siguiente por avance rápido";
|
||||
"uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app." = "Controles gestuales uYou: Esta función te permite arrastrar el dedo hacia la izquierda o la derecha en la parte superior, central o inferior de la pantalla de vídeo para ajustar el volumen, el brillo o buscar el vídeo. Para cambiar los ajustes es necesario reiniciar la aplicación YouTube.";
|
||||
|
||||
|
|
|
|||
|
|
@ -182,11 +182,13 @@
|
|||
"uYou Repeat" = "uYouリピート";
|
||||
"uYou Fullscreen to The Right" = "uYouフルスクリーン動画を右に表示";
|
||||
"Playback Speed Controls" = "再生速度コントロール";
|
||||
"Auto Fullscreen" = "自動フルスクリーン";
|
||||
"Disable Double Tap To Seek" = "Disable Double Tap To Seek";
|
||||
"Auto Play Videos in Fullscreen" = "自動フルスクリーン";
|
||||
"No Suggested Videos at The Video End" = "No Suggested Videos at The Video End";
|
||||
"Fullscreen Always on The Right Side" = "常に右フルスクリーン";
|
||||
"uYou Gestures Controls" = "uYouジェスチャーコントロール";
|
||||
"Two Fingers Tap to Pause/Play" = "Two Fingers Tap to Pause/Play";
|
||||
"Hide Next/Previous Buttons" = "Hide Next/Previous Buttons";
|
||||
"Replace Next with Fast Forward" = "Replace Next with Fast Forward";
|
||||
"uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app." = "uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app.";
|
||||
|
||||
|
|
|
|||
|
|
@ -182,11 +182,13 @@
|
|||
"uYou Repeat" = "Кнопка повтора видео";
|
||||
"uYou Fullscreen to The Right" = "Поворот экрана вправо";
|
||||
"Playback Speed Controls" = "Кнопки управления скоростью";
|
||||
"Auto Fullscreen" = "Открывать в полноэкранном режиме";
|
||||
"Disable Double Tap To Seek" = "Отключить перемотку двойным тапом";
|
||||
"Auto Play Videos in Fullscreen" = "Переходить в полноэкранный режим";
|
||||
"No Suggested Videos at The Video End" = "Убрать рекомендации в конце роликов";
|
||||
"Fullscreen Always on The Right Side" = "Полноэкранный режим с поворотом вправо";
|
||||
"uYou Gestures Controls" = "Управление жестами";
|
||||
"Two Fingers Tap to Pause/Play" = "Пауза/Воспр. нажатием двумя пальцами";
|
||||
"Hide Next/Previous Buttons" = "Скрыть кнопки След./Пред.";
|
||||
"Replace Next with Fast Forward" = "Заменить След./Пред. на перемотку";
|
||||
"uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app." = "Управление жестами uYou позволяет проводить пальцем влево и вправо по центру, нижней и верхней части плеера для регулировки громкости, яркости и перемотки. Для вступления настроек в силу перезапустите YouTube.";
|
||||
|
||||
|
|
|
|||
|
|
@ -183,11 +183,13 @@
|
|||
"uYou Repeat" = "Nút lặp lại Video";
|
||||
"uYou Fullscreen to The Right" = "uYou Toàn màn hình bên phải";
|
||||
"Playback Speed Controls" = "Kiểm soát tốc độ phát lại";
|
||||
"Auto Fullscreen" = "Tự động toàn màn hình";
|
||||
"Disable Double Tap To Seek" = "Disable Double Tap To Seek";
|
||||
"Auto Play Videos in Fullscreen" = "Tự động toàn màn hình";
|
||||
"No Suggested Videos at The Video End" = "Không có Video được đề xuất ở cuối Video";
|
||||
"Fullscreen Always on The Right Side" = "Toàn màn hình luôn phía bên phải";
|
||||
"uYou Gestures Controls" = "Điều khiển cử chỉ";
|
||||
"Two Fingers Tap to Pause/Play" = "Nhấn hai ngón tay để Dừng/Phát";
|
||||
"Hide Next/Previous Buttons" = "Hide Next/Previous Buttons";
|
||||
"Replace Next with Fast Forward" = "Thay thế tiếp theo bằng tua nhanh";
|
||||
"uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app." = "Điều khiển cử chỉ: Nó có thể cho phép bạn kéo ngón tay sang trái hoặc phải, trên hoặc dưới của màn hình video để điều chỉnh âm lượng, độ sáng hoặc tìm kiếm video.\nViệc thay đổi cài đặt, yêu cầu khởi động lại ứng dụng YouTube.";
|
||||
|
||||
|
|
|
|||
|
|
@ -183,11 +183,13 @@
|
|||
"uYou Repeat" = "uYou 重複播放";
|
||||
"uYou Fullscreen to The Right" = "uYou 全螢幕顯示在右側";
|
||||
"Playback Speed Controls" = "播放速度控制";
|
||||
"Auto Fullscreen" = "自動全螢幕";
|
||||
"Disable Double Tap To Seek" = "Disable Double Tap To Seek";
|
||||
"Auto Play Videos in Fullscreen" = "自動全螢幕";
|
||||
"No Suggested Videos at The Video End" = "影片結束時不顯示建議影片";
|
||||
"Fullscreen Always on The Right Side" = "全螢幕總在右側";
|
||||
"uYou Gestures Controls" = "uYou 手勢控制";
|
||||
"Two Fingers Tap to Pause/Play" = "兩指點擊暫停/播放";
|
||||
"Hide Next/Previous Buttons" = "Hide Next/Previous Buttons";
|
||||
"Replace Next with Fast Forward" = "將「下一部」替換為「快轉」";
|
||||
"uYou Gesture Controls: This feature allows you to drag your finger left or right on the top, center or bottom of the video screen to adjust the volume, brightness, or seek the video. Changing settings requires restarting the YouTube app." = "uYou 手勢控制:這個功能讓您可以在影片畫面的上方、中間或下方左右滑動手指,來調整音量、亮度或快轉影片。\n\n更改設定需要重新啟動 YouTube 應用程式。";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue