Translate about dialog

This commit is contained in:
Gobinath 2017-04-22 19:59:14 -04:00
parent cca711a449
commit f7ba152aef
18 changed files with 86 additions and 7 deletions

View File

@ -30,12 +30,15 @@ class AboutDialog:
"""
Read the about_dialog.glade and build the user interface.
"""
def __init__(self, glade_file, version):
def __init__(self, glade_file, version, language):
builder = Gtk.Builder()
builder.add_from_file(glade_file)
builder.connect_signals(self)
self.window = builder.get_object("window_about")
builder.get_object('lbl_decription').set_label(language['app_info']['description'])
builder.get_object('lbl_license').set_label(str(language['ui_controls']['license']) + ':')
builder.get_object('btn_close').set_label(language['ui_controls']['close'])
# Set the version at the runtime
builder.get_object("lbl_app_name").set_label("Safe Eyes " + version)

View File

@ -62,7 +62,7 @@ def show_settings():
"""
def show_about():
logging.info("Show About dialog")
about_dialog = AboutDialog(about_dialog_glade, SAFE_EYES_VERSION)
about_dialog = AboutDialog(about_dialog_glade, SAFE_EYES_VERSION, language)
about_dialog.show()
"""

View File

@ -3,6 +3,9 @@
"language_name": "Čeština",
"language_name_en": "Czech"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Zavřete oči",
"short_break_roll_eyes": "Kroužete očima",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Zvukové upozornění na konec přestávky",
"cancel": "Zrušit",
"close": "Close",
"disable": "Pozastavit Safe Eyes",
"enable": "Zapnout Safe Eyes",
"enable_screen_lock": "Po každé dlouhé přestávce uzamknout obrazovku",
@ -34,6 +38,7 @@
"idle_time": "Pozastavit při nečinnosti delší než (minut)",
"interval_between_two_breaks": "Interval mezi dvěma přestávkami",
"language": "Jazyk",
"license": "License",
"long_break_duration": "Trvání dlouhé přestávky (v sekundách)",
"no_of_short_breaks_between_two_long_breaks": "Počet krátkých přestávek mezi dvěma dlouhými",
"postpone": "Odložit",

View File

@ -3,6 +3,9 @@
"language_name": "Deutsch",
"language_name_en": "German"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Schließen Sie die Augen",
"short_break_roll_eyes": "Rollen Sie mit den Augen",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Akustisches Signal am Ende der Pause",
"cancel": "Abbrechen",
"close": "Close",
"disable": "Safe Eyes deaktivieren",
"enable": "Safe Eyes aktivieren",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Minimum idle time to pause (in minutes)",
"interval_between_two_breaks": "Intervall zwischen zwei Pausen",
"language": "Sprache",
"license": "License",
"long_break_duration": "Lange Pause Intervall (in Sekunden)",
"no_of_short_breaks_between_two_long_breaks": "Anzahl von kleinen Pausen zwischen zwei langen Pausen",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "English",
"language_name_en": "English"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Tightly close your eyes",
"short_break_roll_eyes": "Roll your eyes a few times to each side",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Audible alert at the end of break",
"cancel": "Cancel",
"close": "Close",
"disable": "Disable Safe Eyes",
"enable": "Enable Safe Eyes",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Minimum idle time to pause (in minutes)",
"interval_between_two_breaks": "Interval between two breaks (in minutes)",
"language": "Language",
"license": "License",
"long_break_duration": "Long break duration (in seconds)",
"no_of_short_breaks_between_two_long_breaks": "Number of short breaks between two long breaks",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "Español",
"language_name_en": "Spanish"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Cierra fuertemente tus ojos",
"short_break_roll_eyes": "Cierra tus ojos y mueve tus ojos en círculos con las manos",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Alerta sonora al final de cada pausa",
"cancel": "Cancelar",
"close": "Close",
"disable": "Desactivar Safe Eyes",
"enable": "Activar Safe Eyes",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Minimum idle time to pause (in minutes)",
"interval_between_two_breaks": "Tiempo entre dos pausas",
"language": "Idioma",
"license": "License",
"long_break_duration": "Duración de una pausa larga (en segundos)",
"no_of_short_breaks_between_two_long_breaks": "Número de pausas cortas entre dos pausas largas",
"postpone": "Posponer",

