From b7fc23bb52239cbae1834e5c6cb04fe961d84e8c Mon Sep 17 00:00:00 2001
From: Vladimir Barinov <veselcraft@icloud.com>
Date: Sat, 19 Apr 2025 17:37:59 +0300
Subject: [PATCH] fix(pda), chore(locale): adapt for pda (#1276)

---
 Web/Presenters/OpenVKPresenter.php | 6 +++++-
 locales/en.strings                 | 1 +
 locales/ru.strings                 | 2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php
index 478670f0..76f4c845 100644
--- a/Web/Presenters/OpenVKPresenter.php
+++ b/Web/Presenters/OpenVKPresenter.php
@@ -371,7 +371,11 @@ abstract class OpenVKPresenter extends SimplePresenter
            $whichbrowser->isEngine('NetFront') || // PSP and other japanese portable systems
            $whichbrowser->isOs('Android') ||
            $whichbrowser->isOs('iOS') ||
-           $whichbrowser->isBrowser('Internet Explorer', '<=', '8')) {
+           $whichbrowser->isBrowser('BlackBerry Browser') ||
+           $whichbrowser->isBrowser('Internet Explorer', '<=', '8') ||
+           $whichbrowser->isBrowser('Firefox', '<=', '47') ||
+           $whichbrowser->isBrowser('Safari', '<=', '7') ||
+           $whichbrowser->isBrowser('Google Chrome', '<=', '35')) {
             // yeah, it's old, but ios and android are?
             if ($whichbrowser->isOs('iOS') && $whichbrowser->isOs('iOS', '<=', '9')) {
                 return true;
diff --git a/locales/en.strings b/locales/en.strings
index eb2cd82b..bca784ef 100644
--- a/locales/en.strings
+++ b/locales/en.strings
@@ -2235,6 +2235,7 @@
 "mobile_like" = "Like";
 "mobile_user_info_hide" = "Hide";
 "mobile_user_info_show_details" = "Show details";
+"mobile_attachment_only_for_pc" = "This attachments is not implemented for PDA version. Please, view it on PC.";
 
 /* Fullscreen player */
 
diff --git a/locales/ru.strings b/locales/ru.strings
index 6122b9a7..f933d724 100644
--- a/locales/ru.strings
+++ b/locales/ru.strings
@@ -2130,6 +2130,7 @@
 "mobile_like" = "Нравится";
 "mobile_user_info_hide" = "Скрыть";
 "mobile_user_info_show_details" = "Показать подробнее";
+"mobile_attachment_only_for_pc" = "Вложение недоступно в PDA версии, его просмотр возможен только с другого устройства";
 
 /* Fullscreen player */
 
@@ -2306,3 +2307,4 @@
 "faves_few" = "$1 закладки";
 "faves_many" = "$1 закладок";
 "faves_other" = "$1 закладок";
+