Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-32193: Map location validation error message typo #1674

Merged
merged 1 commit into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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