View File

@ -3,6 +3,9 @@
"language_name": "Français",
"language_name_en": "French"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Fermez bien vos yeux",
"short_break_roll_eyes": "Regardez de droite à gauche en alternance",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Alerte sonore en fin d'une pause",
"cancel": "Annuler",
"close": "Close",
"disable": "Désactiver Safe Eyes",
"enable": "Activer Safe Eyes",
"enable_screen_lock": "Verrouiller l'écran après chaque pause longue",
@ -34,6 +38,7 @@
"idle_time": "Durée minimale d'une pause (en minutes)",
"interval_between_two_breaks": "Intervalle entre deux pauses (en minutes)",
"language": "Langue",
"license": "License",
"long_break_duration": "Durée d'une pause longue (en secondes)",
"no_of_short_breaks_between_two_long_breaks": "Nombre de pauses courtes entre deux pauses longues",
"postpone": "Reporter",

View File

@ -3,6 +3,9 @@
"language_name": "ქართული",
"language_name_en": "Georgian"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "ძლიერად დახუჭე თვალები",
"short_break_roll_eyes": "ფართოდ გაახილეთ თვალები",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "ხმოვანი შეტყობინება შესვენების დამთავრებისას",
"cancel": "უარყოფა",
"close": "Close",
"disable": "Safe Eyes გამორთვა",
"enable": "Safe Eyes ჩართვა",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "მინიმუმ idle დრო პაუზის ასაღებად (წუთებში)",
"interval_between_two_breaks": "ინტერვალი შესვენებებს შორის",
"language": "ენა",
"license": "License",
"long_break_duration": "დიდი შესვენების ხანგრძლივობა (წამებში)",
"no_of_short_breaks_between_two_long_breaks": "მცირე შესვენებების რაოდენობა ორ დიდ შესვენებას შორის",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "हिंदी",
"language_name_en": "Hindi"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "आँखों को ज़ोर से बंद करें",
"short_break_roll_eyes": "आँखों को घुमाएं",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "आराम के ख़तम के ख़तम होने पर आवाज़",
"cancel": "रखना नहीं",
"close": "Close",
"disable": "सेफ आईज बंद",
"enable": "सेफ आईज शुरू",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "बीच रोकने पर कितने मिन्टों का अंतर",
"interval_between_two_breaks": "दो आराम अवधियों में अंतर (मिन्टों में)",
"language": "भाषा",
"license": "License",
"long_break_duration": "लंबे आराम की अवधि (पलों में)",
"no_of_short_breaks_between_two_long_breaks": "दो बड़े आराम के बीच कितने छोटे आराम",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "Magyar",
"language_name_en": "Hungarian"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Csukja be hosszabb időre a szemét!",
"short_break_roll_eyes": "Roll your eyes",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Audible alert at the end of break",
"cancel": "Mégse",
"close": "Close",
"disable": "Disable Safe Eyes",
"enable": "Safe Eyes Bekapcsolása",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Minimum idle time to pause (in minutes)",
"interval_between_two_breaks": "Két szünet közötti idő",
"language": "Nyelv",
"license": "License",
"long_break_duration": "Hosszú szünet hossza (másodpercekben)",
"no_of_short_breaks_between_two_long_breaks": "Hány rövid szünet legyen a hosszabbak között?",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "Bahasa Indonesia",
"language_name_en": "Indonesian"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Tutup rapat mata Anda",
"short_break_roll_eyes": "Putar mata Anda",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Peringatan bersuara saat istirahat berakhir",
"cancel": "Batal",
"close": "Close",
"disable": "Matikan Safe Eyes",
"enable": "Hidupkan Safe Eyes",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Waktu diam jeda minimal (dalam menit)",
"interval_between_two_breaks": "Jarak antara dua istirahat (dalam menit)",
"language": "Bahasa",
"license": "License",
"long_break_duration": "Durasi istirahat panjang (dalam detik)",
"no_of_short_breaks_between_two_long_breaks": "Jumlah istirahat singkat di antara dua istirahat panjang",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "Polski",
"language_name_en": "Polish"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Mocno zaciśnij powieki",
"short_break_roll_eyes": "Ruszaj oczami z boku na bok",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Powiadomienie dźwiękowe na koniec przerwy",
"cancel": "Anuluj",
"close": "Close",
"disable": "Zatrzymaj Safe Eyes",
"enable": "Uruchom Safe Eyes",
"enable_screen_lock": "Zablokuj ekran po każdej długiej przerwie",
@ -34,6 +38,7 @@
"idle_time": "Najkrótszy czas bez aktywności do wstrzymania odliczania (w minutach)",
"interval_between_two_breaks": "Czas między kolejnymi przerwami (w minutach)",
"language": "Język",
"license": "License",
"long_break_duration": "Czas trwania długiej przerwy (w sekundach)",
"no_of_short_breaks_between_two_long_breaks": "Liczba krótkich przerw między długimi przerwami",
"postpone": "Odrocz",

