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

added corresponding keys and values to en_US

久保田隼基 8 лет назад
Родитель
Сommit
7e80db01fa
3 измененных файлов с 47 добавлено и 19 удалено
  1. 18 1
      lib/locales/en-US/translation.json
  2. 21 10
      lib/locales/ja/translation.json
  3. 8 8
      lib/views/admin/index.html

+ 18 - 1
lib/locales/en-US/translation.json

@@ -136,6 +136,9 @@
   "Current API Token": "Current API Token",
   "Current API Token": "Current API Token",
   "Update API Token": "Update API Token",
   "Update API Token": "Update API Token",
 
 
+  "Security settings": "Security settings",
+
+
   "page_page": {
   "page_page": {
       "notice": {
       "notice": {
           "version": "This is not the current version.",
           "version": "This is not the current version.",
@@ -204,6 +207,20 @@
           "Outdent": "Outdent",
           "Outdent": "Outdent",
           "Save Page": "Save Page",
           "Save Page": "Save Page",
           "Delete Line": "Delete Line"
           "Delete Line": "Delete Line"
-      }
+
+              }
+  },
+            
+    "admin_top": { 
+    "Management Wiki": "Management Wiki",
+    "System Information": "System Information",
+    "wiki_administrator": "Only Wiki administrator can access this page",
+    "assign_administrator": "You can assign administrator from Assign administrator button in the User management page",
+    "List of installed plugins": "List of installed plugins",
+    "Package name": "Package name",
+    "Specified version": "Specified version",
+    "Installed version": "Installed version"
   }
   }
+
 }
 }
+ 

+ 21 - 10
lib/locales/ja/translation.json

@@ -69,14 +69,9 @@
   "Input page name (optional)": "ページ名を入力(空欄OK)",
   "Input page name (optional)": "ページ名を入力(空欄OK)",
   "New Page": "新規ページ",
   "New Page": "新規ページ",
   "Create under": "<code>%s</code>以下に作成",
   "Create under": "<code>%s</code>以下に作成",
-  "Management Wiki": "Wiki管理",
-  "System Information": "システム情報",
-  "wiki_administrator": "この画面はWiki管理者のみがアクセスできる画面です。",
-  "assign_administrator": "「ユーザー管理」から「管理者にする」ボタンを使ってユーザーをWiki管理者に任命することができます。",
-  "List of installed plugins": "インストールされているプラグイン一覧",
-  "Package name": "パッケージ名",
-  "Specified version": "指定バージョン",
-  "Installed version": "インストールされているバージョン",
+  
+  
+ 
   
   
   "Table of Contents": "目次",
   "Table of Contents": "目次",
   "Management Wiki Home": "Wiki管理トップ",
   "Management Wiki Home": "Wiki管理トップ",
@@ -100,7 +95,6 @@
   "The whitelist of registration permission E-mail address": "登録許可メールアドレスの<br>ホワイトリスト",
   "The whitelist of registration permission E-mail address": "登録許可メールアドレスの<br>ホワイトリスト",
   "Selecting authentication mechanism": "認証機構選択",
   "Selecting authentication mechanism": "認証機構選択",
 
 
-
   
   
  
  
   "Show latest": "最新のページを表示",
   "Show latest": "最新のページを表示",
@@ -153,6 +147,8 @@
   "Password is not set": "パスワードが設定されていません",
   "Password is not set": "パスワードが設定されていません",
   "You can sign in with email and password": "<code>%s</code> と設定されたパスワードの組み合わせでログイン可能になります。",
   "You can sign in with email and password": "<code>%s</code> と設定されたパスワードの組み合わせでログイン可能になります。",
 
 
+  "Security settings": "セキュリティ設定",
+
   "API Settings": "API設定",
   "API Settings": "API設定",
   "API Token Settings": "API Token設定",
   "API Token Settings": "API Token設定",
   "Current API Token": "現在のAPI Token",
   "Current API Token": "現在のAPI Token",
@@ -173,6 +169,9 @@
       }
       }
   },
   },
 
 
+
+  
+
   "modal_rename": {
   "modal_rename": {
     "label": {
     "label": {
       "Rename page": "ページを移動する",
       "Rename page": "ページを移動する",
@@ -225,5 +224,17 @@
         "Save Page": "保存",
         "Save Page": "保存",
         "Delete Line": "行削除"
         "Delete Line": "行削除"
     }
     }
-}
+  },
+   
+  "admin_top": {
+    "Management Wiki": "Wiki管理",
+    "System Information": "システム情報",
+    "wiki_administrator": "この画面はWiki管理者のみがアクセスできる画面です。",
+    "assign_administrator": "「ユーザー管理」から「管理者にする」ボタンを使ってユーザーをWiki管理者に任命することができます。",
+    "List of installed plugins": "インストールされているプラグイン一覧",
+    "Package name": "パッケージ名",
+    "Specified version": "指定バージョン",
+    "Installed version": "インストールされているバージョン"
+  }
+
 }
 }

+ 8 - 8
lib/views/admin/index.html

@@ -5,7 +5,7 @@
 {% block content_head %}
 {% block content_head %}
 <div class="header-wrap">
 <div class="header-wrap">
   <header id="page-header">
   <header id="page-header">
-    <h1 class="title" id=""> {{ t('Management Wiki') }}</h1>
+    <h1 class="title" id=""> {{ t('admin_top.Management Wiki') }}</h1>
   </header>
   </header>
 </div>
 </div>
 {% endblock %}
 {% endblock %}
@@ -25,11 +25,11 @@
       {% include './widget/menu.html' %}
       {% include './widget/menu.html' %}
     </div>
     </div>
     <div class="col-md-9">
     <div class="col-md-9">
-      <p> {{ t("wiki_administrator") }}<br>
-      {{ t("assign_administrator") }}
+      <p> {{ t("admin_top.wiki_administrator") }}<br>
+      {{ t("admin_top.assign_administrator") }}
       </p>
       </p>
 
 
-      <h3>{{ t('System Information') }}</h3>
+      <h3>{{ t('admin_top.System Information') }}</h3>
       <table class="table table-bordered">
       <table class="table table-bordered">
         <tr>
         <tr>
           <th class="col-sm-4">crowi-plus</th>
           <th class="col-sm-4">crowi-plus</th>
@@ -49,16 +49,16 @@
         </tr>
         </tr>
       </table>
       </table>
 
 
-      <h3>{{ t('List of installed plugins') }}</h3>
+      <h3>{{ t('admin_top.List of installed plugins') }}</h3>
       <table class="table table-bordered">
       <table class="table table-bordered">
         <th class="text-center">
         <th class="text-center">
-          {{ t('Package name') }}
+          {{ t('admin_top.Package name') }}
         </th>
         </th>
         <th class="text-center">
         <th class="text-center">
-          {{ t('Specified version') }}
+          {{ t('admin_top.Specified version') }}
         </th>
         </th>
         <th class="text-center">
         <th class="text-center">
-          {{ t('Installed version') }}
+          {{ t('admin_top.Installed version') }}
         </th>
         </th>
         {% for pluginName in Object.keys(plugins) %}
         {% for pluginName in Object.keys(plugins) %}
         <tr>
         <tr>