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

translation for modal and dropdown menu

sou 7 лет назад
Родитель
Сommit
7b5e8795fd

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

@@ -26,10 +26,11 @@
   "Sign in with Google Account": "Sign in with Google Account",
   "Sign up with this Google Account": "Sign up with this Google Account",
   "Example": "Example",
-  "Taro Yamada": "James Bond",
+  "Taro Yamada": "John Doe",
 
   "List View": "List",
   "Timeline View": "Timeline",
+  "History": "History",
   "Presentation Mode": "Presentation",
 
   "Created": "Created",
@@ -41,6 +42,8 @@
 
   "Management Wiki": "Management Wiki",
 
+  "Create/Edit Template": "Create/Edit Template",
+
   "Unportalize": "Unportalize",
 
   "View this version": "View this version",
@@ -78,6 +81,10 @@
   "Input page name (optional)": "Input page name (optional)",
   "New Page": "New Page",
   "Create under": "Create page under: <code>%s</code>",
+  "Create template under": "Create template under: <code>%s</code>",
+  "Option select template": "Select template type",
+  "Option local template": "Local Template(/__template) - Applies only to immediate decendant pages",
+  "Option global template": "Global Template(/_template) - Applies to all decendant pages",
 
   "Table of Contents": "Table of Contents",
 
@@ -186,6 +193,18 @@
     }
   },
 
+  "modal_template": {
+    "label": {
+      "Create template": "Create a new template for <code>%s</code>",
+      "Local template": "Local Template",
+      "Global template": "Global Template"
+    },
+    "help": {
+      "Local template": "Applies only to immediate decendant pages",
+      "Global template": "Applies to all decendant pages"
+    }
+  },
+
   "modal_duplicate": {
     "label": {
       "Duplicate page": "Duplicate page",

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

@@ -30,6 +30,8 @@
 
   "List View": "リスト表示",
   "Timeline View": "タイムライン表示",
+  "History": "更新履歴",
+  "Presentation Mode": "プレゼンテーション",
 
   "Created": "作成日",
   "Last updated": "最終更新",
@@ -38,6 +40,8 @@
   "Share Link": "共有用リンク",
   "Markdown Link": "Markdown形式のリンク",
 
+  "Create/Edit Template": "テンプレートの作成/編集",
+
   "Unportalize": "ポータル解除",
 
   "View this version": "このバージョンを見る",
@@ -75,8 +79,11 @@
   "Input page name": "ページ名を入力",
   "Input page name (optional)": "ページ名を入力(空欄OK)",
   "New Page": "新規ページ",
-  "Create under": "<code>%s</code>以下に作成",
-
+  "Create under": "ページを<code>%s</code>以下に作成",
+  "Create template under": "テンプレートを<code>%s</code>以下に作成",
+  "Option select template": "テンプレートタイプを選択してください",
+  "Option local template": "ローカルテンプレート(/__template) - 指定されたパス直下のページにのみ適応されます",
+  "Option global template": "ローカルテンプレート(/__template) - 指定されたパス以下すべてのページに適応されます",
 
 
 
@@ -206,6 +213,18 @@
     }
   },
 
