Skip to content

Commit

Permalink
fix(dl): missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
akiver committed Dec 3, 2023
1 parent 417b20b commit 70e4be9
Show file tree
Hide file tree
Showing 7 changed files with 156 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ui/downloads/sidebar/match-download-status.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Trans } from '@lingui/macro';
import { DownloadStatus } from 'csdm/common/types/download-status';
import { Spinner } from 'csdm/ui/components/spinner';
import { Tooltip } from 'csdm/ui/components/tooltip';
Expand All @@ -17,31 +18,31 @@ export function MatchDownloadStatus({ status }: Props) {
switch (status) {
case DownloadStatus.Error:
return (
<Tooltip content="Error on download">
<Tooltip content={<Trans context="Download status">Error on download</Trans>}>
<ExclamationTriangleIcon width={iconSize} className="text-red-400" />
</Tooltip>
);
case DownloadStatus.NotDownloaded:
return (
<Tooltip content="Not downloaded">
<Tooltip content={<Trans context="Download status">Not downloaded</Trans>}>
<DownloadIcon width={iconSize} className="text-orange-400" />
</Tooltip>
);
case DownloadStatus.Downloading:
return (
<Tooltip content="Downloading...">
<Tooltip content={<Trans context="Download status">Downloading…</Trans>}>
<Spinner size={iconSize} />
</Tooltip>
);
case DownloadStatus.Expired:
return (
<Tooltip content="Expired">
<Tooltip content={<Trans context="Download status">Expired</Trans>}>
<ExpiredIcon width={iconSize} className="text-orange-400" />
</Tooltip>
);
default:
return (
<Tooltip content="Downloaded">
<Tooltip content={<Trans context="Download status">Downloaded</Trans>}>
<CheckCircleIcon width={iconSize} className="text-green-400" />
</Tooltip>
);
Expand Down
25 changes: 25 additions & 0 deletions src/ui/translations/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2321,6 +2321,31 @@ msgctxt "Tooltip"
msgid "A download folder is required. You can change it from settings."
msgstr "A download folder is required. You can change it from settings."

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Error on download"
msgstr "Error on download"

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Not downloaded"
msgstr "Not downloaded"

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloading…"
msgstr "Downloading…"

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Expired"
msgstr "Expired"

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloaded"
msgstr "Downloaded"

#: src/ui/downloads/sidebar/match-result-text.tsx
msgid "Defeat"
msgstr "Defeat"
Expand Down
25 changes: 25 additions & 0 deletions src/ui/translations/es/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2326,6 +2326,31 @@ msgctxt "Tooltip"
msgid "A download folder is required. You can change it from settings."
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Error on download"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Not downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloading…"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Expired"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-result-text.tsx
msgid "Defeat"
msgstr ""
Expand Down
25 changes: 25 additions & 0 deletions src/ui/translations/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2326,6 +2326,31 @@ msgctxt "Tooltip"
msgid "A download folder is required. You can change it from settings."
msgstr "Un dossier de téléchargement est requis. Vous pouvez le modifier depuis les paramètres."

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Error on download"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Not downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloading…"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Expired"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-result-text.tsx
msgid "Defeat"
msgstr "Défaite"
Expand Down
25 changes: 25 additions & 0 deletions src/ui/translations/pt-BR/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2326,6 +2326,31 @@ msgctxt "Tooltip"
msgid "A download folder is required. You can change it from settings."
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Error on download"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Not downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloading…"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Expired"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-result-text.tsx
msgid "Defeat"
msgstr ""
Expand Down
25 changes: 25 additions & 0 deletions src/ui/translations/zh-CN/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2326,6 +2326,31 @@ msgctxt "Tooltip"
msgid "A download folder is required. You can change it from settings."
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Error on download"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Not downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloading…"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Expired"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-result-text.tsx
msgid "Defeat"
msgstr ""
Expand Down
25 changes: 25 additions & 0 deletions src/ui/translations/zh-TW/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2326,6 +2326,31 @@ msgctxt "Tooltip"
msgid "A download folder is required. You can change it from settings."
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Error on download"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Not downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloading…"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Expired"
msgstr ""

#: src/ui/downloads/sidebar/match-download-status.tsx
msgctxt "Download status"
msgid "Downloaded"
msgstr ""

#: src/ui/downloads/sidebar/match-result-text.tsx
msgid "Defeat"
msgstr ""
Expand Down

0 comments on commit 70e4be9

Please sign in to comment.