Skip to content

Commit

Permalink
Bug fixed and Turkish translation updated
Browse files Browse the repository at this point in the history
Now the use proxy flag is not removed when switching the API
  • Loading branch information
alekssamos committed Aug 25, 2023
1 parent 447c94f commit adc1573
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 77 deletions.
2 changes: 1 addition & 1 deletion addon/doc/en/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Дополнение Яндекс.Переводчик для NVDA

[Скачать версию 2022.05.15](https://github.com/alekssamos/YandexTranslate/releases/latest/download/YandexTranslate-2022.05.15.nvda-addon)
[Скачать версию 2023.02.19](https://github.com/alekssamos/YandexTranslate/releases/latest/download/YandexTranslate-2023.02.19.nvda-addon)

После установки зайдите в **NVDA меню**, **Параметры**, **Жесты ввода**,
назначте удобные вам сочетания клавиш для YandexTranslate. Или используйте уже предустановленные (ниже).
Expand Down
2 changes: 0 additions & 2 deletions addon/globalPlugins/yandexTranslate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ def onApiSel(self, event):
self.generate_new_key.Disable()
else:
self.generate_new_key.Disable()
self.useProxy.SetValue(False)
self.onUseProxy(None)
yt = YandexFreeTranslate(config.conf["YandexTranslate"]["api"].lower())

def onGenerate_new_key(self, event):
Expand Down
162 changes: 91 additions & 71 deletions addon/locale/tr/LC_MESSAGES/nvda.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,209 +2,229 @@ msgid ""
msgstr ""
"Project-Id-Version: Yandex Translate\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2020-09-04 13:07+0300\n"
"PO-Revision-Date: 2020-11-12 11:14+0300\n"
"Last-Translator: Alex <[email protected]>\n"
"POT-Creation-Date: 2023-08-24 19:47+0300\n"
"PO-Revision-Date: 2023-08-24 19:58+0300\n"
"Last-Translator: Umut KORKMAZ <[email protected]>\n"
"Language-Team: [email protected]\n"
"Language: tr\n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.4.2\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 3.3.2\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: ../../../globalPlugins\n"

#: ../../../globalPlugins/yandexTranslate/__init__.py:50
#: ../../../globalPlugins/yandexTranslate/__init__.py:71
msgid "Invalid API key"
msgstr "Invalid API key"
msgstr "Geçersiz API anahtarı"

#: ../../../globalPlugins/yandexTranslate/__init__.py:51
#: ../../../globalPlugins/yandexTranslate/__init__.py:72
msgid "This API key has been blocked"
msgstr "Bu API anahtarı engellendi"

#: ../../../globalPlugins/yandexTranslate/__init__.py:52
#: ../../../globalPlugins/yandexTranslate/__init__.py:73
msgid "You have reached the daily limit for requests"
msgstr "Çeviri talepleri için günlük sınır aşıldı"

#: ../../../globalPlugins/yandexTranslate/__init__.py:53
#: ../../../globalPlugins/yandexTranslate/__init__.py:74
msgid "You have reached the daily limit for the volume of translated text"
msgstr "Çevrilmiş metin hacmi için günlük sınır aşıldı"

#: ../../../globalPlugins/yandexTranslate/__init__.py:54
#: ../../../globalPlugins/yandexTranslate/__init__.py:75
msgid "The text size exceeds the maximum"
msgstr "Metin boyutu maksimum değeri aşıyor"

#: ../../../globalPlugins/yandexTranslate/__init__.py:55
#: ../../../globalPlugins/yandexTranslate/__init__.py:76
msgid "The text could not be translated"
msgstr "Metin çevrilemedi"

#: ../../../globalPlugins/yandexTranslate/__init__.py:56
#: ../../../globalPlugins/yandexTranslate/__init__.py:77
msgid "The specified translation direction is not supported"
msgstr "Belirtilen çeviri yönü desteklenmiyor"

#: ../../../globalPlugins/yandexTranslate/__init__.py:63
#: ../../../globalPlugins/yandexTranslate/__init__.py:88
msgid "Action cannot be performed because NVDA running on secure desktop"
msgstr "NVDA güvenli kipte çalıştığı için eylem gerçekleştirilemiyor"

#: ../../../globalPlugins/yandexTranslate/__init__.py:69
#: ../../../globalPlugins/yandexTranslate/__init__.py:102
msgid "Yandex Translate Settings"
msgstr "Yandex Çeviri Ayarları"

#: ../../../globalPlugins/yandexTranslate/__init__.py:76
#: ../../../globalPlugins/yandexTranslate/__init__.py:110
msgid "&API:"
msgstr "&API Anahtarı:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:114
msgid "&Source language:"
msgstr "&Kaynak dil:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:76
#: ../../../globalPlugins/yandexTranslate/__init__.py:114
msgid "&Detect language automatically"
msgstr "Dili &otomatik olarak algıla"
msgstr "Dili Otomatik Algıla"

#: ../../../globalPlugins/yandexTranslate/__init__.py:82
#: ../../../globalPlugins/yandexTranslate/__init__.py:120
msgid "&Primary target language:"
msgstr "&Birincil hedef dil:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:85
#: ../../../globalPlugins/yandexTranslate/__init__.py:123
msgid "S&econdary target language:"
msgstr "İk&incil hedef dil:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:88
#: ../../../globalPlugins/yandexTranslate/__init__.py:126
msgid ""
"&Language translation, if the language of the text coincides with the target:"
msgstr "Alternatif dil, &metnin dili hedefle çakışırsa:"
msgstr "A&lternatif dil, metnin dili hedefle çakışırsa:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:91
#: ../../../globalPlugins/yandexTranslate/__init__.py:129
msgid "&Copy translation to clipboard"
msgstr "Çeviriyi &panoya kopyala"

#: ../../../globalPlugins/yandexTranslate/__init__.py:95
#: ../../../globalPlugins/yandexTranslate/__init__.py:133
msgid "&Play tones when translation waiting"
msgstr "&Çeviri için beklenirken ses çal"

#: ../../../globalPlugins/yandexTranslate/__init__.py:101
#: ../../../globalPlugins/yandexTranslate/__init__.py:139
msgid "&Generate new API key"
msgstr "&Yeni API anahtarı oluştur"

#: ../../../globalPlugins/yandexTranslate/__init__.py:105
#: ../../../globalPlugins/yandexTranslate/__init__.py:143
#| msgid "&Play tones when translation waiting"
msgid "&Enable translation caching"
msgstr "Çevirileri önbelleğe almayı &etkinleştir"

#: ../../../globalPlugins/yandexTranslate/__init__.py:147
#| msgid "&Play tones when translation waiting"
msgid "Cle&ar the translation cache"
msgstr "Çeviri &önbelleğini temizle"

#: ../../../globalPlugins/yandexTranslate/__init__.py:151
msgid "&Use proxy server"
msgstr "&Proxy sunucusu kullan"

#: ../../../globalPlugins/yandexTranslate/__init__.py:110
#: ../../../globalPlugins/yandexTranslate/__init__.py:156
msgid "Proxy &protocol:"
msgstr "Proxy &protokolü:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:113
#: ../../../globalPlugins/yandexTranslate/__init__.py:159
msgid "Proxy &host:"
msgstr "Proxy &ana bilgisayar:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:114
#: ../../../globalPlugins/yandexTranslate/__init__.py:160
msgid "Proxy p&ort:"
msgstr "Proxy &bağlantı noktası:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:116
#: ../../../globalPlugins/yandexTranslate/__init__.py:162
msgid "Proxy &login:"
msgstr "Proxy &oturum açma:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:117
#: ../../../globalPlugins/yandexTranslate/__init__.py:163
msgid "Proxy p&assword:"
msgstr "Proxy &şifresi:"

#: ../../../globalPlugins/yandexTranslate/__init__.py:120
#: ../../../globalPlugins/yandexTranslate/__init__.py:166
msgid "&Reset settings to the default value"
msgstr "Ayarları va&rsayılan değere Sıfırla"

#: ../../../globalPlugins/yandexTranslate/__init__.py:132
#: ../../../globalPlugins/yandexTranslate/__init__.py:193
msgid "A new key is created successfully"
msgstr "Yeni bir anahtar başarıyla oluşturuldu"

#: ../../../globalPlugins/yandexTranslate/__init__.py:134
#: ../../../globalPlugins/yandexTranslate/__init__.py:195
msgid ""
"Failed to get a new key. Check your internet connection, wait a bit or go to "
"Yandex, enter the captcha and try again."
msgstr ""
"Yeni bir anahtar alma girişimi başarısız. İnternet bağlantınızı kontrol "
"edin, biraz bekleyin veya Yandex'e gidin, captcha'yı girin ve tekrar deneyin."

#: ../../../globalPlugins/yandexTranslate/__init__.py:137
#: ../../../globalPlugins/yandexTranslate/__init__.py:153
#: ../../../globalPlugins/yandexTranslate/__init__.py:198
#: ../../../globalPlugins/yandexTranslate/__init__.py:222
msgid "Error saving settings"
msgstr "Ayarların kaydedilmesinde hata"

#: ../../../globalPlugins/yandexTranslate/__init__.py:255
#: ../../../globalPlugins/yandexTranslate/__init__.py:208
#| msgid "A new key is created successfully"
msgid "Cache cleared successfully"
msgstr "Önbellek başarıyla temizlendi"

#: ../../../globalPlugins/yandexTranslate/__init__.py:334
msgid "Yandex Translate"
msgstr "Yandex Çeviri"

#: ../../../globalPlugins/yandexTranslate/__init__.py:284
#: ../../../globalPlugins/yandexTranslate/__init__.py:362
msgid "Yandex Translate Settings..."
msgstr "Yandex Çeviri Ayarları..."

#: ../../../globalPlugins/yandexTranslate/__init__.py:308
#: ../../../globalPlugins/yandexTranslate/__init__.py:400
msgid ""
"Unfortunately the translation is not available. Please check your Internet "
"connection"
msgstr ""
"Yazık ki çeviri mevcut değil. Lütfen İnternet bağlantınızı kontrol edin"

#: ../../../globalPlugins/yandexTranslate/__init__.py:313
#: ../../../globalPlugins/yandexTranslate/__init__.py:405
#, python-format
msgid "Error: %s"
msgstr "Hata: %s"

#: ../../../globalPlugins/yandexTranslate/__init__.py:348
#: ../../../globalPlugins/yandexTranslate/__init__.py:358
#: ../../../globalPlugins/yandexTranslate/__init__.py:381
#: ../../../globalPlugins/yandexTranslate/__init__.py:436
msgid "Translate text from the clipboard"
msgstr "Panodaki metni çevirir"

#: ../../../globalPlugins/yandexTranslate/__init__.py:445
#: ../../../globalPlugins/yandexTranslate/__init__.py:459
#: ../../../globalPlugins/yandexTranslate/__init__.py:488
msgid "No text to translate"
msgstr "Çevrilecek metin yok"

#: ../../../globalPlugins/yandexTranslate/__init__.py:352
msgid "Translate text from the clipboard"
msgstr "Panodaki metni çevir"

#: ../../../globalPlugins/yandexTranslate/__init__.py:362
#: ../../../globalPlugins/yandexTranslate/__init__.py:451
msgid "Translates the selected text."
msgstr "Seçili metni çevir"
msgstr "Seçili metni çevirir."

#: ../../../globalPlugins/yandexTranslate/__init__.py:369
#: ../../../globalPlugins/yandexTranslate/__init__.py:465
msgid "Translates the last spoken phrase"
msgstr "Son söyleneni çevir"
msgstr "Son söyleneni çevirir"

#: ../../../globalPlugins/yandexTranslate/__init__.py:385
#: ../../../globalPlugins/yandexTranslate/__init__.py:475
msgid "Translates text from navigator object"
msgstr "Nesne sunucusunun konumundakini çevir"
msgstr "Nesne sunucusunun konumundakini çevirir"

#: ../../../globalPlugins/yandexTranslate/__init__.py:394
#: ../../../globalPlugins/yandexTranslate/__init__.py:494
#: ../../../globalPlugins/yandexTranslate/__init__.py:507
msgid "Switching between the primary and secondary target language"
msgstr "Birincil ve ikincil hedef dil arasında geçiş yap"
msgstr "Birincil ve ikincil hedef dil arasında geçiş yapar"

#: ../../../globalPlugins/yandexTranslate/__init__.py:400
#: ../../../globalPlugins/yandexTranslate/__init__.py:514
msgid "Copy to clipboard"
msgstr "Panoya kopyala"

#: ../../../globalPlugins/yandexTranslate/__init__.py:402
#: ../../../globalPlugins/yandexTranslate/__init__.py:516
msgid "No translation to copy"
msgstr "Kopyalanacak çeviri yok"

#: ../../../globalPlugins/yandexTranslate/__init__.py:403
#: ../../../globalPlugins/yandexTranslate/__init__.py:517
msgid "Copy last translation to clipboard"
msgstr "Son çeviriyi panoya kopyala"
msgstr "Son çeviriyi panoya kopyalar"

#: ../../../globalPlugins/yandexTranslate/__init__.py:408
#: ../../../globalPlugins/yandexTranslate/__init__.py:522
msgid "Shows the settings dialog"
msgstr "Ayarlar iletişim kutusunu göster"
msgstr "Ayarlar iletişim kutusunu gösterir"

#: ../../../globalPlugins/yandexTranslate/__init__.py:412
#: ../../../globalPlugins/yandexTranslate/__init__.py:525
msgid "Switches the function of automatic translation"
msgstr "Otomatik çeviri işlevini açıp kapatır"

#: ../../../globalPlugins/yandexTranslate/__init__.py:530
msgid "Automatic translation enabled"
msgstr "Otomatik çeviri etkin"

#: ../../../globalPlugins/yandexTranslate/__init__.py:416
#: ../../../globalPlugins/yandexTranslate/__init__.py:534
msgid "Automatic translation disabled"
msgstr "Otomatik çeviri devre dışı"

#: ../../../globalPlugins/yandexTranslate/__init__.py:417
msgid "Switches the function of automatic translation"
msgstr "Otomatik çeviri işlevini açıp kapa"

#: ../../../globalPlugins/yandexTranslate/languages.py:6
msgid "Afrikaans"
msgstr "Afrikaca"
Expand Down Expand Up @@ -311,7 +331,7 @@ msgstr "İrlandaca"

#: ../../../globalPlugins/yandexTranslate/languages.py:32
msgid "Scottish Gaelic"
msgstr "İskoç Gaelic"
msgstr "İskoç Galcesi"

#: ../../../globalPlugins/yandexTranslate/languages.py:33
msgid "Galician"
Expand Down Expand Up @@ -379,7 +399,7 @@ msgstr "Khmer"

#: ../../../globalPlugins/yandexTranslate/languages.py:49
msgid "Kannada"
msgstr "Kannada"
msgstr "Kannada dili"

#: ../../../globalPlugins/yandexTranslate/languages.py:50
msgid "Korean"
Expand Down
4 changes: 2 additions & 2 deletions addon/manifest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ summary = "Yandex translator for NVDA"
description = """Translates text using service Yandex Translate."""
author = "alekssamos <[email protected]>"
url = https://github.com/alekssamos/YandexTranslate/
version = 2022.05.15
version = 2023.08.24
docFileName = readme2.html
minimumNVDAVersion = 2019.3
lastTestedNVDAVersion = 2023.1
lastTestedNVDAVersion = 2023.4
updateChannel = None
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("""Translates text using service Yandex Translate."""),
# version
"addon_version": "2023.08.24",
"addon_version": "2023.08.25",
# Author(s)
"addon_author": u"alekssamos <[email protected]>",
# URL for the add-on documentation support
Expand Down

0 comments on commit adc1573

Please sign in to comment.