Skip to content

Commit

Permalink
EZP-32193: Map location validation error message typo (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Grabowski committed Dec 21, 2020
1 parent bea40eb commit d074337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const SELECTOR_LAT_INPUT = '.ez-data-source__field--latitude .ez-data-source__input';
const SELECTOR_LON_INPUT = '.ez-data-source__field--longitude .ez-data-source__input';
const SELECTOR_LABEL_WRAPPER = '.ez-field-edit__label-wrapper';
const SELECTOR_ADDRESS_ERROR_NODE = '.ez-data-source__field--address'
const SELECTOR_ADDRESS_ERROR_NODE = '.ez-data-source__field--address';
const SELECTOR_LAT_ERROR_NODE = '.ez-data-source__field--latitude';
const SELECTOR_LON_ERROR_NODE = '.ez-data-source__field--longitude';
const EVENT_BLUR = 'blur';
Expand Down Expand Up @@ -305,10 +305,10 @@

if (validationResult.isError) {
const errorMessage = Translator.trans(
/* @Desc("Area below need correction") */ 'ezmaplocation.create.message.error',
/* @Desc("Area below needs correction") */ 'ezmaplocation.create.message.error',
{},
'fieldtypes_edit'
)
);
const allFieldsResult = { isError: true, errorMessage: errorMessage };

config.errorNodeSelectors = [SELECTOR_LABEL_WRAPPER];
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Resources/translations/fieldtypes_edit.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<note>key: ezimageasset.create.message.success</note>
</trans-unit>
<trans-unit id="d10ad93186c93b5a79a7aa921eb874b7df716935" resname="ezmaplocation.create.message.error">
<source>Area below need correction</source>
<target state="new">Area below need correction</target>
<source>Area below needs correction</source>
<target state="new">Area below needs correction</target>
<note>key: ezmaplocation.create.message.error</note>
</trans-unit>
</body>
Expand Down

0 comments on commit d074337

Please sign in to comment.