Skip to content

Commit

Permalink
fix: more intl messages and translations fixes for 'addon'
Browse files Browse the repository at this point in the history
  • Loading branch information
deodorhunter committed Dec 6, 2024
1 parent f25d19a commit 066c1ad
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 46 deletions.
4 changes: 2 additions & 2 deletions packages/volto/locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2431,9 +2431,9 @@ msgstr "No hi ha actualitzacions en aquesta cantonada. Estàs al dia. Xoca els c
msgid "No Video selected"
msgstr ""

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2430,9 +2430,9 @@ msgstr "Keine Upgrades in dieser Ecke. Du bist auf dem neuesten Stand. High Five
msgid "No Video selected"
msgstr "Kein Video ausgewählt"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2425,9 +2425,9 @@ msgstr "No upgrades in this corner. You are up to date. High fives."
msgid "No Video selected"
msgstr ""

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2432,9 +2432,9 @@ msgstr "No hay actualizaciones en esta esquina. Estás al día. ¡Choca esos cin
msgid "No Video selected"
msgstr "No se ha seleccionado el vídeo"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2432,9 +2432,9 @@ msgstr "Ez dago eguneratzerik hemen. Egunean zaude. Bostekoa!"
msgid "No Video selected"
msgstr "Ez da bideorik aukeratu"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/fi/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2430,9 +2430,9 @@ msgstr "Täällä ei ole päivityksiä. Olet ajan tasalla. Ylävitoset!"
msgid "No Video selected"
msgstr "Videota ei valittu"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2432,9 +2432,9 @@ msgstr "Pas de mises à jour ici. Vous êtes à jour. Tape m'en cinq !"
msgid "No Video selected"
msgstr "Aucune vidéo sélectionnée"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/hi/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2425,9 +2425,9 @@ msgstr "इस कोने में कोई अपग्रेड नही
msgid "No Video selected"
msgstr "कोई वीडियो चयनित नहीं है"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
14 changes: 7 additions & 7 deletions packages/volto/locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ msgstr "Aggiungi"
#. Default: "To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see"
#: components/manage/Controlpanels/Addons/AddonsControlpanel
msgid "Add Add-ons"
msgstr "Aggiungi Add-ons"
msgstr "Per far apparire qui i nuovi add-on, aggiungili alla tua configurazione, rifai la build e riavvia il processo del server. Per istruzioni dettagliate, vedi"

#. Default: "Add Alternative URL"
#: components/manage/Controlpanels/Aliases
Expand Down Expand Up @@ -270,7 +270,7 @@ msgstr "Add-On"
#. Default: "Add-ons Settings"
#: components/manage/Controlpanels/Addons/AddonsControlpanel
msgid "Add-ons Settings"
msgstr "Impostazioni Add-ons"
msgstr "Impostazioni add-on"

#. Default: "Added"
#: components/manage/Rules/Rules
Expand Down Expand Up @@ -2393,7 +2393,7 @@ msgstr "No"
#. Default: "No add-ons available for installation."
#: components/manage/Controlpanels/Addons/AddonsControlpanel
msgid "No Addon available"
msgstr ""
msgstr "Nessun add-on disponibile per l'installazione"

#. Default: "No installed add-ons."
#: components/manage/Controlpanels/Addons/AddonsControlpanel
Expand Down Expand Up @@ -2425,10 +2425,10 @@ msgstr "Nessun aggiornamento disponibile. Il tuo sito è aggiornato. Batti il ci
msgid "No Video selected"
msgstr "Nessun video selezionato"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgstr ""
msgid "No add-ons found"
msgstr "Nessun add-on trovato"

#. Default: "No broken relations found."
#: components/manage/Controlpanels/Relations/RelationsMatrix
Expand Down Expand Up @@ -4100,7 +4100,7 @@ msgstr "Aggiorna Utente"
#. Default: "Update installed add-ons:"
#: components/manage/Controlpanels/Addons/AddonsControlpanel
msgid "Update installed add-ons:"
msgstr "Aggiorna gli add-ons installati:"
msgstr "Aggiorna gli add-on installati:"

