Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
System Monitoring Center
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Kayıtlar (commit)
Kenar çubuğunu aç
Hakan Dündar
System Monitoring Center
Commits
ad3ea3d2
Kaydet (Commit)
ad3ea3d2
authored
Kas 28, 2022
tarafından
Hakan Dündar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated translations
üst
6b6d812b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
13 deletions
+24
-13
MainWindow.py
src/MainWindow.py
+24
-13
No files found.
src/MainWindow.py
Dosyayı görüntüle @
ad3ea3d2
...
...
@@ -679,19 +679,30 @@ class MainWindow():
with
open
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
"/__version__"
)
as
reader
:
software_version
=
reader
.
read
()
.
strip
()
# Define translators dictionary
translators_dic
=
{
"cs"
:
"panmourovaty"
,
"de"
:
"Baumfinder"
,
"fa"
:
"MasterKia"
,
"hu"
:
"Kálmán Szalai"
,
"pl"
:
"ski007, K0RR, sdorpl"
,
"pt_BR"
:
"Bruno do Nascimento"
,
"pt_PT"
:
"Hugo Carvalho, Ricardo Simões"
,
"ru_RU"
:
"akorny"
,
"tr"
:
"Hakan Dündar"
}
application_language
=
Config
.
language
application_language_code
=
application_language
.
split
(
"."
)[
0
]
application_language_code_split
=
application_language_code
.
split
(
"_"
)[
0
]
# Define translators list
translators_list
=
[
"panmourovaty (čeština)"
,
"Baumfinder (Deutsch)"
,
"MasterKia (فارسی)"
,
"Kálmán Szalai (Magyar)"
,
"ski007, K0RR, sdorpl (polski)"
,
"Bruno do Nascimento (português do Brasil)"
,
"Ricardo Simões (português europeu)"
,
"akorny (Русский)"
,
"Hakan Dündar (Türkçe)"
]
translators_list
=
'
\n
'
.
join
(
translators_list
)
try
:
translators
=
'
\n
'
.
join
(
translators_dic
[
application_language_code
]
.
split
(
", "
))
except
Exception
:
try
:
translators
=
'
\n
'
.
join
(
translators_dic
[
application_language_code_split
]
.
split
(
", "
))
except
Exception
:
translators
=
"-"
# AboutDialog
self
.
about_dialog
=
Gtk
.
AboutDialog
()
...
...
@@ -705,7 +716,7 @@ class MainWindow():
self
.
about_dialog
.
set_copyright
(
"© 2022 Hakan Dündar"
)
self
.
about_dialog
.
set_website
(
"https://github.com/hakandundar34coding/system-monitoring-center"
)
self
.
about_dialog
.
set_license_type
(
Gtk
.
License
.
GPL_3_0
)
self
.
about_dialog
.
set_translator_credits
(
translators
_list
)
self
.
about_dialog
.
set_translator_credits
(
translators
)
# Hide the window/dialog when it is closed. Otherwise, it is deleted.
# But opening window/dialog multiple times without deleting it consumes more memory each time.
self
.
about_dialog
.
set_hide_on_close
(
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment