浏览代码

Add js translatable string for comment save warning (#6644)

Jacob Topp-Mugglestone 4 年之前
父节点
当前提交
ee5a147573
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      client/tests/stubs.js
  2. 1 0
      wagtail/admin/localization.py

+ 1 - 0
client/tests/stubs.js

@@ -58,6 +58,7 @@ global.wagtailConfig = {
     DELETE_ERROR: 'Delete error',
     CONFIRM_DELETE_COMMENT: 'Are you sure?',
     SAVE_ERROR: 'Save error',
+    SAVE_COMMENT_WARNING: 'This will be saved when the page is saved',
     FOCUS_COMMENT: 'Focus comment',
     UNFOCUS_COMMENT: 'Unfocus comment'
   },

+ 1 - 0
wagtail/admin/localization.py

@@ -90,6 +90,7 @@ def get_js_translation_strings():
         'DELETE_ERROR': _('Delete error'),
         'CONFIRM_DELETE_COMMENT': _('Are you sure?'),
         'SAVE_ERROR': _('Save error'),
+        'SAVE_COMMENT_WARNING': _('This will be saved when the page is saved'),
         'FOCUS_COMMENT': _('Focus comment'),
         'UNFOCUS_COMMENT': _('Unfocus comment'),