kaoritokashiki 5 лет назад
Родитель
Сommit
92f41efc3a

+ 2 - 0
resource/locales/en_US/translation.json

@@ -45,6 +45,7 @@
   "List View": "List",
   "Timeline View": "Timeline",
   "History": "History",
+  "attachment_data": "Attachment Data",
   "Presentation Mode": "Presentation",
   "Not available for guest": "Not available for guest",
   "username": "Username",
@@ -108,6 +109,7 @@
   "Specified users only": "Specified users only",
   "Only me": "Only me",
   "Only inside the group": "Only inside the group",
+  "page_list": "Page List",
   "page_list_and_search_results": "Page list / Search results",
   "scope_of_page_disclosure": "Scope of page disclosure",
   "set_point": "Set point",

+ 3 - 1
resource/locales/ja_JP/translation.json

@@ -43,8 +43,9 @@
   "Example": "例",
   "Taro Yamada": "山田 太郎",
   "List View": "リスト表示",
-  "Timeline View": "タイムライン表示",
+  "Timeline View": "タイムライン",
   "History": "更新履歴",
+  "attachment_data": "添付データ",
   "Presentation Mode": "プレゼンテーション",
   "Not available for guest": "ゲストユーザーは利用できません",
   "username": "ユーザー名",
@@ -107,6 +108,7 @@
   "Specified users": "特定ユーザーのみ",
   "Only me": "自分のみ",
   "Only inside the group": "特定グループのみ",
+  "page_list": "ページリスト",
   "page_list_and_search_results": "ページリスト・検索結果",
   "scope_of_page_disclosure": "ページの公開範囲",
   "set_point": "設定値",

+ 5 - 6
src/client/js/components/PageAccessoriesModal.jsx

@@ -1,4 +1,3 @@
-
 import React from 'react';
 import PropTypes from 'prop-types';
 
@@ -15,7 +14,7 @@ import { withUnstatedContainers } from './UnstatedUtils';
 import PageContainer from '../services/PageContainer';
 
 const PageAccessoriesModal = (props) => {
-  // const { t } = props;
+  const { t } = props;
 
   return (
     <Modal
@@ -29,25 +28,25 @@ const PageAccessoriesModal = (props) => {
           <li className="nav-item">
             <a className={`nav-link ${props.isActive === 'pageList' && 'active'}`} href="#">
               <PageList />
-              ページリスト
+              { t('page_list') }
             </a>
           </li>
           <li className="nav-item">
             <a className={`nav-link ${props.isActive === 'timeLine' && 'active'}`} href="#">
               <TimeLine />
-              タイムライン
+              { t('Timeline View') }
             </a>
           </li>
           <li className="nav-item">
             <a className={`nav-link ${props.isActive === 'recentChanges' && 'active'}`} href="#">
               <RecentChanges />
-              更新履歴
+              { t('History') }
             </a>
           </li>
           <li className="nav-item">
             <a className={`nav-link ${props.isActive === 'attachment' && 'active'}`} href="#">
               <Attachment />
-              添付データ
+              { t('attachment_data') }
             </a>
           </li>
         </ul>

+ 0 - 1
src/client/styles/scss/theme/_apply-colors.scss

@@ -260,7 +260,6 @@ pre:not(.hljs):not(.CodeMirror-line) {
   .active {
     border-bottom: 2px solid $color-link;
   }
-  
 }
 
 /*