#. Default: "Updates available"
#: components/manage/Controlpanels/Addons/AddonsControlpanel
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/ja/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2430,9 +2430,9 @@ msgstr "こちらにはアップグレードはありません。あなたは最
msgid "No Video selected"
msgstr ""

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2429,9 +2429,9 @@ msgstr "Geen upgrades in deze hoek. Je bent up-to-date. High five!"
msgid "No Video selected"
msgstr "Geen video geselecteerd"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/pt/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2430,9 +2430,9 @@ msgstr "Nenhuma atualização disponível por aqui. Estás atualizado. Dá cá c
msgid "No Video selected"
msgstr ""

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2431,9 +2431,9 @@ msgstr "Nenhuma atualização disponível por aqui. Você está atualizado. Bate
msgid "No Video selected"
msgstr "Nenhum vídeo selecionado"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/ro/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2431,9 +2431,9 @@ msgstr "Nicio actualizare în această zonă. Ești la zi. Bate palma!"
msgid "No Video selected"
msgstr "Nu s-a selectat niciun video"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/volto.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2427,9 +2427,9 @@ msgstr ""
msgid "No Video selected"
msgstr ""

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
4 changes: 2 additions & 2 deletions packages/volto/locales/zh_CN/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2431,9 +2431,9 @@ msgstr "这里没有更新。你是最新的。击个掌!"
msgid "No Video selected"
msgstr "未选择视频"

#. Default: "No addons found"
#. Default: "No add-ons found"
#: components/manage/Controlpanels/VersionOverview
msgid "No addons found"
msgid "No add-ons found"
msgstr ""

#. Default: "No broken relations found."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const UpgradableItem: React.FC<UpgradableAddonProps> = ({
textValue={
addon.upgrade_info.installedVersion && addon.upgrade_info.newVersion
? `${addon.description} ${descriptionText}`
: addon.description + addon.upgrade_info.available &&
` ${intl.formatMessage({ id: 'Press Enter to upgrade this addon' })}`
: addon.description + addon.upgrade_info.available
}
isDisabled
>
Expand Down Expand Up @@ -86,7 +85,7 @@ const AvailableItem: React.FC<AvailableAddonProps> = ({ addon, onInstall }) => {
<GridListItem
key={addon['@id']}
className="addon-item"
textValue={`${addon.title} - ${addon.description} ${intl.formatMessage({ id: 'Press Enter to install this addon' })}`}
textValue={`${addon.title} - ${addon.description}`}
isDisabled
>
<div className="addon-item-header">
Expand Down Expand Up @@ -115,7 +114,7 @@ const InstalledItem: React.FC<InstalledAddonProps> = ({
<GridListItem
key={addon['@id']}
className="addon-item"
textValue={`${addon.title} ${addon.description} ${intl.formatMessage({ id: 'Press Enter to install this addon' })}`}
textValue={`${addon.title} ${addon.description}`}
isDisabled
>
<div className="addon-item-header">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const AvailablePanel: React.FC<AvailablePanelProps & { intl: IntlShape }> = (
>
<div className="addons-section-header">
<h3 id={type}>
{intl.formatMessage({ id: 'Available addons' })}:{' '}
{intl.formatMessage({ id: 'Available add-ons' })}:{' '}
<span>{addons.length}</span>
</h3>
</div>
Expand All @@ -116,7 +116,7 @@ const AvailablePanel: React.FC<AvailablePanelProps & { intl: IntlShape }> = (
key="no-addon-available"
className="no-addon-available"
>
{intl.formatMessage({ id: 'No Addon available' })}
{intl.formatMessage({ id: 'No Add-on available' })}
</GridListItem>
)}
</GridList>
Expand All @@ -139,7 +139,7 @@ const InstalledPanel: React.FC<InstalledPanelProps & { intl: IntlShape }> = (
>
<div className="addons-section-header">
<h3 id={type}>
{intl.formatMessage({ id: 'Installed addons' })}:{' '}
{intl.formatMessage({ id: 'Installed add-ons' })}:{' '}
<span>{addons.length}</span>
</h3>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import config from '@plone/volto/registry';

const messages = defineMessages({
no_addons: {
id: 'No addons found',
defaultMessage: 'No addons found',
id: 'No add-ons found',
defaultMessage: 'No add-ons found',
},
});

Expand Down

0 comments on commit 066c1ad

Please sign in to comment.