+  "modal_template": {
+    "label": {
+      "Create template": "<code>%s</code> にテンプレートを作成します",
+      "Local template": "ローカルテンプレート",
+      "Global template": "グローバルテンプレート"
+    },
+    "help": {
+      "Local template": "指定されたパス直下のページにのみ<br>適応されます。",
+      "Global template": "指定されたパス以下すべてのページに<br>適応されます。"
+    }
+  },
+
   "modal_duplicate": {
     "label": {
       "Duplicate page": "ページを複製する",

+ 4 - 4
lib/views/modal/create_page.html

@@ -46,13 +46,13 @@
 
         <div class="row form-horizontal m-t-15">
           <fieldset class="col-xs-12">
-            <legend>Create template under <code>{{ parentPath(path) }}</code></legend>
+            <legend>{{ t('Create template under', parentPath(path)) }}</legend>
             <div class="d-flex create-page-input-container">
               <div class="create-page-input-row d-flex align-items-center">
                 <select id="template-type" class="page-name-input form-control">
-                  <option value="" disabled selected>Select tempate type</option>
-                  <option value="local">Local Template(/__template) - Applies only to immediate decendant pages</option>
-                  <option value="global">Global Template(/_template) - Applies to all decendant pages</option>
+                  <option value="" disabled selected>{{ t('Option select template') }}</option>
+                  <option value="local">{{ t('Option local template', parentPath(path)) }}</option>
+                  <option value="global">{{ t('Option global template', parentPath(path)) }}</option>
                 </select>
               </div>
               <div class="create-page-button-container">

+ 10 - 10
lib/views/modal/create_template.html

@@ -4,33 +4,33 @@
 
       <div class="modal-header bg-primary">
         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
-        <div class="modal-title">Create/Edit Template</div>
+        <div class="modal-title">{{ t('Create/Edit Template') }}</div>
       </div>
       <div class="modal-body">
         <div class="form-group">
-          <label for="">Create a new template for <code>{{ page.path }}</code></label><br><br>
+          <label for="">{{ t('modal_template.label.Create template', page.path) }}</label><br><br>
           <div class="row">
             <div class="col-sm-6">
-              <p class="help-block text-center"><strong>Local Template</strong></p>
-              <p class="help-block text-center"><small>Applies only to immediate decendant pages</small></p>
+              <p class="help-block text-center"><strong>{{ t('modal_template.label.Local template') }}</strong></p>
+              <p class="help-block text-center"><small>{{ t('modal_template.help.Local template') }}</small></p>
               <br>
               <div class="d-flex justify-content-center">
                 {% if localTemplateExists %}
-                <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-xs btn-primary">Edit</button></a>
+                <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Edit') }}</button></a>
                 {% else %}
-                <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-xs btn-primary">Create</button></a>
+                <a href="{{ page.path }}/__template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Create') }}</button></a>
                 {% endif %}
               </div>
             </div>
             <div class="col-sm-6">
-                <p class="help-block text-center"><strong>Global Template</strong></p>
-                <p class="help-block text-center"><small>Applies to all decendant pages</small></p>
+                <p class="help-block text-center"><strong>{{ t('modal_template.label.Global template') }}</strong></p>
+                <p class="help-block text-center"><small>{{ t('modal_template.help.Global template') }}</small></p>
                 <br>
                 <div class="d-flex justify-content-center">
                   {% if globalTemplateExists %}
-                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-xs btn-primary">Edit</button></a>
+                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Edit') }}</button></a>
                   {% else %}
-                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-xs btn-primary">Create</button></a>
+                  <a href="{{ page.path }}/_template#edit-form"><button class="btn btn-xs btn-primary">{{ t('Create') }}</button></a>
                   {% endif %}
                 </div>
             </div>

+ 2 - 2
lib/views/widget/page_tabs.html

@@ -30,7 +30,7 @@
       <ul class="dropdown-menu">
         <li><a href="#" data-target="#renamePage" data-toggle="modal"><i class="icon-fw icon-action-redo"></i> {{ t('Move') }}</a></li>
         <li class="divider"></li>
-        <li class=""><a href="#" data-target="#create-template" data-toggle="modal"><i class="icon-fw icon-docs"></i> Create/Edit Template</a></li>
+        <li class=""><a href="#" data-target="#create-template" data-toggle="modal"><i class="icon-fw icon-docs"></i> {{ t('Create/Edit Template') }}</a></li>
         <li><a href="#" data-target="#duplicatePage" data-toggle="modal"><i class="icon-fw icon-docs"></i> {{ t('Duplicate') }}</a></li>
         {% if isDeletablePage() %}
         <li class="divider"></li>
@@ -50,7 +50,7 @@
     {% endif %}
   {% endif %}
 
-  <li class="nav-main-right-tab pull-right"><a href="#revision-history" data-toggle="tab"><i class="icon-layers"></i> History</a></li>
+  <li class="nav-main-right-tab pull-right"><a href="#revision-history" data-toggle="tab"><i class="icon-layers"></i> {{ t('History') }}</a></li>
   {% if not isPortal %}
     <li class="nav-main-right-tab pull-right"><a href="?presentation=1" class="toggle-presentation"><i class="icon-film"></i> {{ t('Presentation Mode') }}</a></li>
   {% endif %}