Browse Source

Add a testing badge and warning text on options page.

FelisCatus 8 years ago
parent
commit
2f5c0cb0b1

+ 6 - 0
omega-locales/ach/LC_MESSAGES/omega-web.po

@@ -217,6 +217,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1212,6 +1215,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/cs/LC_MESSAGES/omega-web.po

@@ -219,6 +219,9 @@ msgstr "Obnovit"
 msgid "options_title"
 msgstr "SwitchyOmega Nastavení"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Nastavení"
 
@@ -1208,6 +1211,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/de/LC_MESSAGES/omega-web.po

@@ -222,6 +222,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1217,6 +1220,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 7 - 1
omega-locales/en_US/LC_MESSAGES/omega-web.po

@@ -4,7 +4,7 @@ msgstr ""
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2015-02-13 10:29+0000\n"
 "PO-Revision-Date: 2015-02-17 07:02+0200\n"
-"Last-Translator: FelisCatus <shyc2010@gmail.com>\n"
+"Last-Translator: FelisCatus <catux@gmail.com>\n"
 "Language-Team: English (United States) "
 "<https://hosted.weblate.org/projects/switchyomega/main/en_US/>\n"
 "Language: en_US\n"
@@ -218,6 +218,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1194,6 +1197,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/es_AR/LC_MESSAGES/omega-web.po

@@ -222,6 +222,9 @@ msgstr "Restaurar"
 msgid "options_title"
 msgstr "Opciones SwitchyOmega"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Configuraciones"
 
@@ -1217,6 +1220,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/fa/LC_MESSAGES/omega-web.po

@@ -225,6 +225,9 @@ msgstr "بازگرداندن"
 msgid "options_title"
 msgstr "تنظیمات SwitchyOmega"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "تنظیمات"
 
@@ -1221,6 +1224,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/fr/LC_MESSAGES/omega-web.po

@@ -219,6 +219,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1214,6 +1217,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/is/LC_MESSAGES/omega-web.po

@@ -173,6 +173,9 @@ msgstr ""
 msgid "options_title"
 msgstr ""
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr ""
 
@@ -1017,6 +1020,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/ja/LC_MESSAGES/omega-web.po

@@ -214,6 +214,9 @@ msgstr "復元"
 msgid "options_title"
 msgstr "SwitchyOmega オプション"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "設定"
 
@@ -1202,6 +1205,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/nb_NO/LC_MESSAGES/omega-web.po

@@ -181,6 +181,9 @@ msgstr "Gjenopprett"
 msgid "options_title"
 msgstr "SwitchyOmega-valg"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Innstillinger"
 
@@ -1055,6 +1058,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/nl/LC_MESSAGES/omega-web.po

@@ -163,6 +163,9 @@ msgstr ""
 msgid "options_title"
 msgstr ""
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr ""
 
@@ -1006,6 +1009,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/pt_BR/LC_MESSAGES/omega-web.po

@@ -218,6 +218,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1213,6 +1216,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/ru/LC_MESSAGES/omega-web.po

@@ -222,6 +222,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1217,6 +1220,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/sk/LC_MESSAGES/omega-web.po

@@ -172,6 +172,9 @@ msgstr ""
 msgid "options_title"
 msgstr ""
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr ""
 
@@ -1016,6 +1019,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/sl/LC_MESSAGES/omega-web.po

@@ -174,6 +174,9 @@ msgstr ""
 msgid "options_title"
 msgstr ""
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr ""
 
@@ -1018,6 +1021,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 6 - 0
omega-locales/tr/LC_MESSAGES/omega-web.po

@@ -221,6 +221,9 @@ msgstr "Restore"
 msgid "options_title"
 msgstr "SwitchyOmega Options"
 
+msgid "options_experimental_badge"
+msgstr "α"
+
 msgid "options_navHeader_setting"
 msgstr "Settings"
 
@@ -1209,6 +1212,9 @@ msgstr "A proxy configuration tool"
 msgid "about_version"
 msgstr "Version $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox support is highly experimental! If you encounter issues, please report using the buttons below."
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega does not provide proxies, VPNs, or other network services."
 