View File

@ -3,6 +3,9 @@
"language_name": "Português",
"language_name_en": "Portuguese"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Feche bem os olhos",
"short_break_roll_eyes": "Mexa os olhos",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Alerta sonoro no fim da pausa",
"cancel": "Cancelar",
"close": "Close",
"disable": "Desativar Safe Eyes",
"enable": "Habilitar Safe Eyes",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Tempo mínimo de inatividade para pausar (em minutos)",
"interval_between_two_breaks": "Intervalo entre duas pausas",
"language": "Idioma",
"license": "License",
"long_break_duration": "Duração de uma pausa longa (em segundos)",
"no_of_short_breaks_between_two_long_breaks": "Número de pausas curtas entre duas pausas longas",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "Русский",
"language_name_en": "Russian"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Сильно зажмурьтесь",
"short_break_roll_eyes": "Закатите глаза",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Звуковой сигнал в конце перерыва",
"cancel": "Отменить",
"close": "Close",
"disable": "Отключить Safe Eyes",
"enable": "Активировать Safe Eyes",
"enable_screen_lock": "Включить блокировку экрана",
@ -34,6 +38,7 @@
"idle_time": "Минимальное время простоя для паузы (в минутах)",
"interval_between_two_breaks": "Интервал между двумя перерывами",
"language": "Язык",
"license": "License",
"long_break_duration": "Продолжительность длинного перерыва (в секундах)",
"no_of_short_breaks_between_two_long_breaks": "Количество коротких перерывов между двумя длинными",
"postpone": "Отложить",

View File

@ -3,6 +3,9 @@
"language_name": "Slovenský",
"language_name_en": "Slovak"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Pevne zavri oči",
"short_break_roll_eyes": "Gúľaj očami",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Zvukový signál na konci prestávky",
"cancel": "Zrušiť",
"close": "Close",
"disable": "Zakázať Safe Eyes",
"enable": "Povoliť Safe Eyes",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Pozastaviť pri nečinnosti dlhšej ako (v minútach)",
"interval_between_two_breaks": "Interval medzi dvomi prestávkami",
"language": "Jazyk",
"license": "License",
"long_break_duration": "Trvanie dlhej prestávky (v sekundách)",
"no_of_short_breaks_between_two_long_breaks": "Počet krátkych prestávok medzi dvomi dlhými prestávkami",
"postpone": "Postpone",

View File

