itizawa пре 5 година
родитељ
комит
abb839a385

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

@@ -134,6 +134,8 @@
   "Disassociate": "Disassociate",
   "Disassociate": "Disassociate",
   "Recent Created": "Recent Created",
   "Recent Created": "Recent Created",
   "Recent Changes": "Recent Changes",
   "Recent Changes": "Recent Changes",
+  "original_path":"Original path",
+  "new_path":"New path",
   "personal_dropdown": {
   "personal_dropdown": {
     "home": "Home",
     "home": "Home",
     "settings": "Settings",
     "settings": "Settings",

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

@@ -137,6 +137,8 @@
   "Sidebar mode on Editor": "サイドバーモード(編集時)",
   "Sidebar mode on Editor": "サイドバーモード(編集時)",
   "Recent Created": "最新の作成",
   "Recent Created": "最新の作成",
   "Recent Changes": "最新の変更",
   "Recent Changes": "最新の変更",
+  "original_path":"元のパス",
+  "new_path":"新しいパス",
   "personal_dropdown": {
   "personal_dropdown": {
     "home": "ホーム",
     "home": "ホーム",
     "settings": "設定",
     "settings": "設定",

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

@@ -136,7 +136,9 @@
 	"Sign out": "退出",
 	"Sign out": "退出",
 	"Disassociate": "解除关联",
 	"Disassociate": "解除关联",
 	"Recent Created": "最新创建",
 	"Recent Created": "最新创建",
-	"Recent Changes": "最新修改",
+  "Recent Changes": "最新修改",
+  "original_path":"Original path",
+  "new_path":"New path",
 	"form_validation": {
 	"form_validation": {
 		"error_message": "有些值不正确",
 		"error_message": "有些值不正确",
 		"required": "%s 是必需的",
 		"required": "%s 是必需的",

+ 5 - 4
src/client/js/components/ComparePathsTable.jsx

@@ -8,16 +8,17 @@ import PageContainer from '../services/PageContainer';
 import { convertToNewAffiliationPath } from '../../../lib/util/path-utils';
 import { convertToNewAffiliationPath } from '../../../lib/util/path-utils';
 
 
 function ComparePathsTable(props) {
 function ComparePathsTable(props) {
-  const { subordinatedPages, pageContainer, newPagePath } = props;
+  const {
+    subordinatedPages, pageContainer, newPagePath, t,
+  } = props;
   const { path } = pageContainer.state;
   const { path } = pageContainer.state;
 
 
   return (
   return (
     <table className="table table-bordered">
     <table className="table table-bordered">
       <tbody>
       <tbody>
         <tr>
         <tr>
-          {/* TODO i18n */}
-          <th className="w-50">元のパス</th>
-          <th className="w-50">新しいパス</th>
+          <th className="w-50">{t('original_path')}</th>
+          <th className="w-50">{t('new_path')}</th>
         </tr>
         </tr>
         <tr>
         <tr>
           <td>
           <td>