diff --git a/.gitignore b/.gitignore index 3694d37e..7b83bdc1 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ artifacts/ coverage/ vendor/ .idea/ +.vscode \ No newline at end of file diff --git a/client/lang/en.js b/client/lang/en.js index f601c366..7ac3ede9 100644 --- a/client/lang/en.js +++ b/client/lang/en.js @@ -23,7 +23,7 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { "LinkField.LINK_DRAFT_TITLE": "Link has draft changes", "LinkField.LINK_MODIFIED_LABEL": "Modified", "LinkField.LINK_MODIFIED_TITLE": "Link has unpublished changes", - "LinkField.SAVE_RECORD_FIRST": "Cannot add links until the record has been saved", + "LinkField.SAVE_RECORD_FIRST": "Cannot add link(s) until the record has been saved", "LinkField.SAVE_SUCCESS": "Saved link", "LinkField.SORT_ERROR": "Unable to sort links", "LinkField.SORT_SUCCESS": "Updated link sort order" diff --git a/client/lang/nl.js b/client/lang/nl.js index ed115831..c82996d4 100644 --- a/client/lang/nl.js +++ b/client/lang/nl.js @@ -23,7 +23,7 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { "LinkField.LINK_DRAFT_TITLE": "Link heeft conceptwijzigingen", "LinkField.LINK_MODIFIED_LABEL": "Aangepast", "LinkField.LINK_MODIFIED_TITLE": "Link heeft niet-gepubliceerde wijzigingen", - "LinkField.SAVE_RECORD_FIRST": "Links kunnen worden toegevoegd na het opslaan", + "LinkField.SAVE_RECORD_FIRST": "Link(s) kunnen worden toegevoegd na het opslaan", "LinkField.SAVE_SUCCESS": "Opgeslagen link", "LinkField.SORT_ERROR": "Links sorteren mislukt", "LinkField.SORT_SUCCESS": "Linkvolgorde opgeslagen" diff --git a/client/lang/pl.js b/client/lang/pl.js index ae8b040c..c90e6fb0 100644 --- a/client/lang/pl.js +++ b/client/lang/pl.js @@ -23,7 +23,7 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { "LinkField.LINK_DRAFT_TITLE": "Link ma zmiany w szkicu", "LinkField.LINK_MODIFIED_LABEL": "Zmodyfikowane", "LinkField.LINK_MODIFIED_TITLE": "Link ma niepublikowane zmiany", - "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać linków, dopóki rekord nie zostanie zapisany", + "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać link(ów), dopóki rekord nie zostanie zapisany", "LinkField.SAVE_SUCCESS": "Zapisano", "LinkField.SORT_ERROR": "Nie można sortować linków", "LinkField.SORT_SUCCESS": "Zaktualizowana kolejność sortowania linków" diff --git a/client/lang/pl_PL.js b/client/lang/pl_PL.js index 370232de..8b907d56 100644 --- a/client/lang/pl_PL.js +++ b/client/lang/pl_PL.js @@ -23,7 +23,7 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { "LinkField.LINK_DRAFT_TITLE": "Link ma zmiany w szkicu", "LinkField.LINK_MODIFIED_LABEL": "Zmodyfikowane", "LinkField.LINK_MODIFIED_TITLE": "Link ma niepublikowane zmiany", - "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać linków, dopóki rekord nie zostanie zapisany", + "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać link(ów), dopóki rekord nie zostanie zapisany", "LinkField.SAVE_SUCCESS": "Zapisano", "LinkField.SORT_ERROR": "Nie można sortować linków", "LinkField.SORT_SUCCESS": "Zaktualizowana kolejność sortowania linków" diff --git a/client/lang/src/en.json b/client/lang/src/en.json index 36e75330..94a496ea 100644 --- a/client/lang/src/en.json +++ b/client/lang/src/en.json @@ -16,7 +16,7 @@ "LinkField.LINK_DRAFT_TITLE": "Link has draft changes", "LinkField.LINK_MODIFIED_LABEL": "Modified", "LinkField.LINK_MODIFIED_TITLE": "Link has unpublished changes", - "LinkField.SAVE_RECORD_FIRST": "Cannot add links until the record has been saved", + "LinkField.SAVE_RECORD_FIRST": "Cannot add link(s) until the record has been saved", "LinkField.SAVE_SUCCESS": "Saved link", "LinkField.SORT_ERROR": "Unable to sort links", "LinkField.SORT_SUCCESS": "Updated link sort order" diff --git a/client/lang/src/nl.json b/client/lang/src/nl.json index ce329bd7..a570ed28 100644 --- a/client/lang/src/nl.json +++ b/client/lang/src/nl.json @@ -16,7 +16,7 @@ "LinkField.LINK_DRAFT_TITLE": "Link heeft conceptwijzigingen", "LinkField.LINK_MODIFIED_LABEL": "Aangepast", "LinkField.LINK_MODIFIED_TITLE": "Link heeft niet-gepubliceerde wijzigingen", - "LinkField.SAVE_RECORD_FIRST": "Links kunnen worden toegevoegd na het opslaan", + "LinkField.SAVE_RECORD_FIRST": "Link(s) kunnen worden toegevoegd na het opslaan", "LinkField.SAVE_SUCCESS": "Opgeslagen link", "LinkField.SORT_ERROR": "Links sorteren mislukt", "LinkField.SORT_SUCCESS": "Linkvolgorde opgeslagen" diff --git a/client/lang/src/pl.json b/client/lang/src/pl.json index bbe99aa2..47fd0560 100644 --- a/client/lang/src/pl.json +++ b/client/lang/src/pl.json @@ -16,7 +16,7 @@ "LinkField.LINK_DRAFT_TITLE": "Link ma zmiany w szkicu", "LinkField.LINK_MODIFIED_LABEL": "Zmodyfikowane", "LinkField.LINK_MODIFIED_TITLE": "Link ma niepublikowane zmiany", - "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać linków, dopóki rekord nie zostanie zapisany", + "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać link(ów), dopóki rekord nie zostanie zapisany", "LinkField.SAVE_SUCCESS": "Zapisano", "LinkField.SORT_ERROR": "Nie można sortować linków", "LinkField.SORT_SUCCESS": "Zaktualizowana kolejność sortowania linków" diff --git a/client/lang/src/pl_PL.json b/client/lang/src/pl_PL.json index bbe99aa2..47fd0560 100644 --- a/client/lang/src/pl_PL.json +++ b/client/lang/src/pl_PL.json @@ -16,7 +16,7 @@ "LinkField.LINK_DRAFT_TITLE": "Link ma zmiany w szkicu", "LinkField.LINK_MODIFIED_LABEL": "Zmodyfikowane", "LinkField.LINK_MODIFIED_TITLE": "Link ma niepublikowane zmiany", - "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać linków, dopóki rekord nie zostanie zapisany", + "LinkField.SAVE_RECORD_FIRST": "Nie można dodawać link(ów), dopóki rekord nie zostanie zapisany", "LinkField.SAVE_SUCCESS": "Zapisano", "LinkField.SORT_ERROR": "Nie można sortować linków", "LinkField.SORT_SUCCESS": "Zaktualizowana kolejność sortowania linków" diff --git a/client/src/components/LinkField/LinkField.js b/client/src/components/LinkField/LinkField.js index 035712c8..c7c504a6 100644 --- a/client/src/components/LinkField/LinkField.js +++ b/client/src/components/LinkField/LinkField.js @@ -524,7 +524,7 @@ const LinkField = ({ const renderPicker = !loadingError && !inHistoryViewer && !saveRecordFirst && (isMulti || linkIDs.length === 0); const renderModal = !loadingError && !saveRecordFirst && Boolean(editingID); const loadingErrorText = i18n._t('LinkField.FAILED_TO_LOAD_LINKS', 'Failed to load link(s)'); - const saveRecordFirstText = i18n._t('LinkField.SAVE_RECORD_FIRST', 'Cannot add links until the record has been saved'); + const saveRecordFirstText = i18n._t('LinkField.SAVE_RECORD_FIRST', 'Cannot add link(s) until the record has been saved'); const links = renderLinks(); return