Skip to content

Commit

Permalink
1. fix typo #105
Browse files Browse the repository at this point in the history
2. failed to switch proxies on Firefox #108
  • Loading branch information
zero-top committed Feb 20, 2025
1 parent c6cca1e commit f042fe9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
8 changes: 7 additions & 1 deletion omega-locales/en_US/LC_MESSAGES/omega-web.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ msgstr "Auto Switch"
msgid "profile_direct"
msgstr "[Direct]"

msgid "profile_direct_badge_text"
msgstr "Direct"

msgid "profile_system"
msgstr "[System Proxy]"

msgid "profile_system_badge_text"
msgstr "System"

msgid "condition_HostWildcardCondition"
msgstr "Host wildcard"

Expand Down Expand Up @@ -267,7 +273,7 @@ msgid "options_addConditionsToBottom"
msgstr "Put new conditions added using the popup to the bottom of the list."

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"
msgstr "Keyboard Shortcut"
Expand Down
6 changes: 6 additions & 0 deletions omega-locales/zh_CN/LC_MESSAGES/omega-web.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ msgstr "自动切换"
msgid "profile_direct"
msgstr "[直接连接]"

msgid "profile_direct_badge_text"
msgstr "直连"

msgid "profile_system"
msgstr "[系统代理]"

msgid "profile_system_badge_text"
msgstr "系统"

msgid "condition_HostWildcardCondition"
msgstr "域名通配符"

Expand Down
6 changes: 6 additions & 0 deletions omega-locales/zh_TW/LC_MESSAGES/omega-web.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ msgstr "自動切換"
msgid "profile_direct"
msgstr "[直接連線]"

msgid "profile_direct_badge_text"
msgstr "直連"

msgid "profile_system"
msgstr "[系統代理]"

msgid "profile_system_badge_text"
msgstr "系統"

msgid "condition_HostWildcardCondition"
msgstr "網域萬用字元"

Expand Down
6 changes: 3 additions & 3 deletions omega-target-chromium-extension/src/coffee/background.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ zeroBackground = (zeroStorage, opts) ->
if profile.name != currentName
shortTitle += ' => ' + profile.name # TODO: I18n.
if options._options['-showResultProfileOnActionBadgeText']
badgeText = profile.name or ''
if profile.builtin
badgeText = profile.name
else
badgeText = profile.name?.substring(0, 4)
badgeText = dispName(profile.name + '_badge_text')
badgeText = badgeText.substring(0, 4)

return {
title: chrome.i18n.getMessage('browserAction_titleWithResult', [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ProxyImpl
_profile = OmegaPac.Profiles.byName(name, options)
if _profile
referenced_profiles.push(_profile)
cachedProfiles = profilePacCache.keys().toArray()
cachedProfiles = Array.from(profilePacCache.keys())
allProfiles = Object.values(options)
cachedProfiles.forEach((cachedProfile) ->
if allProfiles.indexOf(cachedProfile) < 0
Expand Down

0 comments on commit f042fe9

Please sign in to comment.