itizawa 6 лет назад
Родитель
Сommit
37e4cc809f

+ 6 - 3
resource/locales/en-US/translation.json

@@ -602,9 +602,9 @@
     "line_break_setting": "Line Break Setting",
     "line_break_setting_desc": "You can change line break settings.",
     "Enable Line Break": "Enable Line Break",
-    "Enable Line Break desc": "Treat line break in the text page as <code>&lt;br&gt;</code> in HTML",
+    "Enable Line Break desc": "Treat line break in the text page as <br> in HTML",
     "Enable Line Break for comment": "Enable Line Break in comment",
-    "Enable Line Break for comment desc": "Treat line break in comment as <code>&lt;br&gt;</code> in HTML",
+    "Enable Line Break for comment desc": "Treat line break in comment as <br> in HTML",
     "presentation_setting": "Presentation Setting",
     "presentation_setting_desc": "You can change presentation settings.",
     "Page break setting": "Page break Setting",
@@ -625,7 +625,10 @@
     "Custom Whitelist": "Custom Whitelist",
     "Tag names":"Tag names",
     "Tag attributes":"Tag attributes",
-    "import_recommended": "Import recommended %s"
+    "import_recommended": "Import recommended %s",
+    "updated_lineBreak": "Success update line braek setting",
+    "updated_presentation": "Success update presentation setting",
+    "updated_xss": "Success update XSS setting"
   },
 
   "notification_setting": {

+ 6 - 3
resource/locales/ja/translation.json

@@ -586,9 +586,9 @@
     "line_break_setting": "Line Break設定",
     "line_break_setting_desc": "Line Breakの設定を変更できます。",
     "Enable Line Break": "Line Break を有効にする",
-    "Enable Line Break desc": "ページテキスト中の改行を、HTML内で<code>&lt;br&gt;</code>として扱います",
+    "Enable Line Break desc": "ページテキスト中の改行を、HTML内で <br> として扱います",
     "Enable Line Break for comment": "コメント欄で Line Break を有効にする",
-    "Enable Line Break for comment desc": "コメント中の改行を、HTML内で<code>&lt;br&gt;</code>として扱います",
+    "Enable Line Break for comment desc": "コメント中の改行を、HTML内で <br> として扱います",
     "presentation_setting": "プレゼンテーション設定",
     "presentation_setting_desc": "プレゼンテーションの設定を変更できます。",
     "Page break setting": "改頁を設定する",
@@ -609,7 +609,10 @@
     "Custom Whitelist": "カスタムホワイトリスト",
     "Tag names": "タグ名のホワイトリスト",
     "Tag attributes": "タグ属性のホワイトリスト",
-    "import_recommended": "おすすめをインポート"
+    "import_recommended": "おすすめをインポート",
+    "updated_lineBreak": "改行設定を更新しました",
+    "updated_presentation": "プレゼンテーション設定を更新しました",
+    "updated_xss": "XSS設定を更新しました"
   },
 
   "notification_setting": {

+ 3 - 1
src/client/js/components/Admin/MarkdownSetting/LineBreakForm.jsx

@@ -21,9 +21,11 @@ class LineBreakForm extends React.Component {
   }
 
   async onClickSubmit() {
+    const { t } = this.props;
+
     try {
       await this.props.markDownSettingContainer.updateLineBreakSetting();
-      toastSuccess('Success update line braek setting');
+      toastSuccess(t('markdown_setting.updated_lineBreak'));
     }
     catch (err) {
       toastError(err);

+ 3 - 1
src/client/js/components/Admin/MarkdownSetting/XssForm.jsx

@@ -22,10 +22,12 @@ class XssForm extends React.Component {
   }
 
   async onClickSubmit() {
+    const { t } = this.props;
+
     try {
       await this.props.markDownSettingContainer.updateXssSetting();
       // TODO i18n
-      toastSuccess('Success update Xss setting');
+      toastSuccess(t('markdown_setting.updated_xss'));
     }
     catch (err) {
       toastError(err);