Skip to content

Commit 3a0e737

Browse files
committed
* Fixing missing translations (thanks to danielly2020)
1 parent bd6ff82 commit 3a0e737

File tree

8 files changed

+26
-11
lines changed

8 files changed

+26
-11
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Fixing missing unittests for common encoder options
88
* Fixing some extra spaces in commands
99
* Fixing logs were showing red for info commands
10+
* Fixing missing translations (thanks to danielly2020)
1011

1112
## Version 5.12.0
1213

fastflix/data/languages.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10973,3 +10973,15 @@ Allow Optional Downloads:
1097310973
ukr: Дозволити додаткові завантаження
1097410974
kor: 선택적 다운로드 허용
1097510975
ron: Permiteți descărcări opționale
10976+
uses [fast] seek to a rough position ahead of timestamp, vs a specific [exact] frame lookup. (GIF encodings use [fast]):
10977+
eng: uses [fast] seek to a rough position ahead of timestamp, vs a specific [exact] frame lookup. (GIF encodings use [fast])
10978+
Both must have values to be enabled:
10979+
eng: Both must have values to be enabled
10980+
Run a command after conversion completes:
10981+
eng: Run a command after conversion completes
10982+
Primary Settings:
10983+
eng: Primary Settings
10984+
Video:
10985+
eng: Video
10986+
Disable interlace check:
10987+
eng: Disable interlace check

fastflix/encoders/common/setting_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def _add_modes(
450450
if disable_custom_qp:
451451
qp_box_layout.addStretch(1)
452452
else:
453-
qp_box_layout.addWidget(QtWidgets.QLabel("Custom:"))
453+
qp_box_layout.addWidget(QtWidgets.QLabel(t("Custom") + ":"))
454454
qp_box_layout.addWidget(self.widgets[f"custom_{qp_name}"])
455455
qp_box_layout.addWidget(QtWidgets.QLabel(" "))
456456

fastflix/widgets/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,10 @@ def init_start_time(self):
826826
self.widgets.fast_time.addItems(["fast", "exact"])
827827
self.widgets.fast_time.setCurrentIndex(0)
828828
self.widgets.fast_time.setToolTip(
829-
"uses [fast] seek to a rough position ahead of timestamp, "
830-
"vs a specific [exact] frame lookup. (GIF encodings use [fast])"
829+
t(
830+
"uses [fast] seek to a rough position ahead of timestamp, "
831+
"vs a specific [exact] frame lookup. (GIF encodings use [fast])"
832+
)
831833
)
832834
self.widgets.fast_time.currentIndexChanged.connect(lambda: self.page_update(build_thumbnail=False))
833835
self.widgets.fast_time.setFixedWidth(65)

fastflix/widgets/panels/advanced_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def init_vbv(self):
338338
QtWidgets.QLabel(f"{t('Bufsize')} (kbps)"), self.last_row, 3, alignment=QtCore.Qt.AlignRight
339339
)
340340
self.layout.addWidget(self.bufsize_widget, self.last_row, 4)
341-
self.layout.addWidget(QtWidgets.QLabel("Both must have values to be enabled"), self.last_row, 5, 1, 2)
341+
self.layout.addWidget(QtWidgets.QLabel(t("Both must have values to be enabled")), self.last_row, 5, 1, 2)
342342

343343
# def vbv_check_changed(self):
344344
# self.bufsize_widget.setEnabled(self.vbv_checkbox.isChecked())

fastflix/widgets/panels/audio_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(
8080

8181
self.widgets.audio_info.setToolTip(Box(audio_track.raw_info).to_yaml())
8282

83-
self.widgets.language.addItems(["No Language Set"] + language_list)
83+
self.widgets.language.addItems(["No Language Set", "Undefined"] + language_list)
8484
self.widgets.language.setMaximumWidth(150)
8585
if audio_track.language:
8686
try:

fastflix/widgets/panels/queue_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def __init__(self, parent, app: FastFlixApp):
279279
actions.update(self.app.fastflix.config.custom_after_run_scripts)
280280

281281
self.after_done_combo.addItems(sorted(actions))
282-
self.after_done_combo.setToolTip("Run a command after conversion completes")
282+
self.after_done_combo.setToolTip(t("Run a command after conversion completes"))
283283
self.after_done_combo.currentIndexChanged.connect(lambda: self.set_after_done())
284284
self.after_done_combo.setMaximumWidth(150)
285285

fastflix/widgets/windows/profile_window.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ def __init__(self, app: FastFlixApp, main, container, *args, **kwargs):
440440
self.advanced_tab = AdvancedTab(self.advanced_options)
441441
self.primary_tab = PrimaryOptions(self.main_settings)
442442
self.encoder_tab = EncoderOptions(self.app, self)
443-
self.tab_area.addTab(self.primary_tab, "Primary Settings")
444-
self.tab_area.addTab(self.encoder_tab, "Video")
445-
self.tab_area.addTab(self.audio_select, "Audio")
446-
self.tab_area.addTab(self.subtitle_select, "Subtitles")
447-
self.tab_area.addTab(self.advanced_tab, "Advanced Options")
443+
self.tab_area.addTab(self.primary_tab, t("Primary Settings"))
444+
self.tab_area.addTab(self.encoder_tab, t("Video"))
445+
self.tab_area.addTab(self.audio_select, t("Audio"))
446+
self.tab_area.addTab(self.subtitle_select, t("Subtitles"))
447+
self.tab_area.addTab(self.advanced_tab, t("Advanced Options"))
448448
# self.tab_area.addTab(self.subtitle_select, "Subtitles")
449449
# self.tab_area.addTab(SubtitleSelect(self.app, self, "Subtitle Select", "subtitles"), "Subtitle Select")
450450

0 commit comments

Comments
 (0)