Skip to content

Commit

Permalink
added translations for content messages
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonzorn committed Aug 8, 2024
1 parent f975241 commit fa220dc
Show file tree
Hide file tree
Showing 8 changed files with 691 additions and 635 deletions.
Binary file modified data/i18n/en_US.qm
Binary file not shown.
8 changes: 8 additions & 0 deletions data/i18n/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,14 @@
<source>New version {result} is available! You are currently on version {APP_VERSION}.</source>
<translation>New version {result} is available! You are currently on version {APP_VERSION}.</translation>
</message>
<message>
<source>No connection</source>
<translation>No connection</translation>
</message>
<message>
<source>Nothing found</source>
<translation>Nothing found</translation>
</message>
</context>
<context>
<name>SettingsInterface</name>
Expand Down
Binary file modified data/i18n/ru_RU.qm
Binary file not shown.
8 changes: 8 additions & 0 deletions data/i18n/ru_RU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,14 @@
<source>New version {result} is available! You are currently on version {APP_VERSION}.</source>
<translation>Новая версия {result} доступна! Вы используете версию {APP_VERSION}.</translation>
</message>
<message>
<source>No connection</source>
<translation>Нет соединения</translation>
</message>
<message>
<source>Nothing found</source>
<translation>Ничего не найдено</translation>
</message>
</context>
<context>
<name>SettingsInterface</name>
Expand Down
Binary file modified data/i18n/uk_UA.qm
Binary file not shown.
8 changes: 8 additions & 0 deletions data/i18n/uk_UA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,14 @@
<source>New version {result} is available! You are currently on version {APP_VERSION}.</source>
<translation>Нова версія {result} доступна! Ви використовуєте версію {APP_VERSION}.</translation>
</message>
<message>
<source>No connection</source>
<translation>Немає з'єднання</translation>
</message>
<message>
<source>Nothing found</source>
<translation>Нічого не знайдено</translation>
</message>
</context>
<context>
<name>SettingsInterface</name>
Expand Down
1,292 changes: 661 additions & 631 deletions data/resource.py

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions nlightreader/widgets/NlightContainers/content_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
TransparentPushButton,
)

from nlightreader.utils.translator import translate


@unique
class ContentContainerState(Enum):
Expand All @@ -23,15 +25,15 @@ def __init__(self):
self._progress_ring.setVisible(False)

self._fetch_error_widget = TransparentPushButton(
FluentIcon.GLOBE,
"Fetch error",
FluentIcon.CLOUD,
translate("Message", "No connection")
)
self._fetch_error_widget.setEnabled(False)
self._fetch_error_widget.setVisible(False)

self._no_content_error_widget = TransparentPushButton(
FluentIcon.GLOBE,
"No content error",
FluentIcon.CLOUD,
translate("Message", "Nothing found"),
)
self._no_content_error_widget.setEnabled(False)
self._no_content_error_widget.setVisible(False)
Expand Down

0 comments on commit fa220dc

Please sign in to comment.