Skip to content

Commit

Permalink
Fix missing translation in link content type (plone#2882)
Browse files Browse the repository at this point in the history
Co-authored-by: Víctor Fernández de Alba <[email protected]>
  • Loading branch information
iRohitSingh and sneridagh authored Dec 1, 2021
1 parent 86038b3 commit 600722b
Show file tree
Hide file tree
Showing 15 changed files with 68 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ include
pip-selfcheck.json
pyvenv.cfg
share
/api/lib64

# locales
locales/*.json
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- In search block, read SearchableText search param, to use it as search text input
@tiberiuichim
- Fix missing translation in link content type @iRohitSingh
- Fixed drag-and-drop list placeholder issues @reebalazs

### Internal
Expand Down
5 changes: 5 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,11 @@ msgstr "Der Button deaktiviert die Live-Suche, die Suchanfrage wird abgeschickt
msgid "The item could not be deleted."
msgstr "Das Objekt kann nicht gelöscht werden."

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2583,6 +2583,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,11 @@ msgstr "La presenza del bottone disabilita la ricerca al volo, la ricerca verrà
msgid "The item could not be deleted."
msgstr "L'elemento non può essere eliminato."

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/ja/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/pt/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr "O item não pôde ser excluído."

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/ro/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
7 changes: 6 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2021-11-07T10:15:32.202Z\n"
"POT-Creation-Date: 2021-11-30T14:58:55.270Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -2568,6 +2568,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
6 changes: 5 additions & 1 deletion src/components/theme/View/LinkView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isInternalURL, flattenToAppURL } from '@plone/volto/helpers';
import { Link } from 'react-router-dom';
import { Container } from 'semantic-ui-react';
import URLUtils from '@plone/volto/components/manage/AnchorPlugin/utils/URLUtils';
import { FormattedMessage } from 'react-intl';

/**
* View container class.
Expand Down Expand Up @@ -68,7 +69,10 @@ class LinkView extends Component {
)}
{remoteUrl && (
<span>
The link address is:
<FormattedMessage
id="The link address is:"
defaultMessage="The link address is:"
/>
{isInternalURL(remoteUrl) ? (
<Link to={flattenToAppURL(remoteUrl)}>
{flattenToAppURL(remoteUrl)}
Expand Down

0 comments on commit 600722b

Please sign in to comment.