Browse Source

调整语言文件。

oldj 9 years ago
parent
commit
82dfa6e8e1
7 changed files with 327 additions and 285 deletions
  1. 159 133
      app/build/bundle.js
  2. 1 1
      app/package.json
  3. 3 129
      app/src/lang.js
  4. 71 0
      app/src/lang/cn.js
  5. 71 0
      app/src/lang/en.js
  6. 1 1
      app/version.js
  7. 21 21
      package.json

+ 159 - 133
app/build/bundle.js

@@ -21519,7 +21519,7 @@
 	
 	var _preferences2 = _interopRequireDefault(_preferences);
 	
-	__webpack_require__(232);
+	__webpack_require__(234);
 	
 	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 	
@@ -23369,7 +23369,7 @@
 
 	"use strict";
 	
-	exports.version = [3, 2, 0, 4176];
+	exports.version = [3, 2, 0, 4177];
 
 /***/ },
 /* 202 */
@@ -34169,7 +34169,7 @@
 
 /***/ },
 /* 231 */
-/***/ function(module, exports) {
+/***/ function(module, exports, __webpack_require__) {
 
 	/**
 	 * @author oldj
@@ -34179,134 +34179,8 @@
 	"use strict";
 	
 	var languages = {
-	    'en': {
-	        _lang_name: 'English',
-	        add: 'Add',
-	        new: 'New',
-	        quit: 'Quit',
-	        cancel: 'Cancel',
-	        ok: 'OK',
-	        set_and_back: 'Set and back',
-	        set_and_relaunch_app: 'Set and Relaunch App',
-	        add_host: 'Add new rules.',
-	        edit_host: 'Edit host',
-	        import: 'Import',
-	        export: 'Export',
-	        host_title: 'Host title',
-	        host_title_cant_be_empty: 'Host title could not be empty!',
-	        sys_host_title: 'System Hosts',
-	        input_sudo_pswd: 'Input your sudo password',
-	        sudo_pswd: 'Password',
-	        del_host: 'Delete current host',
-	        confirm_del: 'Are you sure you want to delete this host?',
-	        tmp_clean: 'Temporarily turn off all rules.',
-	        tmp_recover: 'Recover rules.',
-	        new_version_available: 'New version available, download now?',
-	        is_updated_title: 'You are up to date!',
-	        is_updated: 'You already have the latest version of SwitchHosts! installed.',
-	        readonly: 'Read only',
-	        where_local: 'local',
-	        where_remote: 'remote',
-	        remote_hosts: 'Remote hosts',
-	        url: 'URL',
-	        bad_url: 'URL is not valid.',
-	        auto_refresh: 'Auto refresh',
-	        last_refresh: 'Last refresh: ',
-	        refresh: 'Refresh',
-	        never: 'never',
-	        hour: 'hour',
-	        hours: 'hours',
-	        day: 'day',
-	        days: 'days',
-	        feedback: 'Feedback',
-	        homepage: 'Homepage',
-	        hide_dock_icon: 'Hide Dock Icon',
-	        show_dock_icon: 'Show Dock Icon',
-	        toggle_dock_icon: 'Toggle Dock Icon',
-	        no_valid_host_found: 'There is no valid host in the file.',
-	        confirm_import: 'You sure you want to import it? The original rules will be overwriten, this operation can not be undone.',
-	        please_run_as_admin: 'Please run SwitchHosts! as an Administrator.',
-	        preferences: 'Preferences',
-	        language: 'Language',
-	        should_restart_after_change_language: 'Should relaunch this App after changing language.',
-	        untitled: 'untitled',
-	        file: 'File',
-	        edit: 'Edit',
-	        view: 'View',
-	        window: 'Window',
-	        help: 'Help',
-	        pref_after_cmd: 'Command after Host applied',
-	        pref_after_cmd_info: 'The following system commands will be executed when Host applied:',
-	        pref_after_cmd_placeholder: 'input your commands here',
-	        pref_choice_mode: 'Choide mode',
-	        pref_choice_single: 'Single choice',
-	        pref_choice_multiple: 'Multiple choice',
-	        search: 'Search'
-	    },
-	    'cn': {
-	        _lang_name: '简体中文',
-	        add: '添加',
-	        new: '新建',
-	        quit: '退出',
-	        cancel: '取消',
-	        ok: '确定',
-	        set_and_back: '设置并返回',
-	        set_and_relaunch_app: '确定并重启程序',
-	        add_host: '添加 host 规则',
-	        edit_host: '修改 host',
-	        import: '导入',
-	        export: '导出',
-	        host_title: 'host 方案名',
-	        host_title_cant_be_empty: 'Host 方案名不能为空!',
-	        sys_host_title: '系统 Hosts',
-	        input_sudo_pswd: '请输入您的开机密码(sudo 密码)',
-	        sudo_pswd: '密码',
-	        del_host: '删除当前 host',
-	        confirm_del: '确定要删除此 host 吗?',
-	        tmp_clean: '临时去掉所有绑定',
-	        tmp_recover: '恢复绑定',
-	        new_version_available: '检测到新版本,立刻下载?',
-	        is_updated_title: '已是最新',
-	        is_updated: '当前版本是最新版本。',
-	        readonly: '只读',
-	        where_local: '本地',
-	        where_remote: '远程',
-	        remote_hosts: '远程方案',
-	        url: 'URL 地址',
-	        bad_url: 'URL 地址有误。',
-	        auto_refresh: '自动更新',
-	        last_refresh: '上次更新:',
-	        refresh: '刷新',
-	        never: '从不',
-	        hour: '小时',
-	        hours: '小时',
-	        day: '天',
-	        days: '天',
-	        feedback: '反馈',
-	        homepage: '主页',
-	        hide_dock_icon: '隐藏 Dock 图标',
-	        show_dock_icon: '显示 Dock 图标',
-	        toggle_dock_icon: '显示/隐藏 Dock 图标',
-	        no_valid_host_found: '所指定的文件中未找到合法的 host 配置',
-	        confirm_import: '确定要导入吗?原方案列表将被覆盖,此操作不可撤销。',
-	        please_run_as_admin: '请以管理员身份运行 SwitchHosts!',
-	        preferences: '设置',
-	        language: '语言',
-	        should_restart_after_change_language: '修改语言后需要重启应用方可生效。',
-	        untitled: '未命名',
-	        file: '文件',
-	        edit: '编辑',
-	        view: '视图',
-	        window: '窗口',
-	        help: '帮助',
-	        pref_after_cmd: 'Host 应用后命令',
-	        pref_after_cmd_info: '每次 Host 应用后将执行下面的系统命令:',
-	        pref_after_cmd_placeholder: '在这儿输入你的命令',
-	        pref_choice_mode: '选择模式',
-	        pref_choice_mode_single: '单选',
-	        pref_choice_mode_multiple: '多选',
-	        search: '搜索'
-	    }
+	    'en': __webpack_require__(232).content,
+	    'cn': __webpack_require__(233).content
 	};
 	
 	module.exports = {
@@ -34336,12 +34210,164 @@
 
 /***/ },
 /* 232 */
+/***/ function(module, exports) {
+
+	/**
+	 * @author oldj
+	 * @blog http://oldj.net
+	 */
+	
+	'use strict';
+	
+	exports.content = {
+	    _lang_name: 'English',
+	    add: 'Add',
+	    new: 'New',
+	    quit: 'Quit',
+	    cancel: 'Cancel',
+	    ok: 'OK',
+	    set_and_back: 'Set and back',
+	    set_and_relaunch_app: 'Set and Relaunch App',
+	    add_host: 'Add new rules.',
+	    edit_host: 'Edit host',
+	    import: 'Import',
+	    export: 'Export',
+	    host_title: 'Host title',
+	    host_title_cant_be_empty: 'Host title could not be empty!',
+	    sys_host_title: 'System Hosts',
+	    input_sudo_pswd: 'Input your sudo password',
+	    sudo_pswd: 'Password',
+	    del_host: 'Delete current host',
+	    confirm_del: 'Are you sure you want to delete this host?',
+	    tmp_clean: 'Temporarily turn off all rules.',
+	    tmp_recover: 'Recover rules.',
+	    new_version_available: 'New version available, download now?',
+	    is_updated_title: 'You are up to date!',
+	    is_updated: 'You already have the latest version of SwitchHosts! installed.',
+	    readonly: 'Read only',
+	    where_local: 'local',
+	    where_remote: 'remote',
+	    remote_hosts: 'Remote hosts',
+	    url: 'URL',
+	    bad_url: 'URL is not valid.',
+	    auto_refresh: 'Auto refresh',
+	    last_refresh: 'Last refresh: ',
+	    refresh: 'Refresh',
+	    never: 'never',
+	    hour: 'hour',
+	    hours: 'hours',
+	    day: 'day',
+	    days: 'days',
+	    feedback: 'Feedback',
+	    homepage: 'Homepage',
+	    hide_dock_icon: 'Hide Dock Icon',
+	    show_dock_icon: 'Show Dock Icon',
+	    toggle_dock_icon: 'Toggle Dock Icon',
+	    no_valid_host_found: 'There is no valid host in the file.',
+	    confirm_import: 'You sure you want to import it? The original rules will be overwriten, this operation can not be undone.',
+	    please_run_as_admin: 'Please run SwitchHosts! as an Administrator.',
+	    preferences: 'Preferences',
+	    language: 'Language',
+	    should_restart_after_change_language: 'Should relaunch this App after changing language.',
+	    untitled: 'untitled',
+	    file: 'File',
+	    edit: 'Edit',
+	    view: 'View',
+	    window: 'Window',
+	    help: 'Help',
+	    pref_after_cmd: 'Command after Host applied',
+	    pref_after_cmd_info: 'The following system commands will be executed when Host applied:',
+	    pref_after_cmd_placeholder: 'input your commands here',
+	    pref_choice_mode: 'Choide mode',
+	    pref_choice_single: 'Single choice',
+	    pref_choice_multiple: 'Multiple choice',
+	    search: 'Search'
+	};
+
+/***/ },
+/* 233 */
+/***/ function(module, exports) {
+
+	/**
+	 * @author oldj
+	 * @blog http://oldj.net
+	 */
+	
+	'use strict';
+	
+	exports.content = {
+	    _lang_name: '简体中文',
+	    add: '添加',
+	    new: '新建',
+	    quit: '退出',
+	    cancel: '取消',
+	    ok: '确定',
+	    set_and_back: '设置并返回',
+	    set_and_relaunch_app: '确定并重启程序',
+	    add_host: '添加 host 规则',
+	    edit_host: '修改 host',
+	    import: '导入',
+	    export: '导出',
+	    host_title: 'host 方案名',
+	    host_title_cant_be_empty: 'Host 方案名不能为空!',
+	    sys_host_title: '系统 Hosts',
+	    input_sudo_pswd: '请输入您的开机密码(sudo 密码)',
+	    sudo_pswd: '密码',
+	    del_host: '删除当前 host',
+	    confirm_del: '确定要删除此 host 吗?',
+	    tmp_clean: '临时去掉所有绑定',
+	    tmp_recover: '恢复绑定',
+	    new_version_available: '检测到新版本,立刻下载?',
+	    is_updated_title: '已是最新',
+	    is_updated: '当前版本是最新版本。',
+	    readonly: '只读',
+	    where_local: '本地',
+	    where_remote: '远程',
+	    remote_hosts: '远程方案',
+	    url: 'URL 地址',
+	    bad_url: 'URL 地址有误。',
+	    auto_refresh: '自动更新',
+	    last_refresh: '上次更新:',
+	    refresh: '刷新',
+	    never: '从不',
+	    hour: '小时',
+	    hours: '小时',
+	    day: '天',
+	    days: '天',
+	    feedback: '反馈',
+	    homepage: '主页',
+	    hide_dock_icon: '隐藏 Dock 图标',
+	    show_dock_icon: '显示 Dock 图标',
+	    toggle_dock_icon: '显示/隐藏 Dock 图标',
+	    no_valid_host_found: '所指定的文件中未找到合法的 host 配置',
+	    confirm_import: '确定要导入吗?原方案列表将被覆盖,此操作不可撤销。',
+	    please_run_as_admin: '请以管理员身份运行 SwitchHosts!',
+	    preferences: '设置',
+	    language: '语言',
+	    should_restart_after_change_language: '修改语言后需要重启应用方可生效。',
+	    untitled: '未命名',
+	    file: '文件',
+	    edit: '编辑',
+	    view: '视图',
+	    window: '窗口',
+	    help: '帮助',
+	    pref_after_cmd: 'Host 应用后命令',
+	    pref_after_cmd_info: '每次 Host 应用后将执行下面的系统命令:',
+	    pref_after_cmd_placeholder: '在这儿输入你的命令',
+	    pref_choice_mode: '选择模式',
+	    pref_choice_mode_single: '单选',
+	    pref_choice_mode_multiple: '多选',
+	    search: '搜索'
+	};
+
+/***/ },
+/* 234 */
 /***/ function(module, exports, __webpack_require__) {
 
 	// style-loader: Adds some css to the DOM by adding a <style> tag
 	
 	// load the styles
-	var content = __webpack_require__(233);
+	var content = __webpack_require__(235);
 	if(typeof content === 'string') content = [[module.id, content, '']];
 	// add the styles to the DOM
 	var update = __webpack_require__(187)(content, {});
@@ -34361,7 +34387,7 @@
 	}
 
 /***/ },
