Просмотр исходного кода

translate a note for the use-only-env option

utsushiiro 7 лет назад
Родитель
Сommit
79382bc938

+ 2 - 1
resource/locales/en-US/translation.json

@@ -404,7 +404,8 @@
       "mapping_detail": "Specification of mappings for %s when creating new users",
       "cert_detail1": "PEM-encoded X.509 signing certificate to validate the response from IdP",
       "cert_detail2": "If both are empty, no validation is processed.",
-      "Use env var if empty": "If the value in the database is empty, the value of the environment variable <code>%s</code> is used."
+      "Use env var if empty": "If the value in the database is empty, the value of the environment variable <code>%s</code> is used.",
+      "note for the only env option": "Currently, the setting item that enables or disables the SAML authentication and the highlighted setting items use only the value of environment variables.<br>To change this setting, please change to false or delete the value of the environment variable <code>%s</code> ."
     },
     "OAuth": {
       "register": "Register for %s",

+ 2 - 1
resource/locales/ja/translation.json

@@ -420,7 +420,8 @@
       "mapping_detail": "新規ユーザーの%sに関連付ける属性",
       "cert_detail1": "IdP からのレスポンスの validation を行うための、PEMエンコードされた X.509 証明書",
       "cert_detail2": "どちらの値も空の場合、validation 自体を行いません",
-      "Use env var if empty": "データベース側の値が空の場合、環境変数 <code>%s</code> の値を利用します"
+      "Use env var if empty": "データベース側の値が空の場合、環境変数 <code>%s</code> の値を利用します",
+      "note for the only env option": "現在SAML認証のON/OFFの設定値及びハイライトされている設定値は環境変数の値のみを使用するようになっています<br>この設定を変更する場合は環境変数 <code>%s</code> の値をfalseに変更もしくは削除してください"
     },
     "OAuth": {
       "register": "%sに登録",

+ 2 - 2
src/server/service/config-loader.js

@@ -110,9 +110,9 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
   //   type:    ,
   //   default:
   // },
-  SAML_USES_ONLY_ENV_VARS: {
+  SAML_USES_ONLY_ENV_VARS_FOR_SOME_OPTIONS: {
     ns:      'crowi',
-    key:     'security:passport-saml:useOnlyEnvVars',
+    key:     'security:passport-saml:useOnlyEnvVarsForSomeOptions',
     type:    TYPES.BOOLEAN,
     default: false
   },

+ 2 - 3
src/server/views/admin/widget/passport/saml.html

@@ -4,7 +4,7 @@
 
   {% set nameForIsSamlEnabled = "settingForm[security:passport-saml:isEnabled]" %}
   {% set isSamlEnabled  = getConfig('crowi', 'security:passport-saml:isEnabled') %}
-  {% set useOnlyEnvVars = getConfig('crowi', 'security:passport-saml:useOnlyEnvVars') %}
+  {% set useOnlyEnvVars = getConfig('crowi', 'security:passport-saml:useOnlyEnvVarsForSomeOptions') %}
 
   <style>
     .authentication-settings-table {
@@ -31,8 +31,7 @@
 
   {% if useOnlyEnvVars %}
     <p class="alert alert-info">
-      現在SAML認証の一部の設定値は環境変数の値のみを使用するようになっています (ハイライトされているものが対象の項目です)<br>
-      この設定を変更する場合は環境変数 <code>SAML_USES_ONLY_ENV_VARS_FOR_SOME_OPTIONS</code> の値をfalseに変更もしくは削除してください
+      {{ t("security_setting.SAML.note for the only env option", "SAML_USES_ONLY_ENV_VARS_FOR_SOME_OPTIONS") }}
     </p>
   {% endif %}