Skip to content

Commit

Permalink
"Polski" and "Nederlands" are added to languages.
Browse files Browse the repository at this point in the history
	modified:   persepolis/gui/resources.py
	modified:   persepolis/scripts/initialization.py
	modified:   persepolis/scripts/setting.py
	modified:   resources/locales/ui.ts
	new file:   resources/locales/ui_nl_NL.qm
	new file:   resources/locales/ui_nl_NL.ts
	new file:   resources/locales/ui_pl_PL.qm
	new file:   resources/locales/ui_pl_PL.ts
	modified:   resources/resources.qrc
  • Loading branch information
alireza-amirsamimi committed Aug 14, 2019
1 parent ac318c6 commit c3a7173
Show file tree
Hide file tree
Showing 9 changed files with 26,978 additions and 21,626 deletions.
44,704 changes: 23,112 additions & 21,592 deletions persepolis/gui/resources.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion persepolis/scripts/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
rtl_locale_list = ['fa_IR']

# left to right languages
ltr_locale_list = ['en_US', 'zh_CN', 'fr_FR']
ltr_locale_list = ['en_US', 'zh_CN', 'fr_FR', 'pl_PL', 'nl_NL']

if locale in rtl_locale_list:
persepolis_setting.setValue('ui_direction', 'rtl')
Expand Down
2 changes: 1 addition & 1 deletion persepolis/scripts/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(self, parent, persepolis_setting):
self.style_comboBox.setCurrentIndex(current_style_index)

# available language
available_language = ['en_US', 'fa_IR', 'zh_CN', 'fr_FR']
available_language = ['en_US', 'fa_IR', 'zh_CN', 'fr_FR', 'pl_PL', 'nl_NL']
for lang in available_language:
self.lang_comboBox.addItem(str(QLocale(lang).nativeLanguageName()), lang)

Expand Down
64 changes: 32 additions & 32 deletions resources/locales/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ Ehsan Titish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3260"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3263"/>
<source>Show main Window</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -488,7 +488,7 @@ Ehsan Titish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5868"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5871"/>
<source>Download Starts</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -498,12 +498,12 @@ Ehsan Titish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="6055"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="6058"/>
<source>Operation was not successful.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="6055"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="6058"/>
<source>Please resume the following category: </source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -553,97 +553,97 @@ Ehsan Titish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3271"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3274"/>
<source>Minimize to system tray</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3737"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3740"/>
<source>Not Found</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3686"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3689"/>
<source>Operation was not successful!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3474"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3477"/>
<source>Operation was not successful! Please stop the following category first: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3527"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3530"/>
<source>Please stop the following download first: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3584"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3587"/>
<source>&lt;b&gt;&lt;center&gt;This operation will delete downloaded files from your hard disk&lt;br&gt;PERMANENTLY!&lt;/center&gt;&lt;/b&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4784"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4787"/>
<source>&lt;center&gt;Do you want to continue?&lt;/center&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3635"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3638"/>
<source>Please stop the following category first: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4278"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4281"/>
<source>&lt;/b&gt;&quot; already exists!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4619"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4622"/>
<source>Send selected downloads to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4622"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4625"/>
<source>Send to</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4759"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4762"/>
<source>Sort by</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4781"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4784"/>
<source>&lt;b&gt;&lt;center&gt;This operation will remove all download items in this queue&lt;br&gt;from &quot;All Downloads&quot; list!&lt;/center&gt;&lt;/b&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="4806"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="4809"/>
<source>&lt;b&gt;Sorry! You can&apos;t remove default queue!&lt;/b&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5036"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5039"/>
<source>Some items didn&apos;t transferred successfully!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5036"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5039"/>
<source>Please stop download progress first.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5068"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5071"/>
<source>Hide options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5072"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5075"/>
<source>Show options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5683"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5686"/>
<source>Stop all downloads first!</source>
<translation type="unfinished"></translation>
</message>
Expand All @@ -658,47 +658,47 @@ Ehsan Titish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3657"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3660"/>
<source>Download is in progress by video finder!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3657"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3660"/>
<source>be patient!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="3686"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="3689"/>
<source>Stop the following download first: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5590"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5593"/>
<source>Operation was not successful! Following download must be completed first: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5724"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5727"/>
<source>youtube-dl is not installed!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="5728"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="5731"/>
<source>ffmpeg is not installed!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="6027"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="6030"/>
<source>Not enough free space in:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="6033"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="6036"/>
<source>an error occured</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../persepolis/scripts/mainwindow.py" line="6033"/>
<location filename="../../persepolis/scripts/mainwindow.py" line="6036"/>
<source>muxing error</source>
<translation type="unfinished"></translation>
</message>
Expand Down
Binary file added resources/locales/ui_nl_NL.qm
Binary file not shown.
Loading

0 comments on commit c3a7173

Please sign in to comment.