Skip to content

Commit

Permalink
add global translation
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonweng committed Mar 14, 2019
1 parent 1d6c898 commit e280f6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"devDependencies": {
"babel-core": "^6.26.3",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.18.0",
"gulp-babel": "^7.0.1"
}
}
7 changes: 7 additions & 0 deletions views/widget/inline_edit.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
<a style="display:none;" data-url="" class="js-widget-edit-link">{{t "qor_widget.form.edit" "Edit Widget"}}</a>

<!-- JavaScripts -->
<script>
QOR_Translations = window.QOR_Translations || {};
QOR_Translations.okButton = '{{t "qor_admin.form.ok" "OK"}}'
QOR_Translations.cancelButton = '{{t "qor_admin.form.cancel" "Cancel"}}'
QOR_Translations.serverError = '{{t "qor_admin.form.serverError" "Server error, please try again later!"}}'
QOR_Translations.slideoutCloseWarning = '{{t "qor_admin.slideout.close_warning" "You have unsaved changes on this slideout. If you close this slideout, you will lose all unsaved changes. Are you sure you want to close the slideout?"}}'
</script>
{{javascript_tag "qor_admin_default"}}
{{load_admin_javascripts}}
{{load_theme_javascripts}}
Expand Down

0 comments on commit e280f6f

Please sign in to comment.