itizawa 6 yıl önce
ebeveyn
işleme
03764362ac

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

@@ -677,7 +677,22 @@
     "attach_title_header_desc": "Add page path to the first line as h1 section when create new page",
     "recent_created__n_draft_num_desc": "Number of Recently Created Pages & Drafts Displayed",
     "recently_created_n_draft_num_desc": "Number of recently created pages and drafts displayed on user page",
-    "update_layout_success": "Succeeded to update layout"
+    "update_layout_success": "Succeeded to update layout",
+    "update_behavior_success": "Succeeded to update behavior",
+    "layout_description":{
+      "growi_title":"Simple and Clear",
+      "growi_text1":"Full screen layout and thin margins/paddings",
+      "growi_text2":"Show and post comments at the bottom of the page",
+      "growi_text3":"Affix Table-of-contents",
+      "kibela_title":"Easy Viewing Structure",
+      "kibela_text1":"Center aligned contents",
+      "kibela_text2":"Show and post comments at the bottom of the page",
+      "kibela_text3":"Affix Table-of-contents",
+      "crowi_title":"Separated Functions",
+      "crowi_text1":"Collapsible Sidebar",
+      "crowi_text2":"Show and post comments in Sidebar",
+      "crowi_text3":"Collapsible Table-of-contents"
+    }
   },
 
   "user_management": {

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

@@ -661,7 +661,22 @@
     "attach_title_header_desc": "新規作成したページの1行目に、ページのパスを h1 セクションとして挿入します。",
     "recent_created__n_draft_num_desc": "最近作成したページと下書きの表示数",
     "recently_created_n_draft_num_desc": "ホーム画面の Recently Created での、1ページの表示数を設定します。",
-    "update_layout_success": "レイアウトを更新しました"
+    "update_layout_success": "レイアウトを更新しました",
+    "update_behavior_success": "挙動を更新しました",
+    "layout_description":{
+      "growi_title":"シンプルに鮮明に",
+      "growi_text1":"全画面レイアウトで、余白は少なくなります。",
+      "growi_text2":"コメントはページの下部に表示されます。",
+      "growi_text3":"ページ情報は下部に表示されます。",
+      "kibela_title":"構造を把握しやすく",
+      "kibela_text1":"コンテンツが中心に表示されます。",
+      "kibela_text2":"コメントはページの下部に表示されます。",
+      "kibela_text3":"ページ情報は下部に表示されます。",
+      "crowi_title":"分離された機能表示",
+      "crowi_text1":"サイドバーに機能が格納されます。",
+      "crowi_text2":"コメントはサイドバーに表示されます。",
+      "crowi_text3":"ページ情報はサイドバーに表示されます。"
+    }
   },
 
   "user_management": {

+ 13 - 16
src/client/js/components/Admin/Customize/CustomizeLayoutOptions.jsx

@@ -11,7 +11,7 @@ import CustomizeLayoutOption from './CustomizeLayoutOption';
 class CustomizeLayoutOptions extends React.Component {
 
   render() {
-    const { adminCustomizeContainer } = this.props;
+    const { t, adminCustomizeContainer } = this.props;
 
     return (
       <React.Fragment>
@@ -21,12 +21,11 @@ class CustomizeLayoutOptions extends React.Component {
           onSelected={() => adminCustomizeContainer.switchLayoutType('growi')}
           labelHtml={'GROWI Enhanced Layout <small className="text-success">(Recommended)</small>'}
         >
-          {/* TODO i18n */}
-          <h4>Simple and Clear</h4>
+          <h4>{t('customize_page.layout_description.growi_title')}</h4>
           <ul>
-            <li>Full screen layout and thin margins/paddings</li>
-            <li>Show and post comments at the bottom of the page</li>
-            <li>Affix Table-of-contents</li>
+            <li>{t('customize_page.layout_description.growi_text1')}</li>
+            <li>{t('customize_page.layout_description.growi_text2')}</li>
+            <li>{t('customize_page.layout_description.growi_text3')}</li>
           </ul>
         </CustomizeLayoutOption>
 
@@ -36,12 +35,11 @@ class CustomizeLayoutOptions extends React.Component {
           onSelected={() => adminCustomizeContainer.switchLayoutType('kibela')}
           labelHtml="Kibela Like Layout"
         >
-          {/* TODO i18n */}
-          <h4>Easy Viewing Structure</h4>
+          <h4>{t('customize_page.layout_description.kibela_title')}</h4>
           <ul>
-            <li>Center aligned contents</li>
-            <li>Show and post comments at the bottom of the page</li>
-            <li>Affix Table-of-contents</li>
+            <li>{t('customize_page.layout_description.kibela_text1')}</li>
+            <li>{t('customize_page.layout_description.kibela_text2')}</li>
+            <li>{t('customize_page.layout_description.kibela_text3')}</li>
           </ul>
         </CustomizeLayoutOption>
 
@@ -51,12 +49,11 @@ class CustomizeLayoutOptions extends React.Component {
           onSelected={() => adminCustomizeContainer.switchLayoutType('crowi')}
           labelHtml="Crowi Classic Layout"
         >
-          {/* TODO i18n */}
-          <h4>Separated Functions</h4>
+          <h4>{t('customize_page.layout_description.crowi_title')}</h4>
           <ul>
-            <li>Collapsible Sidebar</li>
-            <li>Show and post comments in Sidebar</li>
-            <li>Collapsible Table-of-contents</li>
+            <li>{t('customize_page.layout_description.crowi_text1')}</li>
+            <li>{t('customize_page.layout_description.crowi_text2')}</li>
+            <li>{t('customize_page.layout_description.crowi_text3')}</li>
           </ul>
         </CustomizeLayoutOption>
       </React.Fragment>