Skip to content

Commit

Permalink
Change Links to Link(s) to match the rest of the messages
Browse files Browse the repository at this point in the history
Other languages as well
  • Loading branch information
n8-dev committed Jan 6, 2025
1 parent 9f8cb42 commit d2cddde
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ artifacts/
coverage/
vendor/
.idea/
.vscode
2 changes: 1 addition & 1 deletion client/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/pl_PL.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/src/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/src/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/src/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/lang/src/pl_PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/LinkField/LinkField.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <LinkFieldContext.Provider value={{
Expand Down

0 comments on commit d2cddde

Please sign in to comment.