mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-11 07:48:13 -04:00
parent
c6cca1e528
commit
f042fe95a1
@ -32,9 +32,15 @@ msgstr "Auto Switch"
|
|||||||
msgid "profile_direct"
|
msgid "profile_direct"
|
||||||
msgstr "[Direct]"
|
msgstr "[Direct]"
|
||||||
|
|
||||||
|
msgid "profile_direct_badge_text"
|
||||||
|
msgstr "Direct"
|
||||||
|
|
||||||
msgid "profile_system"
|
msgid "profile_system"
|
||||||
msgstr "[System Proxy]"
|
msgstr "[System Proxy]"
|
||||||
|
|
||||||
|
msgid "profile_system_badge_text"
|
||||||
|
msgstr "System"
|
||||||
|
|
||||||
msgid "condition_HostWildcardCondition"
|
msgid "condition_HostWildcardCondition"
|
||||||
msgstr "Host wildcard"
|
msgstr "Host wildcard"
|
||||||
|
|
||||||
@ -267,7 +273,7 @@ msgid "options_addConditionsToBottom"
|
|||||||
msgstr "Put new conditions added using the popup to the bottom of the list."
|
msgstr "Put new conditions added using the popup to the bottom of the list."
|
||||||
|
|
||||||
msgid "options_showResultProfileOnActionBadgeText"
|
msgid "options_showResultProfileOnActionBadgeText"
|
||||||
msgstr "show the result profile's name on the action badge text."
|
msgstr "Show the result profile's name on the action badge text."
|
||||||
|
|
||||||
msgid "options_group_keyboardShortcut"
|
msgid "options_group_keyboardShortcut"
|
||||||
msgstr "Keyboard Shortcut"
|
msgstr "Keyboard Shortcut"
|
||||||
|
@ -32,9 +32,15 @@ msgstr "自动切换"
|
|||||||
msgid "profile_direct"
|
msgid "profile_direct"
|
||||||
msgstr "[直接连接]"
|
msgstr "[直接连接]"
|
||||||
|
|
||||||
|
msgid "profile_direct_badge_text"
|
||||||
|
msgstr "直连"
|
||||||
|
|
||||||
msgid "profile_system"
|
msgid "profile_system"
|
||||||
msgstr "[系统代理]"
|
msgstr "[系统代理]"
|
||||||
|
|
||||||
|
msgid "profile_system_badge_text"
|
||||||
|
msgstr "系统"
|
||||||
|
|
||||||
msgid "condition_HostWildcardCondition"
|
msgid "condition_HostWildcardCondition"
|
||||||
msgstr "域名通配符"
|
msgstr "域名通配符"
|
||||||
|
|
||||||
|
@ -32,9 +32,15 @@ msgstr "自動切換"
|
|||||||
msgid "profile_direct"
|
msgid "profile_direct"
|
||||||
msgstr "[直接連線]"
|
msgstr "[直接連線]"
|
||||||
|
|
||||||
|
msgid "profile_direct_badge_text"
|
||||||
|
msgstr "直連"
|
||||||
|
|
||||||
msgid "profile_system"
|
msgid "profile_system"
|
||||||
msgstr "[系統代理]"
|
msgstr "[系統代理]"
|
||||||
|
|
||||||
|
msgid "profile_system_badge_text"
|
||||||
|
msgstr "系統"
|
||||||
|
|
||||||
msgid "condition_HostWildcardCondition"
|
msgid "condition_HostWildcardCondition"
|
||||||
msgstr "網域萬用字元"
|
msgstr "網域萬用字元"
|
||||||
|
|
||||||
|
@ -195,10 +195,10 @@ zeroBackground = (zeroStorage, opts) ->
|
|||||||
if profile.name != currentName
|
if profile.name != currentName
|
||||||
shortTitle += ' => ' + profile.name # TODO: I18n.
|
shortTitle += ' => ' + profile.name # TODO: I18n.
|
||||||
if options._options['-showResultProfileOnActionBadgeText']
|
if options._options['-showResultProfileOnActionBadgeText']
|
||||||
|
badgeText = profile.name or ''
|
||||||
if profile.builtin
|
if profile.builtin
|
||||||
badgeText = profile.name
|
badgeText = dispName(profile.name + '_badge_text')
|
||||||
else
|
badgeText = badgeText.substring(0, 4)
|
||||||
badgeText = profile.name?.substring(0, 4)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: chrome.i18n.getMessage('browserAction_titleWithResult', [
|
title: chrome.i18n.getMessage('browserAction_titleWithResult', [
|
||||||
|
@ -42,7 +42,7 @@ class ProxyImpl
|
|||||||
_profile = OmegaPac.Profiles.byName(name, options)
|
_profile = OmegaPac.Profiles.byName(name, options)
|
||||||
if _profile
|
if _profile
|
||||||
referenced_profiles.push(_profile)
|
referenced_profiles.push(_profile)
|
||||||
cachedProfiles = profilePacCache.keys().toArray()
|
cachedProfiles = Array.from(profilePacCache.keys())
|
||||||
allProfiles = Object.values(options)
|
allProfiles = Object.values(options)
|
||||||
cachedProfiles.forEach((cachedProfile) ->
|
cachedProfiles.forEach((cachedProfile) ->
|
||||||
if allProfiles.indexOf(cachedProfile) < 0
|
if allProfiles.indexOf(cachedProfile) < 0
|
||||||
|
Loading…
Reference in New Issue
Block a user