Jelajahi Sumber

translation

itizawa 5 tahun lalu
induk
melakukan
4e8c3b8225

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

@@ -331,6 +331,8 @@
     "comparing_source": "Source",
     "comparing_target": "Target",
     "comparing_revisions": "Comparing versions",
+    "compare_latest":"Compare latest revision",
+    "compare_previous":"Compare previous revision",
     "comparing_with_latest": "Always compare with the latest version"
   },
   "modal_rename": {

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

@@ -333,6 +333,8 @@
     "comparing_source": "ソース",
     "comparing_target": "ターゲット",
     "comparing_revisions": "比較",
+    "compare_latest":"最新と比較",
+    "compare_previous":"1つ前のバージョンと比較",
     "comparing_with_latest": "常に最新バージョンと比較する"
   },
   "modal_rename": {

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

@@ -312,6 +312,8 @@
     "comparing_source": "源头",
     "comparing_target": "目标",
     "comparing_revisions": "比较版本",
+    "compare_latest":"比較最新版本",
+    "compare_previous":"比較以前的版本",
     "comparing_with_latest": "一定要与最新版本进行比较"
   },
 	"modal_rename": {

+ 4 - 4
src/client/js/components/PageHistory/PageRevisionTable.jsx

@@ -17,7 +17,7 @@ class PageRevisionTable extends React.Component {
    * @param {boolean} isContiguousNodiff true if the current 'hasDiff' and one of previous row is both false
    */
   renderRow(revision, previousRevision, hasDiff, isContiguousNodiff) {
-    const { revisionComparerContainer } = this.props;
+    const { revisionComparerContainer, t } = this.props;
     const { latestRevision } = this.props.pageHistoryContainer.state;
     const revisionId = revision._id;
     const revisionDiffOpened = this.props.diffOpened[revisionId] || false;
@@ -46,13 +46,13 @@ class PageRevisionTable extends React.Component {
               key={`revision-history-rev-${revisionId}`}
             />
             {hasDiff && (
-              <div className="ml-5 my-auto">
+              <div className="ml-2 mt-auto">
                 <div className="btn-group">
                   <button type="button" className="btn btn-outline-secondary btn-sm" onClick={handleCompareLatestRevisionButton}>
-                    最新と比較
+                    {t('page_history.compare_latest')}
                   </button>
                   <button type="button" className="btn btn-outline-secondary btn-sm" onClick={handleComparePreviousRevisionButton}>
-                    1つ前のバージョンと比較
+                    {t('page_history.compare_previous')}
                   </button>
                 </div>
               </div>