Skip to content

Commit fa220dc

Browse files
committed
added translations for content messages
1 parent f975241 commit fa220dc

File tree

8 files changed

+691
-635
lines changed

8 files changed

+691
-635
lines changed

data/i18n/en_US.qm

150 Bytes
Binary file not shown.

data/i18n/en_US.ts

+8
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,14 @@
347347
<source>New version {result} is available! You are currently on version {APP_VERSION}.</source>
348348
<translation>New version {result} is available! You are currently on version {APP_VERSION}.</translation>
349349
</message>
350+
<message>
351+
<source>No connection</source>
352+
<translation>No connection</translation>
353+
</message>
354+
<message>
355+
<source>Nothing found</source>
356+
<translation>Nothing found</translation>
357+
</message>
350358
</context>
351359
<context>
352360
<name>SettingsInterface</name>

data/i18n/ru_RU.qm

160 Bytes
Binary file not shown.

data/i18n/ru_RU.ts

+8
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,14 @@
347347
<source>New version {result} is available! You are currently on version {APP_VERSION}.</source>
348348
<translation>Новая версия {result} доступна! Вы используете версию {APP_VERSION}.</translation>
349349
</message>
350+
<message>
351+
<source>No connection</source>
352+
<translation>Нет соединения</translation>
353+
</message>
354+
<message>
355+
<source>Nothing found</source>
356+
<translation>Ничего не найдено</translation>
357+
</message>
350358
</context>
351359
<context>
352360
<name>SettingsInterface</name>

data/i18n/uk_UA.qm

164 Bytes
Binary file not shown.

data/i18n/uk_UA.ts

+8
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,14 @@
347347
<source>New version {result} is available! You are currently on version {APP_VERSION}.</source>
348348
<translation>Нова версія {result} доступна! Ви використовуєте версію {APP_VERSION}.</translation>
349349
</message>
350+
<message>
351+
<source>No connection</source>
352+
<translation>Немає з'єднання</translation>
353+
</message>
354+
<message>
355+
<source>Nothing found</source>
356+
<translation>Нічого не знайдено</translation>
357+
</message>
350358
</context>
351359
<context>
352360
<name>SettingsInterface</name>

data/resource.py

+661-631
Large diffs are not rendered by default.

nlightreader/widgets/NlightContainers/content_container.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
TransparentPushButton,
88
)
99

10+
from nlightreader.utils.translator import translate
11+
1012

1113
@unique
1214
class ContentContainerState(Enum):
@@ -23,15 +25,15 @@ def __init__(self):
2325
self._progress_ring.setVisible(False)
2426

2527
self._fetch_error_widget = TransparentPushButton(
26-
FluentIcon.GLOBE,
27-
"Fetch error",
28+
FluentIcon.CLOUD,
29+
translate("Message", "No connection")
2830
)
2931
self._fetch_error_widget.setEnabled(False)
3032
self._fetch_error_widget.setVisible(False)
3133

3234
self._no_content_error_widget = TransparentPushButton(
33-
FluentIcon.GLOBE,
34-
"No content error",
35+
FluentIcon.CLOUD,
36+
translate("Message", "Nothing found"),
3537
)
3638
self._no_content_error_widget.setEnabled(False)
3739
self._no_content_error_widget.setVisible(False)

0 commit comments

Comments
 (0)