-/* 233 */
+/* 235 */
 /***/ function(module, exports, __webpack_require__) {
 
 	exports = module.exports = __webpack_require__(186)();

+ 1 - 1
app/package.json

@@ -26,4 +26,4 @@
     "request": "^2.74.0"
   },
   "devDependencies": {}
-}
+}

+ 3 - 129
app/src/lang.js

@@ -5,135 +5,9 @@
 
 "use strict";
 
-var languages = {
-    'en': {
-        _lang_name: 'English'
-        , add: 'Add'
-        , new: 'New'
-        , quit: 'Quit'
-        , cancel: 'Cancel'
-        , ok: 'OK'
-        , set_and_back: 'Set and back'
-        , set_and_relaunch_app: 'Set and Relaunch App'
-        , add_host: 'Add new rules.'
-        , edit_host: 'Edit host'
-        , import: 'Import'
-        , export: 'Export'
-        , host_title: 'Host title'
-        , host_title_cant_be_empty: 'Host title could not be empty!'
-        , sys_host_title: 'System Hosts'
-        , input_sudo_pswd: 'Input your sudo password'
-        , sudo_pswd: 'Password'
-        , del_host: 'Delete current host'
-        , confirm_del: 'Are you sure you want to delete this host?'
-        , tmp_clean: 'Temporarily turn off all rules.'
-        , tmp_recover: 'Recover rules.'
-        , new_version_available: 'New version available, download now?'
-        , is_updated_title: 'You are up to date!'
-        , is_updated: 'You already have the latest version of SwitchHosts! installed.'
-        , readonly: 'Read only'
-        , where_local: 'local'
-        , where_remote: 'remote'
-        , remote_hosts: 'Remote hosts'
-        , url: 'URL'
-        , bad_url: 'URL is not valid.'
-        , auto_refresh: 'Auto refresh'
-        , last_refresh: 'Last refresh: '
-        , refresh: 'Refresh'
-        , never: 'never'
-        , hour: 'hour'
-        , hours: 'hours'
-        , day: 'day'
-        , days: 'days'
-        , feedback: 'Feedback'
-        , homepage: 'Homepage'
-        , hide_dock_icon: 'Hide Dock Icon'
-        , show_dock_icon: 'Show Dock Icon'
-        , toggle_dock_icon: 'Toggle Dock Icon'
-        , no_valid_host_found: 'There is no valid host in the file.'
-        , confirm_import: 'You sure you want to import it? The original rules will be overwriten, this operation can not be undone.'
-        , please_run_as_admin: 'Please run SwitchHosts! as an Administrator.'
-        , preferences: 'Preferences'
-        , language: 'Language'
-        , should_restart_after_change_language: 'Should relaunch this App after changing language.'
-        , untitled: 'untitled'
-        , file: 'File'
-        , edit: 'Edit'
-        , view: 'View'
-        , window: 'Window'
-        , help: 'Help'
-        , pref_after_cmd: 'Command after Host applied'
-        , pref_after_cmd_info: 'The following system commands will be executed when Host applied:'
-        , pref_after_cmd_placeholder: 'input your commands here'
-        , pref_choice_mode: 'Choide mode'
-        , pref_choice_single: 'Single choice'
-        , pref_choice_multiple: 'Multiple choice'
-        , search: 'Search'
-    },
-    'cn': {
-        _lang_name: '简体中文'
-        , add: '添加'
-        , new: '新建'
-        , quit: '退出'
-        , cancel: '取消'
-        , ok: '确定'
-        , set_and_back: '设置并返回'
-        , set_and_relaunch_app: '确定并重启程序'
-        , add_host: '添加 host 规则'
-        , edit_host: '修改 host'
-        , import: '导入'
-        , export: '导出'
-        , host_title: 'host 方案名'
-        , host_title_cant_be_empty: 'Host 方案名不能为空!'
-        , sys_host_title: '系统 Hosts'
-        , input_sudo_pswd: '请输入您的开机密码(sudo 密码)'
-        , sudo_pswd: '密码'
-        , del_host: '删除当前 host'
-        , confirm_del: '确定要删除此 host 吗?'
-        , tmp_clean: '临时去掉所有绑定'
-        , tmp_recover: '恢复绑定'
-        , new_version_available: '检测到新版本,立刻下载?'
-        , is_updated_title: '已是最新'
-        , is_updated: '当前版本是最新版本。'
-        , readonly: '只读'
-        , where_local: '本地'
-        , where_remote: '远程'
-        , remote_hosts: '远程方案'
-        , url: 'URL 地址'
-        , bad_url: 'URL 地址有误。'
-        , auto_refresh: '自动更新'
-        , last_refresh: '上次更新:'
-        , refresh: '刷新'
-        , never: '从不'
-        , hour: '小时'
-        , hours: '小时'
-        , day: '天'
-        , days: '天'
-        , feedback: '反馈'
-        , homepage: '主页'
-        , hide_dock_icon: '隐藏 Dock 图标'
-        , show_dock_icon: '显示 Dock 图标'
-        , toggle_dock_icon: '显示/隐藏 Dock 图标'
-        , no_valid_host_found: '所指定的文件中未找到合法的 host 配置'
-        , confirm_import: '确定要导入吗?原方案列表将被覆盖,此操作不可撤销。'
-        , please_run_as_admin: '请以管理员身份运行 SwitchHosts!'
-        , preferences: '设置'
-        , language: '语言'
-        , should_restart_after_change_language: '修改语言后需要重启应用方可生效。'
-        , untitled: '未命名'
-        , file: '文件'
-        , edit: '编辑'
-        , view: '视图'
-        , window: '窗口'
-        , help: '帮助'
-        , pref_after_cmd: 'Host 应用后命令'
-        , pref_after_cmd_info: '每次 Host 应用后将执行下面的系统命令:'
-        , pref_after_cmd_placeholder: '在这儿输入你的命令'
-        , pref_choice_mode: '选择模式'
-        , pref_choice_mode_single: '单选'
-        , pref_choice_mode_multiple: '多选'
-        , search: '搜索'
-    }
+const languages = {
+    'en': require('./lang/en').content,
+    'cn': require('./lang/cn').content
 };
 
 module.exports = {

+ 71 - 0
app/src/lang/cn.js

@@ -0,0 +1,71 @@
+/**
+ * @author oldj
+ * @blog http://oldj.net
+ */
+
+'use strict';
+
+exports.content = {
+    _lang_name: '简体中文'
+    , add: '添加'
+    , new: '新建'
+    , quit: '退出'
+    , cancel: '取消'
+    , ok: '确定'
+    , set_and_back: '设置并返回'
+    , set_and_relaunch_app: '确定并重启程序'
+    , add_host: '添加 host 规则'
+    , edit_host: '修改 host'
+    , import: '导入'
+    , export: '导出'
+    , host_title: 'host 方案名'
+    , host_title_cant_be_empty: 'Host 方案名不能为空!'
+    , sys_host_title: '系统 Hosts'
+    , input_sudo_pswd: '请输入您的开机密码(sudo 密码)'
+    , sudo_pswd: '密码'
+    , del_host: '删除当前 host'
+    , confirm_del: '确定要删除此 host 吗?'
+    , tmp_clean: '临时去掉所有绑定'
+    , tmp_recover: '恢复绑定'
+    , new_version_available: '检测到新版本,立刻下载?'
+    , is_updated_title: '已是最新'
+    , is_updated: '当前版本是最新版本。'
+    , readonly: '只读'
+    , where_local: '本地'
+    , where_remote: '远程'
+    , remote_hosts: '远程方案'
+    , url: 'URL 地址'
+    , bad_url: 'URL 地址有误。'
+    , auto_refresh: '自动更新'
+    , last_refresh: '上次更新:'
+    , refresh: '刷新'
+    , never: '从不'
+    , hour: '小时'
+    , hours: '小时'
+    , day: '天'
+    , days: '天'
+    , feedback: '反馈'
+    , homepage: '主页'
+    , hide_dock_icon: '隐藏 Dock 图标'
+    , show_dock_icon: '显示 Dock 图标'
+    , toggle_dock_icon: '显示/隐藏 Dock 图标'
+    , no_valid_host_found: '所指定的文件中未找到合法的 host 配置'
+    , confirm_import: '确定要导入吗?原方案列表将被覆盖,此操作不可撤销。'
+    , please_run_as_admin: '请以管理员身份运行 SwitchHosts!'
+    , preferences: '设置'
+    , language: '语言'
+    , should_restart_after_change_language: '修改语言后需要重启应用方可生效。'
+    , untitled: '未命名'
+    , file: '文件'
+    , edit: '编辑'
+    , view: '视图'
+    , window: '窗口'
+    , help: '帮助'
+    , pref_after_cmd: 'Host 应用后命令'
+    , pref_after_cmd_info: '每次 Host 应用后将执行下面的系统命令:'
+    , pref_after_cmd_placeholder: '在这儿输入你的命令'
+    , pref_choice_mode: '选择模式'
+    , pref_choice_mode_single: '单选'
+    , pref_choice_mode_multiple: '多选'
+    , search: '搜索'
+};

+ 71 - 0
app/src/lang/en.js

@@ -0,0 +1,71 @@
+/**
+ * @author oldj
+ * @blog http://oldj.net
+ */
+
+'use strict';
+
+exports.content = {
+    _lang_name: 'English'
+    , add: 'Add'
+    , new: 'New'
+    , quit: 'Quit'
+    , cancel: 'Cancel'
+    , ok: 'OK'
+    , set_and_back: 'Set and back'
+    , set_and_relaunch_app: 'Set and Relaunch App'
+    , add_host: 'Add new rules.'
+    , edit_host: 'Edit host'
+    , import: 'Import'
+    , export: 'Export'
+    , host_title: 'Host title'
+    , host_title_cant_be_empty: 'Host title could not be empty!'
+    , sys_host_title: 'System Hosts'
+    , input_sudo_pswd: 'Input your sudo password'
+    , sudo_pswd: 'Password'
+    , del_host: 'Delete current host'
+    , confirm_del: 'Are you sure you want to delete this host?'
+    , tmp_clean: 'Temporarily turn off all rules.'
+    , tmp_recover: 'Recover rules.'
+    , new_version_available: 'New version available, download now?'
+    , is_updated_title: 'You are up to date!'
+    , is_updated: 'You already have the latest version of SwitchHosts! installed.'
+    , readonly: 'Read only'
+    , where_local: 'local'
+    , where_remote: 'remote'
+    , remote_hosts: 'Remote hosts'
+    , url: 'URL'
+    , bad_url: 'URL is not valid.'
+    , auto_refresh: 'Auto refresh'
+    , last_refresh: 'Last refresh: '
+    , refresh: 'Refresh'
+    , never: 'never'
+    , hour: 'hour'
+    , hours: 'hours'
+    , day: 'day'
+    , days: 'days'
+    , feedback: 'Feedback'
+    , homepage: 'Homepage'
+    , hide_dock_icon: 'Hide Dock Icon'
+    , show_dock_icon: 'Show Dock Icon'
+    , toggle_dock_icon: 'Toggle Dock Icon'
+    , no_valid_host_found: 'There is no valid host in the file.'
+    , confirm_import: 'You sure you want to import it? The original rules will be overwriten, this operation can not be undone.'
+    , please_run_as_admin: 'Please run SwitchHosts! as an Administrator.'
+    , preferences: 'Preferences'
+    , language: 'Language'
+    , should_restart_after_change_language: 'Should relaunch this App after changing language.'
+    , untitled: 'untitled'
+    , file: 'File'
+    , edit: 'Edit'
+    , view: 'View'
+    , window: 'Window'
+    , help: 'Help'
+    , pref_after_cmd: 'Command after Host applied'
+    , pref_after_cmd_info: 'The following system commands will be executed when Host applied:'
+    , pref_after_cmd_placeholder: 'input your commands here'
+    , pref_choice_mode: 'Choide mode'
+    , pref_choice_single: 'Single choice'
+    , pref_choice_multiple: 'Multiple choice'
+    , search: 'Search'
+};

+ 1 - 1
app/version.js

@@ -1 +1 @@
-exports.version = [3,2,0,4176];
+exports.version = [3,2,0,4177];

+ 21 - 21
package.json

@@ -3,6 +3,25 @@
   "version": "3.2.0",
   "description": "Homepage: [https://oldj.github.io/SwitchHosts/](https://oldj.github.io/SwitchHosts/)",
   "main": "",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "start": "electron app",
+    "dev": "ENV=dev electron app",
+    "build": "gulp ver && webpack",
+    "pack": "gulp pack",
+    "zip": "gulp zip",
+    "make": "webpack && npm run pack && npm run zip"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/oldj/SwitchHosts.git"
+  },
+  "author": "oldj",
+  "license": "MIT",
+  "bugs": {
+    "url": "https://github.com/oldj/SwitchHosts/issues"
+  },
+  "homepage": "https://oldj.github.io/SwitchHosts/",
   "dependencies": {},
   "devDependencies": {
     "babel-core": "^6.20.0",
@@ -22,24 +41,5 @@
     "url-loader": "^0.5.7",
     "webpack": "^1.14.0",
     "yargs": "^6.5.0"
-  },
-  "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1",
-    "start": "electron app",
-    "dev": "ENV=dev electron app",
-    "build": "gulp ver && webpack",
-    "pack": "gulp pack",
-    "zip": "gulp zip",
-    "make": "webpack && npm run pack && npm run zip"
-  },
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/oldj/SwitchHosts.git"
-  },
-  "author": "oldj",
-  "license": "MIT",
-  "bugs": {
-    "url": "https://github.com/oldj/SwitchHosts/issues"
-  },
-  "homepage": "https://oldj.github.io/SwitchHosts/"
-}
+  }
+}