فهرست منبع

security settings

itizawa 6 سال پیش
والد
کامیت
39b3261be9
3فایلهای تغییر یافته به همراه19 افزوده شده و 10 حذف شده
  1. 6 1
      resource/locales/en-US/translation.json
  2. 6 1
      resource/locales/ja/translation.json
  3. 7 8
      src/server/views/admin/security.html

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

@@ -191,7 +191,7 @@
   "Re-enter new password": "Re-enter new password",
   "Re-enter new password": "Re-enter new password",
   "Password is not set": "Password is not set",
   "Password is not set": "Password is not set",
 
 
-  "Security Settings": "Security Settings",
+  "security_settings": "Security Settings",
 
 
   "API Settings": "API Settings",
   "API Settings": "API Settings",
   "API Token Settings": "API Token Settings",
   "API Token Settings": "API Token Settings",
@@ -456,6 +456,11 @@
     "page_listing_1_desc": "Show pages that are restricted by 'Just Me' option when listing/searching",
     "page_listing_1_desc": "Show pages that are restricted by 'Just Me' option when listing/searching",
     "page_listing_2": "Page listing/searching<br>restricted by User Group",
     "page_listing_2": "Page listing/searching<br>restricted by User Group",
     "page_listing_2_desc": "Show pages that are restricted by User Group when listing/searching",
     "page_listing_2_desc": "Show pages that are restricted by User Group when listing/searching",
+    "complete_deletion": "Restrict Complete Deletion of Pages",
+    "complete_deletion_explain": "Restricts users who can completely delete pages to only administrators.",
+    "admin_only": "Admin Only",
+    "admin_and_author": "Admin and Author",
+    "anyone": "Anyone",
 
 
 		"Authentication mechanism settings": "Authentication mechanism settings",
 		"Authentication mechanism settings": "Authentication mechanism settings",
     "note": "Note",
     "note": "Note",

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

@@ -191,7 +191,7 @@
   "Re-enter new password": "(確認用)",
   "Re-enter new password": "(確認用)",
   "Password is not set": "パスワードが設定されていません",
   "Password is not set": "パスワードが設定されていません",
 
 
-  "Security Settings": "セキュリティ設定",
+  "security_settings": "セキュリティ設定",
 
 
   "API Settings": "API設定",
   "API Settings": "API設定",
   "API Token Settings": "API Token設定",
   "API Token Settings": "API Token設定",
@@ -456,6 +456,11 @@
     "page_listing_1_desc": "ページのリスト表示や検索結果において、'自分のみ'に閲覧制限をしているページをアクセス権のないユーザーにも表示します。",
     "page_listing_1_desc": "ページのリスト表示や検索結果において、'自分のみ'に閲覧制限をしているページをアクセス権のないユーザーにも表示します。",
     "page_listing_2": "ページのリスト表示と検索<br>特定グループに閲覧制限しているページ",
     "page_listing_2": "ページのリスト表示と検索<br>特定グループに閲覧制限しているページ",
     "page_listing_2_desc": "ページのリスト表示や検索結果において、特定グループにのみ閲覧制限をしているページをアクセス権のないユーザーにも表示します。",
     "page_listing_2_desc": "ページのリスト表示や検索結果において、特定グループにのみ閲覧制限をしているページをアクセス権のないユーザーにも表示します。",
+    "complete_deletion": "完全削除制限機能",
+    "complete_deletion_explain": "完全削除できるユーザーを制限します。",
+    "admin_only": "管理者のみ可能",
+    "admin_and_author": "管理者とページ作者が可能",
+    "anyone": "誰でも可能",
 
 
     "Authentication mechanism settings":"認証機構設定",
     "Authentication mechanism settings":"認証機構設定",
     "note": "メモ",
     "note": "メモ",

+ 7 - 8
src/server/views/admin/security.html

@@ -5,7 +5,7 @@
 {% block content_header %}
 {% block content_header %}
 <div class="header-wrap">
 <div class="header-wrap">
   <header id="page-header">
   <header id="page-header">
-    <h1 id="admin-title" class="title">{{ t('Security settings') }}</h1>
+    <h1 id="admin-title" class="title">{{ t('security_settings') }}</h1>
   </header>
   </header>
 </div>
 </div>
 {% endblock %}
 {% endblock %}
@@ -38,7 +38,7 @@
 
 
       <form action="/_api/admin/security/general" method="post" class="form-horizontal" id="generalSetting" role="form">
       <form action="/_api/admin/security/general" method="post" class="form-horizontal" id="generalSetting" role="form">
         <fieldset>
         <fieldset>
-        <legend class="alert-anchor">{{ t('security_setting.Security settings') }}</legend>
+        <legend class="alert-anchor">{{ t('security_settings') }}</legend>
 
 
           <div class="form-group">
           <div class="form-group">
             <label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
             <label for="settingForm[security:registrationMode]" class="col-xs-3 control-label">{{ t('Basic authentication') }}</label>
@@ -136,20 +136,19 @@
             </div>
             </div>
           </div>
           </div>
 
 
-          <!-- GC-1755 Change Sentence -->
           <div class="form-group">
           <div class="form-group">
             {% set configName = 'settingForm[security:pageCompleteDeletionAuthority]' %}
             {% set configName = 'settingForm[security:pageCompleteDeletionAuthority]' %}
             {% set configValue = getConfig('crowi','security:pageCompleteDeletionAuthority') %}
             {% set configValue = getConfig('crowi','security:pageCompleteDeletionAuthority') %}
-            <label for="{{configName}}" class="col-xs-3 control-label">Restrict Complete Deletion of Pages</label>
+            <label for="{{configName}}" class="col-xs-3 control-label">{{ t('security_setting.complete_deletion') }}</label>
             <div class="col-xs-6">
             <div class="col-xs-6">
               <select class="form-control selectpicker" name="settingForm[security:pageCompleteDeletionAuthority]" value="{{ configValue }}">
               <select class="form-control selectpicker" name="settingForm[security:pageCompleteDeletionAuthority]" value="{{ configValue }}">
-                <option value="adminOnly" {% if configValue =="adiminOnly" %}selected{% endif %}>AdminOnly</option>
-                <option value="adminAndAuthor" {% if configValue == "adminAndAuthor" %}selected{% endif %}>AdminAndAuthor</option>
-                <option value=null {% if configValue == null  %}selected{% endif %}>Anyone</option>
+                <option value="adminOnly" {% if configValue =="adiminOnly" %}selected{% endif %}>{{ t('security_setting.admin_only') }}</option>
+                <option value="adminAndAuthor" {% if configValue == "adminAndAuthor" %}selected{% endif %}>{{ t('security_setting.admin_and_author') }}</option>
+                <option value=null {% if configValue == null  %}selected{% endif %}>{{ t('security_setting.anyone') }}</option>
               </select>
               </select>
 
 
               <p class="help-block small">
               <p class="help-block small">
-                Restricts users who can completely delete pages to only administrators.
+                {{ t('security_setting.complete_deletion_explain') }}
               </p>
               </p>
             </div>
             </div>
           </div>
           </div>