Add dynamic change language.
This commit is contained in:
parent
649eb0eee0
commit
3ec5ec3e14
55508
resources_rc.py
55508
resources_rc.py
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,5 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="pl_PL" sourcelanguage="en_GB">
|
<TS version="2.1" language="en_GB" sourcelanguage="pl_PL">
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
@ -9,108 +10,108 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="295"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="295"/>
|
||||||
<source>Audio file 1 speaker</source>
|
<source>Plik audio 1 rozmówcy</source>
|
||||||
<translation>Plik audio 1 rozmówcy</translation>
|
<translation>Audio file 1 speaker</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="296"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="296"/>
|
||||||
<source>Name of 1 speaker</source>
|
<source>Imię 1 rozmówcy</source>
|
||||||
<translation>Imię 1 rozmówcy</translation>
|
<translation>Name of 1 speaker</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="297"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="297"/>
|
||||||
<source>Add audio 1</source>
|
<source>Dodaj audio 1</source>
|
||||||
<translation>Dodaj audio 1</translation>
|
<translation>Add audio 1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="298"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="298"/>
|
||||||
<source>Audio file 2 speaker</source>
|
<source>Plik audio 2 rozmówcy</source>
|
||||||
<translation>Plik audio 2 rozmówcy</translation>
|
<translation>Audio file 2 speaker</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="299"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="299"/>
|
||||||
<source>Name of 2 speaker</source>
|
<source>Imię 2 rozmówcy</source>
|
||||||
<translation>Imię 2 rozmówcy</translation>
|
<translation>Name of 2 speaker</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="300"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="300"/>
|
||||||
<source>Add audio 2</source>
|
<source>Dodaj audio 2</source>
|
||||||
<translation>Dodaj audio 2</translation>
|
<translation>Add audio 2</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="301"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="301"/>
|
||||||
<source>Mark if the speaker channels are connected in one recording</source>
|
<source>Zaznacz jeśli kanały rozmówców są połączone w jednym nagraniu</source>
|
||||||
<translation>Zaznacz jeśli kanały rozmówców są połączone w jednym nagraniu</translation>
|
<translation>Mark if the speaker channels are connected in one recording</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="302"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="302"/>
|
||||||
<source>Preview - active speakers</source>
|
<source>Podgląd - rozmówcy aktywni</source>
|
||||||
<translation>Podgląd - rozmówcy aktywni</translation>
|
<translation>Preview - active speakers</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="303"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="303"/>
|
||||||
<source>Speakers - active</source>
|
<source>Rozmówcy - aktywni</source>
|
||||||
<translation>Rozmówcy - aktywni</translation>
|
<translation>Speakers - active</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="304"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="304"/>
|
||||||
<source>Preview - speakers inactive</source>
|
<source>Podgląd - rozmówcy nieaktywni</source>
|
||||||
<translation>Podgląd - rozmówcy nieaktywni</translation>
|
<translation>Preview - speakers inactive</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="305"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="305"/>
|
||||||
<source>Speakers - inactive</source>
|
<source>Rozmówcy - nieaktywni</source>
|
||||||
<translation>Rozmówcy - nieaktywni</translation>
|
<translation>Speakers - inactive</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="306"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="306"/>
|
||||||
<source>Preview - 1 speaker active</source>
|
<source>Podgląd - 1 rozmówca aktywny</source>
|
||||||
<translation>Podgląd - 1 rozmówca aktywny</translation>
|
<translation>Preview - 1 speaker active</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="307"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="307"/>
|
||||||
<source>First speaker - active</source>
|
<source>Pierwszy rozmówca - aktywny</source>
|
||||||
<translation>Pierwszy rozmówca - aktywny</translation>
|
<translation>First speaker - active</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="308"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="308"/>
|
||||||
<source>Preview - 2 speaker active</source>
|
<source>Podgląd - 2 rozmówca aktywny</source>
|
||||||
<translation>Podgląd - 2 rozmówca aktywny</translation>
|
<translation>Preview - 2 speaker active</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="309"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="309"/>
|
||||||
<source>Second speaker - active</source>
|
<source>Drugi rozmówca - aktywny</source>
|
||||||
<translation>Drugi rozmówca - aktywny</translation>
|
<translation>Second speaker - active</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="310"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="310"/>
|
||||||
<source>Voice detection level:</source>
|
<source>Poziom wykrywania głosu:</source>
|
||||||
<translation>Poziom wykrywania głosu:</translation>
|
<translation>Voice detection level:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="311"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="311"/>
|
||||||
<source>Preview</source>
|
<source>Podgląd</source>
|
||||||
<translation>Podgląd</translation>
|
<translation>Preview</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="312"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="312"/>
|
||||||
<source>Generate a podcast</source>
|
<source>Wygeneruj podcast</source>
|
||||||
<translation>Wygeneruj podcast</translation>
|
<translation>Generate a podcast</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="313"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="313"/>
|
||||||
<source>Project</source>
|
<source>Projekt</source>
|
||||||
<translation>Projekt</translation>
|
<translation>Project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="314"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="314"/>
|
||||||
<source>New project</source>
|
<source>Nowy projekt</source>
|
||||||
<translation>Nowy projekt</translation>
|
<translation>New project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="315"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="315"/>
|
||||||
<source>Click to create a new project</source>
|
<source>Kliknij, aby utwórzyć nowy projekt</source>
|
||||||
<translation>Kliknij, aby utwórzyć nowy projekt</translation>
|
<translation>Click to create a new project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="316"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="316"/>
|
||||||
@ -119,13 +120,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="317"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="317"/>
|
||||||
<source>Open a project</source>
|
<source>Otwórz projekt</source>
|
||||||
<translation>Otwórz projekt</translation>
|
<translation>Open a project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="318"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="318"/>
|
||||||
<source>Click to open an existing project</source>
|
<source>Kliknij, aby otworzyć istniejący projekt</source>
|
||||||
<translation>Kliknij, aby otworzyć istniejący projekt</translation>
|
<translation>Click to open an existing project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="319"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="319"/>
|
||||||
@ -134,13 +135,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="320"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="320"/>
|
||||||
<source>Save the project</source>
|
<source>Zapisz projekt</source>
|
||||||
<translation>Zapisz projekt</translation>
|
<translation>Save the project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="321"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="321"/>
|
||||||
<source>Click to save the current project</source>
|
<source>Kliknij, aby zapisać aktualny projekt</source>
|
||||||
<translation>Kliknij, aby zapisać aktualny projekt</translation>
|
<translation>Click to save the current project</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="322"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="322"/>
|
||||||
@ -149,13 +150,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="323"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="323"/>
|
||||||
<source>Save the project as</source>
|
<source>Zapisz projekt jako</source>
|
||||||
<translation>Zapisz projekt jako</translation>
|
<translation>Save the project as</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="324"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="324"/>
|
||||||
<source>Click to save the project as</source>
|
<source>Kliknij, aby zapisać projekt jako</source>
|
||||||
<translation>Kliknij, aby zapisać projekt jako</translation>
|
<translation>Click to save the project as</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="325"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="325"/>
|
||||||
@ -164,13 +165,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="326"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="326"/>
|
||||||
<source>Close the program</source>
|
<source>Zamknij program</source>
|
||||||
<translation>Zamknij program</translation>
|
<translation>Close the program</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="327"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="327"/>
|
||||||
<source>Click to end the program</source>
|
<source>Kliknij, aby zakończyć działanie programu</source>
|
||||||
<translation>Kliknij, aby zakończyć działanie programu</translation>
|
<translation>Click to end the program</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="328"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="328"/>
|
||||||
@ -179,13 +180,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="329"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="329"/>
|
||||||
<source>Settings</source>
|
<source>Ustawienia</source>
|
||||||
<translation>Ustawienia</translation>
|
<translation>Settings</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="330"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="330"/>
|
||||||
<source>Click to go to program settings</source>
|
<source>Kliknij, aby przejść do ustawień programu</source>
|
||||||
<translation>Kliknij, aby przejść do ustawień programu</translation>
|
<translation>Click to go to program settings</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="331"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="331"/>
|
||||||
@ -194,13 +195,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="332"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="332"/>
|
||||||
<source>About the MagicPodcast program</source>
|
<source>O programie MagicPodcast</source>
|
||||||
<translation>O programie MagicPodcast</translation>
|
<translation>About the MagicPodcast program</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="333"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="333"/>
|
||||||
<source>Click to view MagicPodcast information</source>
|
<source>Kliknij, aby wyświetlić informacje dotyczące programu MagicPodcast</source>
|
||||||
<translation>Kliknij, aby wyświetlić informacje dotyczące programu MagicPodcast</translation>
|
<translation>Click to view MagicPodcast information</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="334"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="334"/>
|
||||||
|
Binary file not shown.
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
<!DOCTYPE TS>
|
||||||
<TS version="2.1" language="en_GB" sourcelanguage="pl_PL">
|
<TS version="2.1" language="pl_PL" sourcelanguage="en_GB">
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
@ -10,108 +9,108 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="295"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="295"/>
|
||||||
<source>Plik audio 1 rozmówcy</source>
|
<source>Audio file 1 speaker</source>
|
||||||
<translation>Audio file 1 speaker</translation>
|
<translation>Plik audio 1 rozmówcy</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="296"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="296"/>
|
||||||
<source>Imię 1 rozmówcy</source>
|
<source>Name of 1 speaker</source>
|
||||||
<translation>Name of 1 speaker</translation>
|
<translation>Imię 1 rozmówcy</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="297"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="297"/>
|
||||||
<source>Dodaj audio 1</source>
|
<source>Add audio 1</source>
|
||||||
<translation>Add audio 1</translation>
|
<translation>Dodaj audio 1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="298"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="298"/>
|
||||||
<source>Plik audio 2 rozmówcy</source>
|
<source>Audio file 2 speaker</source>
|
||||||
<translation>Audio file 2 speaker</translation>
|
<translation>Plik audio 2 rozmówcy</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="299"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="299"/>
|
||||||
<source>Imię 2 rozmówcy</source>
|
<source>Name of 2 speaker</source>
|
||||||
<translation>Name of 2 speaker</translation>
|
<translation>Imię 2 rozmówcy</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="300"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="300"/>
|
||||||
<source>Dodaj audio 2</source>
|
<source>Add audio 2</source>
|
||||||
<translation>Add audio 2</translation>
|
<translation>Dodaj audio 2</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="301"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="301"/>
|
||||||
<source>Zaznacz jeśli kanały rozmówców są połączone w jednym nagraniu</source>
|
<source>Mark if the speaker channels are connected in one recording</source>
|
||||||
<translation>Mark if the speaker channels are connected in one recording</translation>
|
<translation>Zaznacz jeśli kanały rozmówców są połączone w jednym nagraniu</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="302"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="302"/>
|
||||||
<source>Podgląd - rozmówcy aktywni</source>
|
<source>Preview - active speakers</source>
|
||||||
<translation>Preview - active speakers</translation>
|
<translation>Podgląd - rozmówcy aktywni</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="303"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="303"/>
|
||||||
<source>Rozmówcy - aktywni</source>
|
<source>Speakers - active</source>
|
||||||
<translation>Speakers - active</translation>
|
<translation>Rozmówcy - aktywni</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="304"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="304"/>
|
||||||
<source>Podgląd - rozmówcy nieaktywni</source>
|
<source>Preview - speakers inactive</source>
|
||||||
<translation>Preview - speakers inactive</translation>
|
<translation>Podgląd - rozmówcy nieaktywni</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="305"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="305"/>
|
||||||
<source>Rozmówcy - nieaktywni</source>
|
<source>Speakers - inactive</source>
|
||||||
<translation>Speakers - inactive</translation>
|
<translation>Rozmówcy - nieaktywni</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="306"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="306"/>
|
||||||
<source>Podgląd - 1 rozmówca aktywny</source>
|
<source>Preview - 1 speaker active</source>
|
||||||
<translation>Preview - 1 speaker active</translation>
|
<translation>Podgląd - 1 rozmówca aktywny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="307"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="307"/>
|
||||||
<source>Pierwszy rozmówca - aktywny</source>
|
<source>First speaker - active</source>
|
||||||
<translation>First speaker - active</translation>
|
<translation>Pierwszy rozmówca - aktywny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="308"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="308"/>
|
||||||
<source>Podgląd - 2 rozmówca aktywny</source>
|
<source>Preview - 2 speaker active</source>
|
||||||
<translation>Preview - 2 speaker active</translation>
|
<translation>Podgląd - 2 rozmówca aktywny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="309"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="309"/>
|
||||||
<source>Drugi rozmówca - aktywny</source>
|
<source>Second speaker - active</source>
|
||||||
<translation>Second speaker - active</translation>
|
<translation>Drugi rozmówca - aktywny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="310"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="310"/>
|
||||||
<source>Poziom wykrywania głosu:</source>
|
<source>Voice detection level:</source>
|
||||||
<translation>Voice detection level:</translation>
|
<translation>Poziom wykrywania głosu:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="311"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="311"/>
|
||||||
<source>Podgląd</source>
|
<source>Preview</source>
|
||||||
<translation>Preview</translation>
|
<translation>Podgląd</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="312"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="312"/>
|
||||||
<source>Wygeneruj podcast</source>
|
<source>Generate a podcast</source>
|
||||||
<translation>Generate a podcast</translation>
|
<translation>Wygeneruj podcast</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="313"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="313"/>
|
||||||
<source>Projekt</source>
|
<source>Project</source>
|
||||||
<translation>Project</translation>
|
<translation>Projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="314"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="314"/>
|
||||||
<source>Nowy projekt</source>
|
<source>New project</source>
|
||||||
<translation>New project</translation>
|
<translation>Nowy projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="315"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="315"/>
|
||||||
<source>Kliknij, aby utwórzyć nowy projekt</source>
|
<source>Click to create a new project</source>
|
||||||
<translation>Click to create a new project</translation>
|
<translation>Kliknij, aby utwórzyć nowy projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="316"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="316"/>
|
||||||
@ -120,13 +119,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="317"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="317"/>
|
||||||
<source>Otwórz projekt</source>
|
<source>Open a project</source>
|
||||||
<translation>Open a project</translation>
|
<translation>Otwórz projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="318"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="318"/>
|
||||||
<source>Kliknij, aby otworzyć istniejący projekt</source>
|
<source>Click to open an existing project</source>
|
||||||
<translation>Click to open an existing project</translation>
|
<translation>Kliknij, aby otworzyć istniejący projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="319"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="319"/>
|
||||||
@ -135,13 +134,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="320"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="320"/>
|
||||||
<source>Zapisz projekt</source>
|
<source>Save the project</source>
|
||||||
<translation>Save the project</translation>
|
<translation>Zapisz projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="321"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="321"/>
|
||||||
<source>Kliknij, aby zapisać aktualny projekt</source>
|
<source>Click to save the current project</source>
|
||||||
<translation>Click to save the current project</translation>
|
<translation>Kliknij, aby zapisać aktualny projekt</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="322"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="322"/>
|
||||||
@ -150,13 +149,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="323"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="323"/>
|
||||||
<source>Zapisz projekt jako</source>
|
<source>Save the project as</source>
|
||||||
<translation>Save the project as</translation>
|
<translation>Zapisz projekt jako</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="324"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="324"/>
|
||||||
<source>Kliknij, aby zapisać projekt jako</source>
|
<source>Click to save the project as</source>
|
||||||
<translation>Click to save the project as</translation>
|
<translation>Kliknij, aby zapisać projekt jako</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="325"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="325"/>
|
||||||
@ -165,13 +164,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="326"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="326"/>
|
||||||
<source>Zamknij program</source>
|
<source>Close the program</source>
|
||||||
<translation>Close the program</translation>
|
<translation>Zamknij program</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="327"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="327"/>
|
||||||
<source>Kliknij, aby zakończyć działanie programu</source>
|
<source>Click to end the program</source>
|
||||||
<translation>Click to end the program</translation>
|
<translation>Kliknij, aby zakończyć działanie programu</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="328"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="328"/>
|
||||||
@ -180,13 +179,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="329"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="329"/>
|
||||||
<source>Ustawienia</source>
|
<source>Settings</source>
|
||||||
<translation>Settings</translation>
|
<translation>Ustawienia</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="330"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="330"/>
|
||||||
<source>Kliknij, aby przejść do ustawień programu</source>
|
<source>Click to go to program settings</source>
|
||||||
<translation>Click to go to program settings</translation>
|
<translation>Kliknij, aby przejść do ustawień programu</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="331"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="331"/>
|
||||||
@ -195,13 +194,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="332"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="332"/>
|
||||||
<source>O programie MagicPodcast</source>
|
<source>About the MagicPodcast program</source>
|
||||||
<translation>About the MagicPodcast program</translation>
|
<translation>O programie MagicPodcast</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="333"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="333"/>
|
||||||
<source>Kliknij, aby wyświetlić informacje dotyczące programu MagicPodcast</source>
|
<source>Click to view MagicPodcast information</source>
|
||||||
<translation>Click to view MagicPodcast information</translation>
|
<translation>Kliknij, aby wyświetlić informacje dotyczące programu MagicPodcast</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../python/ui/mainwindow_ui.py" line="334"/>
|
<location filename="../../python/ui/mainwindow_ui.py" line="334"/>
|
||||||
|
@ -36,12 +36,12 @@
|
|||||||
<widget class="QComboBox" name="combo_box_language">
|
<widget class="QComboBox" name="combo_box_language">
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Angielski/English</string>
|
<string>en</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Polski/Polish</string>
|
<string>pl</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -2,48 +2,54 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
from PyQt5.QtCore import Qt, QLocale, QLibraryInfo, QTranslator
|
import resources_rc
|
||||||
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtGui import QPixmap
|
from PyQt5.QtGui import QPixmap
|
||||||
from PyQt5.QtWidgets import QMainWindow, QLabel, QFileDialog, QDialog, QDialogButtonBox, QVBoxLayout, QApplication
|
from PyQt5.QtWidgets import QMainWindow, QLabel, QFileDialog, QDialog, QDialogButtonBox, QVBoxLayout, QApplication
|
||||||
from src.python.classes.settings_dialog import SettingsDialog
|
from src.python.classes.settings_dialog import SettingsDialog
|
||||||
from src.python.ui.mainwindow_ui import Ui_MainWindow
|
from src.python.ui.mainwindow_ui import Ui_MainWindow
|
||||||
|
from src.python.classes.translate import Translator
|
||||||
|
|
||||||
|
|
||||||
class MainWindow(QMainWindow, Ui_MainWindow):
|
class MainWindow(QMainWindow, QApplication, Ui_MainWindow):
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super(MainWindow, self).__init__(parent=parent)
|
super(MainWindow, self).__init__(parent=parent)
|
||||||
self.translator = QTranslator()
|
self.translator = Translator()
|
||||||
self.translator.load("qt_" + QLocale.system().name(), QLibraryInfo.location(QLibraryInfo.TranslationsPath))
|
self.installTranslator(self.translator)
|
||||||
print("qt_" + QLocale.system().name(), QLibraryInfo.location(QLibraryInfo.TranslationsPath))
|
self.lang = 'pl'
|
||||||
app = QApplication.instance()
|
self.translator.load_lang(self.lang)
|
||||||
app.installTranslator(self.translator)
|
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.setup_logic()
|
self.setup_logic()
|
||||||
self.setup_detail()
|
self.setup_detail()
|
||||||
|
self.retranslateUi(self.window())
|
||||||
self.aresample = 8000
|
self.aresample = 8000
|
||||||
self.test_data()
|
self.test_data()
|
||||||
|
|
||||||
def setup_logic(self):
|
def setup_logic(self):
|
||||||
|
self.action_settings.triggered.connect(self.open_setting_dialog)
|
||||||
|
self.button_generate.clicked.connect(self.generate_video_podcast)
|
||||||
self.button_audio_1.clicked.connect(lambda: self.open_audio_import(audio_number=1))
|
self.button_audio_1.clicked.connect(lambda: self.open_audio_import(audio_number=1))
|
||||||
self.button_audio_2.clicked.connect(lambda: self.open_audio_import(audio_number=2))
|
self.button_audio_2.clicked.connect(lambda: self.open_audio_import(audio_number=2))
|
||||||
|
|
||||||
self.check_box_connected_channels.stateChanged.connect(self.channels_connected)
|
|
||||||
|
|
||||||
self.button_select_avatar_1.clicked.connect(lambda: self.open_image_import(image_number=1))
|
self.button_select_avatar_1.clicked.connect(lambda: self.open_image_import(image_number=1))
|
||||||
self.button_select_avatar_2.clicked.connect(lambda: self.open_image_import(image_number=2))
|
self.button_select_avatar_2.clicked.connect(lambda: self.open_image_import(image_number=2))
|
||||||
self.button_select_avatar_3.clicked.connect(lambda: self.open_image_import(image_number=3))
|
self.button_select_avatar_3.clicked.connect(lambda: self.open_image_import(image_number=3))
|
||||||
self.button_select_avatar_4.clicked.connect(lambda: self.open_image_import(image_number=4))
|
self.button_select_avatar_4.clicked.connect(lambda: self.open_image_import(image_number=4))
|
||||||
|
|
||||||
self.button_generate.clicked.connect(self.generate_video_podcast)
|
|
||||||
|
|
||||||
self.check_box_connected_channels.setChecked(True)
|
self.check_box_connected_channels.setChecked(True)
|
||||||
self.action_settings.triggered.connect(self.open_setting_dialog)
|
self.check_box_connected_channels.stateChanged.connect(self.channels_connected)
|
||||||
|
|
||||||
|
def change_language(self):
|
||||||
|
self.translator.load_lang(self.lang)
|
||||||
|
self.retranslateUi(self.window())
|
||||||
|
|
||||||
|
# After change language need setup preview for test data once again
|
||||||
|
self.test_data()
|
||||||
|
|
||||||
def setup_detail(self):
|
def setup_detail(self):
|
||||||
self.line_edit_name_1.setDisabled(True)
|
self.line_edit_name_1.setDisabled(True)
|
||||||
self.line_edit_name_2.setDisabled(True)
|
self.line_edit_name_2.setDisabled(True)
|
||||||
|
|
||||||
def create_custom_dialog(self, title: str, msg: str):
|
@staticmethod
|
||||||
|
def create_custom_dialog(title: str, msg: str):
|
||||||
dialog = QDialog()
|
dialog = QDialog()
|
||||||
label = QLabel()
|
label = QLabel()
|
||||||
label.setText(msg)
|
label.setText(msg)
|
||||||
@ -80,10 +86,12 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||||||
self.preview_label_avatar_4.setProperty('path', './src/gui/images/right.png')
|
self.preview_label_avatar_4.setProperty('path', './src/gui/images/right.png')
|
||||||
|
|
||||||
def open_setting_dialog(self):
|
def open_setting_dialog(self):
|
||||||
settings = SettingsDialog()
|
old_lang = self.lang
|
||||||
settings.exec()
|
settings = SettingsDialog(parent=self)
|
||||||
language = settings.language
|
settings.exec_()
|
||||||
print(language)
|
if old_lang != self.lang:
|
||||||
|
print(old_lang, self.lang)
|
||||||
|
self.change_language()
|
||||||
|
|
||||||
def open_image_import(self, image_number: int):
|
def open_image_import(self, image_number: int):
|
||||||
dialog = QFileDialog()
|
dialog = QFileDialog()
|
||||||
@ -201,4 +209,3 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||||||
print(echo_temp_dir_name)
|
print(echo_temp_dir_name)
|
||||||
print(ech)
|
print(ech)
|
||||||
|
|
||||||
pass
|
|
||||||
|
@ -6,8 +6,13 @@ class SettingsDialog(QDialog, Ui_SettingsDialog):
|
|||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super(SettingsDialog, self).__init__(parent=parent)
|
super(SettingsDialog, self).__init__(parent=parent)
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.language = self.combo_box_language.currentText()
|
self.language = self.combo_box_language.currentText() if parent is None else self.parent().lang
|
||||||
self.combo_box_language.currentTextChanged.connect(self.change_language)
|
self.setup_logic()
|
||||||
|
|
||||||
def change_language(self):
|
def setup_logic(self):
|
||||||
print(F"[*] Zmiana języka na: {self.combo_box_language.currentText()}")
|
self.combo_box_language.setCurrentText(self.language)
|
||||||
|
self.button_box.accepted.connect(self.set_lang)
|
||||||
|
|
||||||
|
def set_lang(self):
|
||||||
|
"""Set new lang in mainwindow"""
|
||||||
|
self.parent().lang = self.combo_box_language.currentText()
|
||||||
|
15
src/python/classes/translate.py
Normal file
15
src/python/classes/translate.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from PyQt5.QtCore import QTranslator
|
||||||
|
# import locale
|
||||||
|
# import resources_rc
|
||||||
|
# import sys
|
||||||
|
|
||||||
|
|
||||||
|
class Translator(QTranslator):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
QTranslator.__init__(self)
|
||||||
|
|
||||||
|
def load_lang(self, lang):
|
||||||
|
print(f"Get this lang: {lang}")
|
||||||
|
print(":/language/src/gui/dicts/magicpodcast" + "." + lang)
|
||||||
|
self.load(":/language/src/gui/dicts/magicpodcast" + "." + lang)
|
@ -45,8 +45,8 @@ class Ui_SettingsDialog(object):
|
|||||||
_translate = QtCore.QCoreApplication.translate
|
_translate = QtCore.QCoreApplication.translate
|
||||||
SettingsDialog.setWindowTitle(_translate("SettingsDialog", "Ustawienia"))
|
SettingsDialog.setWindowTitle(_translate("SettingsDialog", "Ustawienia"))
|
||||||
self.label_language.setText(_translate("SettingsDialog", "Język programu:"))
|
self.label_language.setText(_translate("SettingsDialog", "Język programu:"))
|
||||||
self.combo_box_language.setItemText(0, _translate("SettingsDialog", "Angielski/English"))
|
self.combo_box_language.setItemText(0, _translate("SettingsDialog", "en"))
|
||||||
self.combo_box_language.setItemText(1, _translate("SettingsDialog", "Polski/Polish"))
|
self.combo_box_language.setItemText(1, _translate("SettingsDialog", "pl"))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user