Skip to content

Commit

Permalink
feat: add relaunch requirement for user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
reisxd committed Nov 16, 2024
1 parent 39e5c11 commit 4ad860b
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tizenbrew-app/TizenBrew/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="https://tizentube.vercel.app" version="1.4.2" viewmodes="maximized">
<widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="https://tizentube.vercel.app" version="1.4.3" viewmodes="maximized">
<access origin="*" subdomains="true"></access>
<tizen:app-control>
<tizen:src name="index.html" reload="disable"/>
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/da_DK.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Virker på Tizen {version}+)",
"uaBasedOnDevice": "User-Agent er baseret på din Enhed (kan aktivere visse funktioner)",
"setUaTo": "Vil du gerne sætte User-Agent til {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Bemærk, at selvom dette kan have positive effekter, kan der også være negative effekter.",
"language": "Sprog Indstillinger",
"languageDesc": "Skift sproget i appen."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Funktioniert auf Tizen {version}+)",
"uaBasedOnDevice": "User-Agent basierend auf Gerätemodell (sollte einige Features hinzufügen)",
"setUaTo": "Willst du den User-Agent auf {userAgent} setzen?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Beachte: Dies könnte sowohl positive als auch negative Effekte haben.",
"language": "Spracheinstellungen",
"languageDesc": "Ändere die Sprache der App."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/el_GR.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Λειτουργεί στο Tizen {version}+)",
"uaBasedOnDevice": "User-Agent με βάση τη συσκευή (Λογικά θα επιφέρει κάποιες δυνατότητες)",
"setUaTo": "Θέλετε να ρυθμίσετε το User-Agent σε {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Σημειώστε ότι ενώ αυτό θα μπορούσε να έχει θετικά αποτελέσματα, θα μπορούσε επίσης να επιφέρει και αρνητικά αποτελέμσατα.",
"language": "Ρυθμίσεις Γλώσσας",
"languageDesc": "Αλλαγή της γλώσσας της εφαρμογής."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Works on Tizen {version}+)",
"uaBasedOnDevice": "User-Agent based on Device (should bring some features)",
"setUaTo": "Do you want to set the User-Agent to {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Note that while this could have positive effects, there could also be negative effects.",
"language": "Language Settings",
"languageDesc": "Change the language of the app."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/es_BO.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"worksOnTizen": "(Funciona en la(s) version(es) {version}+ de Tizen)",
"uaBasedOnDevice": "Agente de Usuario basado en el dispositivo (debería aportar algunas funciones)",
"setUaTo": "¿Deseas establecer el Agente de Usuario como {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Ten en cuenta que, aunque esto podría tener efectos positivos, también podría tener efectos negativos.",
"language": "Ajustes de Idioma",
"languageDesc": "Cambia el idioma de la aplicación."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/fi_FI.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Toimii Tizen-versiossa {version}+)",
"uaBasedOnDevice": "User-Agent laitteen mukaan (saattaa tuoda joitain ominaisuuksia)",
"setUaTo": "Haluatko asettaa User-Agentin arvoon {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Huomaa, että vaikka tällä voi olla positiivisia vaikutuksia, sillä voi olla myös negatiivisia vaikutuksia.",
"language": "Kieliasetukset",
"languageDesc": "Vaihda sovelluksen kieli."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Fonctionne avec Tizen {version}+)",
"uaBasedOnDevice": "User-Agent basé sur le périphérique (amènes certaines fonctionnalitée)",
"setUaTo": "Voulez-vous paramétrer le User-Agent en tant que {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Notice : ceci peut avoir des effets aussi bien positifs que négatifs.",
"language": "Paramètres de langue",
"languageDesc": "Changer le langage de votre application."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/hu_HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "({version}+ Tizen-en működik )",
"uaBasedOnDevice": "User-Agent (böngészőazonosító) az eszköz alapján (különböző funkciókat adhat)",
"setUaTo": "Be akarod állítani a {userAgent} User-Agentet?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Vedd figyelembe hogy ennek lehetnek pozitív hatásai de ugyan így negatívak is.",
"language": "Nyelvi beállítások",
"languageDesc": "Változtad meg az app nyelvét."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/it_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Funziona su Tizen {version}+)",
"uaBasedOnDevice": "User-Agent basato sul dispositivo (dovrebbe portare alcune features)",
"setUaTo": "Vuoi impostare lo User-Agent in {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Nota che sebbene questo possa avere effetti positivi, è possibile possa averne anche di negativi.",
"language": "Impostazioni lingua",
"languageDesc": "Cambia la lingua dell'app"
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/nl_NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Werkt op Tizen {version}+)",
"uaBasedOnDevice": "User-Agent gebaseerd op Systeem (Zou functies toevoegen)",
"setUaTo": "Wil je de User-Agent Veranderen naar {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Let op er zijn positieve effecten, maar ook negatieve effecten.",
"language": "Taal Instellingen",
"languageDesc": "Verander de taal van TizenBrew."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/pl_PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Działa na Tizen {version}+)",
"uaBasedOnDevice": "User-Agent bazujący na urządzeniu (może wprowadzić pewne funkcje)",
"setUaTo": "Czy chcesz ustawić User-Agent na {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Zwróć uwagę, że choć to może przynieść pozytywne efekty, mogą również wystąpić efekty negatywne.",
"language": "Ustawienia języka",
"languageDesc": "Zmień język aplikacji."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Funciona no Tizen {version}+)",
"uaBasedOnDevice": "User-Agent baseado no Dispositivo (deve trazer alguns recursos)",
"setUaTo": "Você quer mudar o User-Agent para {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Note que mesmo que isso possa ter efeitos positivos, também poderá ter efeitos negativos.",
"language": "Configurações de idioma",
"languageDesc": "Mudar o idioma do aplicativo."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/ru_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Работает на Tizen {version}+)",
"uaBasedOnDevice": "User-Agent на основе устройства (должен добавить некоторые функции)",
"setUaTo": "Вы хотите установить User-Agent на {userAgent}?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Обратите внимание, что, несмотря на возможные положительные эффекты, могут быть и отрицательные.",
"language": "Настройки языка",
"languageDesc": "Измените язык приложения."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/th_TH.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(ทำงานบน Tizen {version}+)",
"uaBasedOnDevice": "User-Agent ที่อิงตามอุปกรณ์ (ควรนำฟีเจอร์มาด้วย)",
"setUaTo": "คุณต้องการที่จะเซ็ท User-Agent ให้เป็น {userAgent}ไหม?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "โปรดจำด้วยนี่อาจจะมีผลกระทบที่ดี, แต่มันก็อาจจะมีผบกระทบที่ไม่ได้ด้วย.",
"language": "การตั้งค่าภาษา",
"languageDesc": "เปลี่ยนภาษาของแอปพลิเคชั่น."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/tr_TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Tizen {version} ve üzerinde çalışır)",
"uaBasedOnDevice": "Cihaza Dayalı User-Agent (bazı özellikler getirebilir)",
"setUaTo": "User-Agent'ı {userAgent} olarak ayarlamak istiyor musun?",
"uaSetRelaunch": "User-Agent değiştirildi. Değişiklikleri uygulamak için uygulamayı yeniden başlatın.",
"uaNegativeEffects": "Bunun olumlu etkileri olabileceği gibi, olumsuz etkileri de olabileceğini unutmayın.",
"language": "Dil Ayarları",
"languageDesc": "Uygulamanın dilini değiştirin."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/vi_VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(Hoạt động trên Tizen {version}+)",
"uaBasedOnDevice": "User-Agent của Thiết bị (có thể thêm một số tính năng)",
"setUaTo": "Bạn có muốn đổi User-Agent thành {userAgent} không?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "Lưu ý rằng bên cạnh việc có thể sửa một số tính năng, đổi User-Agent cũng có thể gây ra một số lỗi.",
"language": "Cài đặt Ngôn ngữ",
"languageDesc": "Thay đổi ngôn ngữ ứng dụng."
Expand Down
1 change: 1 addition & 0 deletions tizenbrew-app/TizenBrew/lang/zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"worksOnTizen": "(能用於Tizen 版本{version}以上 )",
"uaBasedOnDevice": "基於裝置的使用者代理(會帶來一些影響...)",
"setUaTo": "您想設定使用者代理(UA)到 {userAgent}嗎?",
"uaSetRelaunch": "User-Agent set. Relaunch the app to apply changes.",
"uaNegativeEffects": "請注意,這有可能會造成好效果,但也有造成負面影響",
"language": "語言設定",
"languageDesc": "改變程式語言"
Expand Down
5 changes: 3 additions & 2 deletions tizenbrew-app/TizenBrew/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,11 @@ <h1>Cobalt 23 ${window.i18n.t('settings.worksOnTizen', { version: 5 })}</h1>
}

function userAgentWarnMenu(userAgent, warn) {
var hasConfirmined = confirm(`${window.i18n.t('settings.setUaTo', { userAgent })}${warn ? `\n${window.i18n.t('settings.uaNegativeEffects')}` : ''}`);
var hasConfirmined = confirm(`${window.i18n.t('settings.setUaTo', { userAgent })}${warn ? ` \n${window.i18n.t('settings.uaNegativeEffects')}` : ''}`);
if (hasConfirmined) {
setUserAgent(userAgent);
location.reload();
alert(window.i18n.t('settings.uaSetRelaunch'));
tizen.application.getCurrentApplication().exit();
}
}

Expand Down

0 comments on commit 4ad860b

Please sign in to comment.