Преглед изворни кода

rename non_proxy to without_proxy

Shun Miyazawa пре 5 година
родитељ
комит
737fb2b47b

+ 2 - 2
resource/locales/en_US/admin/admin.json

@@ -257,8 +257,8 @@
       "discard": "Discard",
       "discard": "Discard",
       "generate": "Generate"
       "generate": "Generate"
     },
     },
-    "custom_bot_non_proxy_settings": "Custom bot (non-proxy) Settings",
-    "non_proxy": {
+    "custom_bot_without_proxy_settings": "Custom bot (non-proxy) Settings",
+    "without_proxy": {
       "create_bot": "Create Bot"
       "create_bot": "Create Bot"
     }
     }
   },
   },

+ 2 - 2
resource/locales/ja_JP/admin/admin.json

@@ -255,8 +255,8 @@
       "discard": "破棄",
       "discard": "破棄",
       "generate": "発行"
       "generate": "発行"
     },
     },
-    "custom_bot_non_proxy_settings": "Custom bot (non-proxy) 設定",
-    "non_proxy": {
+    "custom_bot_without_proxy_settings": "Custom bot (non-proxy) 設定",
+    "without_proxy": {
       "create_bot": "Bot を作成する"
       "create_bot": "Bot を作成する"
     }
     }
   },
   },

+ 2 - 2
resource/locales/zh_CN/admin/admin.json

@@ -265,8 +265,8 @@
       "discard": "丢弃",
       "discard": "丢弃",
       "generate": "生成"
       "generate": "生成"
     },
     },
-    "custom_bot_non_proxy_settings": "Custom bot (non-proxy) 设置",
-    "non_proxy": {
+    "custom_bot_without_proxy_settings": "Custom bot (non-proxy) 设置",
+    "without_proxy": {
       "create_bot": "创建 Bot"
       "create_bot": "创建 Bot"
     }
     }
   },
   },

+ 2 - 2
src/client/js/components/Admin/SlackIntegration/CustomBotNonProxySettings.jsx

@@ -43,7 +43,7 @@ const CustomBotWithoutProxySettings = (props) => {
         slackBotToken,
         slackBotToken,
         botType,
         botType,
       });
       });
-      toastSuccess(t('toaster.update_successed', { target: t('admin:slack_integration.custom_bot_non_proxy_settings') }));
+      toastSuccess(t('toaster.update_successed', { target: t('admin:slack_integration.custom_bot_without_proxy_settings') }));
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);
@@ -59,7 +59,7 @@ const CustomBotWithoutProxySettings = (props) => {
             className="btn btn-primary text-nowrap mx-1"
             className="btn btn-primary text-nowrap mx-1"
             onClick={() => window.open('https://api.slack.com/apps', '_blank')}
             onClick={() => window.open('https://api.slack.com/apps', '_blank')}
           >
           >
-            {t('slack_integration.non_proxy.create_bot')}
+            {t('slack_integration.without_proxy.create_bot')}
           </button>
           </button>
         </div>
         </div>
       </div>
       </div>

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

@@ -18,7 +18,7 @@ function SlackIntegration() {
 
 
       <div className="row">
       <div className="row">
         <div className="col-lg-12">
         <div className="col-lg-12">
-          <h2 className="admin-setting-header">{t('slack_integration.custom_bot_non_proxy_settings')}</h2>
+          <h2 className="admin-setting-header">{t('slack_integration.custom_bot_without_proxy_settings')}</h2>
           <CustomBotWithoutProxySettings />
           <CustomBotWithoutProxySettings />
         </div>
         </div>
       </div>
       </div>