@ -3,6 +3,9 @@
"language_name": "தமிழ்",
"language_name_en": "Tamil"
},
"app_info": {
"description": "அடிக்கடி ஓய்வெடுக்க அறிவுறுத்துவதன் மூலம் Safe Eyes கணனியில் நீண்ட நேரம் பணியாற்றுவதால் ஏற்படும் கண் சோர்வை தடுக்கிறது."
},
"exercises": {
"short_break_close_eyes": "உங்கள் கண்களை இறுக்கமாக மூடுங்கள்",
"short_break_roll_eyes": "உங்கள் கண்களை இடம் வலமாக உருட்டுங்கள்",
@ -25,6 +28,7 @@
"allow_postpone": "ஒத்திவைக்க அனுமதிக்கவும்",
"audible_alert": "இடைவேளையின் இறுதியில் ஒலி சமிக்கை",
"cancel": "ரத்து",
"close": "மூடு",
"disable": "Safe Eyes ஐ நிறுத்துக",
"enable": "Safe Eyes ஐ செயல்படுத்துக",
"enable_screen_lock": "நீண்ட கால இடைவேளைகளின் பின்னர் திரையை பூட்டுக",
@ -34,6 +38,7 @@
"idle_time": "இடைநிறுத்துவதற்கான குறைந்தபட்ச செயலற்ற நேரம் (நிமிடங்களில்)",
"interval_between_two_breaks": "இரண்டு இடைவேளைகளுக்கிடையிலான இடைவெளி (நிமிடங்களில்)",
"language": "மொழி",
"license": "மென்பொருள் உரிமம்",
"long_break_duration": "நீண்ட கால இடைவேளை (விநாடிகளில்)",
"no_of_short_breaks_between_two_long_breaks": "இரண்டு நீண்ட இடைவேளைகளுக்கிடையிலான குறுகிய இடைவேளைகள்",
"postpone": "ஒத்தி வை",

View File

@ -3,6 +3,9 @@
"language_name": "Türkçe",
"language_name_en": "Turkish"
},
"app_info": {
"description": "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer."
},
"exercises": {
"short_break_close_eyes": "Gözlerinizi sıkıca kapatın",
"short_break_roll_eyes": "Gözlerinizi çevirin",
@ -25,6 +28,7 @@
"allow_postpone": "Allow postponing the breaks",
"audible_alert": "Mola sonunda sesli uyarı",
"cancel": "İptal",
"close": "Close",
"disable": "Safe Eyes'ı devre dışı bırak",
"enable": "Safe Eyes'ı etkinleştir",
"enable_screen_lock": "Lock the screen after every long break",
@ -34,6 +38,7 @@
"idle_time": "Minimum boş zaman (dakika)",
"interval_between_two_breaks": "İki mola arasındaki süre",
"language": "Dil",
"license": "License",
"long_break_duration": "Uzun mola süresi (saniye)",
"no_of_short_breaks_between_two_long_breaks": "İki uzun mola arasındaki kısa mola sayısı",
"postpone": "Postpone",

View File

@ -41,7 +41,7 @@ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</pro
<property name="title" translatable="yes">Safe Eyes</property>
<property name="resizable">False</property>
<property name="window_position">center</property>
<property name="default_width">400</property>
<property name="default_width">350</property>
<property name="default_height">200</property>
<property name="icon_name">safeeyes</property>
<signal name="delete-event" handler="on_window_delete" swapped="no"/>
@ -88,10 +88,10 @@ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</pro
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">4</property>
<property name="label" translatable="yes">Safe Eyes is an open source Linux alternative for Eye Leo to protect your eyes
from eye strain (asthenopia) by reminding you to take breaks while you're
working long hours at the computer.</property>
<property name="label" translatable="yes">Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer.</property>
<property name="justify">fill</property>
<property name="wrap">True</property>
<property name="max_width_chars">60</property>
</object>
<packing>
<property name="expand">False</property>
@ -120,6 +120,7 @@ working long hours at the computer.</property>
<property name="can_focus">True</property>
<property name="editable">False</property>
<property name="wrap_mode">word</property>
<property name="justification">fill</property>
<property name="buffer">text_buffer_license</property>
<property name="accepts_tab">False</property>
</object>