Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #830 from ezsystems/ezp-27174_richtext_field_requi…
Browse files Browse the repository at this point in the history
…red_not_translated

Fix EZP-27174: RichText "This field is required" message not translated
  • Loading branch information
dpobel authored Apr 5, 2017
2 parents 95b2323 + db774f9 commit fd431c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/public/js/views/fields/ez-richtext-editview.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ YUI.add('ez-richtext-editview', function (Y) {
return;
}
if ( this._isEmpty() ) {
this.set('errorStatus', "This field is required");
this.set('errorStatus', Y.eZ.trans('this.field.is.required', {}, 'fieldedit'));
} else {
this.set('errorStatus', false);
}
Expand Down
3 changes: 2 additions & 1 deletion Tests/js/views/fields/ez-richtext-editview.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<script type="text/javascript" src="./assets/fake-alloyeditor-toolbarconfig.js"></script>
<script type="text/javascript" src="./assets/editviewregister-tests.js"></script>
<script type="text/javascript" src="./assets/ez-richtext-editview-tests.js"></script>
<script type="text/javascript" src="../../assets/ez-translator.js"></script>
<script>
var filter = (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
loaderFilter;
Expand All @@ -40,7 +41,7 @@
filter: loaderFilter,
modules: {
"ez-richtext-editview": {
requires: ['ez-fieldeditview', 'ez-alloyeditor', 'ez-processable', 'node'],
requires: ['ez-fieldeditview', 'ez-translator', 'ez-alloyeditor', 'ez-processable', 'node'],
fullpath: "../../../../Resources/public/js/views/fields/ez-richtext-editview.js"
},
"ez-processable": {
Expand Down

0 comments on commit fd431c0

Please # to comment.