+ 7 - 1
omega-locales/zh_CN/LC_MESSAGES/omega-web.po

@@ -4,7 +4,7 @@ msgstr ""
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2015-02-13 11:05+0000\n"
 "PO-Revision-Date: 2015-02-15 14:52+0200\n"
-"Last-Translator: FelisCatus <shyc2010@gmail.com>\n"
+"Last-Translator: FelisCatus <catusx@gmail.com>\n"
 "Language-Team: Chinese (China) "
 "<https://hosted.weblate.org/projects/switchyomega/main/zh_CN/>\n"
 "Language: zh_CN\n"
@@ -200,6 +200,9 @@ msgstr "还原"
 msgid "options_title"
 msgstr "SwitchyOmega 选项"
 
+msgid "options_experimental_badge"
+msgstr "测试版"
+
 msgid "options_navHeader_setting"
 msgstr "设定"
 
@@ -1070,6 +1073,9 @@ msgstr "一个代理设置工具"
 msgid "about_version"
 msgstr "版本 $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox 浏览器支持目前仍处于早期实验阶段!如果您遇到任何问题,请使用下方的按钮进行反馈。"
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega 不提供代理服务器、VPN等网络服务。"
 

+ 7 - 1
omega-locales/zh_TW/LC_MESSAGES/omega-web.po

@@ -4,7 +4,7 @@ msgstr ""
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2015-02-13 11:15+0000\n"
 "PO-Revision-Date: 2015-02-28 07:52+0200\n"
-"Last-Translator: FelisCatus <shyc2010@gmail.com>\n"
+"Last-Translator: FelisCatus <catusx@gmail.com>\n"
 "Language-Team: Chinese (Taiwan) "
 "<https://hosted.weblate.org/projects/switchyomega/main/zh_TW/>\n"
 "Language: zh_TW\n"
@@ -200,6 +200,9 @@ msgstr "還原"
 msgid "options_title"
 msgstr "SwitchyOmega 選項"
 
+msgid "options_experimental_badge"
+msgstr "測試版"
+
 msgid "options_navHeader_setting"
 msgstr "設定"
 
@@ -1070,6 +1073,9 @@ msgstr "一個代理設置工具"
 msgid "about_version"
 msgstr "版本 $VERSION$"
 
+msgid "about_experimental_warning_moz"
+msgstr "Mozilla Firefox 瀏覽器支持目前仍處於早期實驗階段!如果您遇到任何問題,請使用下方的按鈕進行反饋。"
+
 msgid "about_disclaimer_networkService"
 msgstr "SwitchyOmega 不提供代理伺服器、VPN等網絡服務。"
 

+ 3 - 0
omega-web/src/omega/controllers/master.coffee

@@ -3,6 +3,9 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
   $timeout, $location, $filter, getAttachedName, isProfileNameReserved,
   isProfileNameHidden, dispNameFilter, downloadFile) ->
 
+  if not chrome?.proxy?.settings?
+    $scope.isExperimental = true
+
   tr = $filter('tr')
 
   $rootScope.options = null

+ 2 - 0
omega-web/src/options.jade

@@ -14,6 +14,8 @@ html(lang='en' ng-controller='MasterCtrl' ng-csp)
       header.col-lg-2.col-sm-3.side-nav
         h1
           a(ui-sref='about' title='{{"about_title" | tr}}') {{'appNameShort' | tr}}
+          sup.om-experimental.text-danger(ng-show='isExperimental')
+            | {{'options_experimental_badge' | tr}}
         nav.nav.nav-pills.nav-stacked
           li.nav-header {{'options_navHeader_setting' | tr}}
           li(ui-sref-active='active'): a(ui-sref='ui')

+ 5 - 0
omega-web/src/partials/about.jade

@@ -1,5 +1,10 @@
 .page-header
   h2 {{'about_title' | tr}}
+section.omega-experimental(ng-show='isExperimental')
+  p.alert.alert-danger
+    span.glyphicon.glyphicon-warning-sign
+    = ' '
+    span {{'about_experimental_warning_moz' | tr}}
 section
   .media(style='margin: 1em 0')
     .media-left