jam411 3 лет назад
Родитель
Сommit
a3a5ef82c2

+ 2 - 2
packages/app/public/static/locales/en_US/commons.json

@@ -1,6 +1,8 @@
 {
 {
   "Show": "Show",
   "Show": "Show",
   "Hide": "Hide",
   "Hide": "Hide",
+  "Add": "Add",
+  "Reset": "Reset",
 
 
   "meta": {
   "meta": {
     "display_name": "English"
     "display_name": "English"
@@ -58,7 +60,6 @@
     "image_crop": "Image Crop",
     "image_crop": "Image Crop",
     "crop": "Crop",
     "crop": "Crop",
     "save": "Save",
     "save": "Save",
-    "reset": "Reset",
     "cancel": "Cancel"
     "cancel": "Cancel"
   },
   },
 
 
@@ -66,7 +67,6 @@
     "title": "Edit Table",
     "title": "Edit Table",
     "data_import": "Data Import",
     "data_import": "Data Import",
     "save": "Save",
     "save": "Save",
-    "reset": "Reset",
     "cancel": "Cancel",
     "cancel": "Cancel",
     "done": "Done",
     "done": "Done",
     "data_import_form": {
     "data_import_form": {

+ 2 - 2
packages/app/public/static/locales/ja_JP/commons.json

@@ -1,6 +1,8 @@
 {
 {
   "Show": "公開",
   "Show": "公開",
   "Hide": "非公開",
   "Hide": "非公開",
+  "Add": "追加",
+  "Reset": "リセット",
 
 
   "meta": {
   "meta": {
     "display_name": "日本語"
     "display_name": "日本語"
@@ -58,7 +60,6 @@
     "image_crop": "画像の切り抜き",
     "image_crop": "画像の切り抜き",
     "crop": "トリミング",
     "crop": "トリミング",
     "save": "保存",
     "save": "保存",
-    "reset": "リセット",
     "cancel": "キャンセル"
     "cancel": "キャンセル"
   },
   },
 
 
@@ -66,7 +67,6 @@
     "title": "テーブル編集",
     "title": "テーブル編集",
     "data_import": "データインポート",
     "data_import": "データインポート",
     "save": "保存",
     "save": "保存",
-    "reset": "リセット",
     "cancel": "キャンセル",
     "cancel": "キャンセル",
     "done": "完了",
     "done": "完了",
     "data_import_form": {
     "data_import_form": {

+ 2 - 2
packages/app/public/static/locales/zh_CN/commons.json

@@ -1,6 +1,8 @@
 {
 {
 	"Show": "显示",
 	"Show": "显示",
 	"Hide": "隐藏",
 	"Hide": "隐藏",
+  "Add": "添加",
+  "Reset": "重启",
 
 
   "meta": {
   "meta": {
     "display_name": "简体中文"
     "display_name": "简体中文"
@@ -58,7 +60,6 @@
     "image_crop": "图像裁剪",
     "image_crop": "图像裁剪",
     "crop": "修剪",
     "crop": "修剪",
     "save": "节省",
     "save": "节省",
-    "reset": "重启",
     "cancel": "取消"
     "cancel": "取消"
   },
   },
 
 
@@ -66,7 +67,6 @@
     "title": "编辑表格",
     "title": "编辑表格",
     "data_import": "数据导入",
     "data_import": "数据导入",
     "save": "节省",
     "save": "节省",
-    "reset": "重启",
     "cancel": "取消",
     "cancel": "取消",
     "done": "完毕",
     "done": "完毕",
     "data_import_form": {
     "data_import_form": {

+ 1 - 1
packages/app/src/components/Admin/Notification/UserTriggerNotification.jsx

@@ -129,7 +129,7 @@ class UserTriggerNotification extends React.Component {
                 </p>
                 </p>
               </td>
               </td>
               <td>
               <td>
-                <button type="button" className="btn btn-primary" disabled={!this.validateForm()} onClick={this.onClickSubmit}>{t('add')}</button>
+                <button type="button" className="btn btn-primary" disabled={!this.validateForm()} onClick={this.onClickSubmit}>{t('commons:Add')}</button>
               </td>
               </td>
             </tr>
             </tr>
             {userNotifications.length > 0 && userNotifications.map((notification) => {
             {userNotifications.length > 0 && userNotifications.map((notification) => {

+ 1 - 1
packages/app/src/components/Admin/UserManagement.tsx

@@ -182,7 +182,7 @@ const UserManagement = (props: UserManagementProps) => {
               onClick={resetButtonClickHandler}
               onClick={resetButtonClickHandler}
             >
             >
               <span className="icon-refresh mr-1"></span>
               <span className="icon-refresh mr-1"></span>
-              Reset
+              {t('commons:Reset')}
             </button>
             </button>
           </div>
           </div>
         </div>
         </div>

+ 1 - 1
packages/app/src/components/Common/ImageCropModal.tsx

@@ -158,7 +158,7 @@ const ImageCropModal: FC<Props> = (props: Props) => {
       </ModalBody>
       </ModalBody>
       <ModalFooter>
       <ModalFooter>
         <button type="button" className="btn btn-outline-danger rounded-pill mr-auto" disabled={!isCropImage} onClick={reset}>
         <button type="button" className="btn btn-outline-danger rounded-pill mr-auto" disabled={!isCropImage} onClick={reset}>
-          {t('crop_image_modal.reset')}
+          {t('commons:Reset')}
         </button>
         </button>
         { !showCropOption && (
         { !showCropOption && (
           <div className="mr-auto">
           <div className="mr-auto">

+ 1 - 1
packages/app/src/components/PageEditor/HandsontableModal.tsx

@@ -495,7 +495,7 @@ export const HandsontableModal = (): JSX.Element => {
         </div>
         </div>
       </ModalBody>
       </ModalBody>
       <ModalFooter className="grw-modal-footer">
       <ModalFooter className="grw-modal-footer">
-        <button type="button" className="btn btn-danger" onClick={reset}>{t('handsontable_modal.reset')}</button>
+        <button type="button" className="btn btn-danger" onClick={reset}>{t('commons:Reset')}</button>
         <div className="ml-auto">
         <div className="ml-auto">
           <button type="button" className="mr-2 btn btn-secondary" onClick={cancel}>{t('handsontable_modal.cancel')}</button>
           <button type="button" className="mr-2 btn btn-secondary" onClick={cancel}>{t('handsontable_modal.cancel')}</button>
           <button type="button" className="btn btn-primary" onClick={save}>{t('handsontable_modal.done')}</button>
           <button type="button" className="btn btn-primary" onClick={save}>{t('handsontable_modal.done')}</button>