Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
add Turkish translate and bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTolstoyevski committed May 3, 2020
1 parent c28e164 commit f7edc8b
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ dmypy.json
.pyre/
.sconsign.dblite
*.html
msgfmt.exe
xgettext.exe
unspokenPy3-0.3.nvda-addon
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,10 @@ NVDA without it is bad 😢 .
I wanted to open the source code to everyone.
Please respect the great effort of the Unspoken main developer.

## Addon Status
* Beta

**Note**:

If you are not a developer, I wouldn't recommend running the add-on in beta.

## Steps for Use or test or developing

1. Clone this repo to test or use the add-on:
`git clone https://github.com/SeanTolstoyevski/unspokenPy3`
or download it from the GitHub page.
2. Copy the addon folder in the repo folder to the appdata/roaming/nvda / addon folder.
**NVDA's steps for your own configuration are not here.**
3. and change the folder name to "unspoken".
4. Restart NVDA.

## Issues that need help

I searched and couldn't find it.
Expand Down
13 changes: 0 additions & 13 deletions addon/doc/en/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,10 @@ NVDA without it is bad 😢 .
I wanted to open the source code to everyone.
Please respect the great effort of the Unspoken main developer.

## Addon Status
* Beta

**Note**:

If you are not a developer, I wouldn't recommend running the add-on in beta.

## Steps for Use or test or developing

1. Clone this repo to test or use the add-on:
`git clone https://github.com/SeanTolstoyevski/unspokenPy3`
or download it from the GitHub page.
2. Copy the addon folder in the repo folder to the appdata/roaming/nvda / addon folder.
**NVDA's steps for your own configuration are not here.**
3. and change the folder name to "unspoken".
4. Restart NVDA.

## Issues that need help

I searched and couldn't find it.
Expand Down
18 changes: 18 additions & 0 deletions addon/installTasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import addonHandler, gui, wx

addonHandler.initTranslation()

def onInstall():
for addon in addonHandler.getAvailableAddons():
if addon.manifest['name'] == "Unspoken Py3":
askToRemove(addon)
break

def askToRemove(addon):
if gui.messageBox(
# Translators: the label of a message box dialog.
_("You have installed an old and incompatible version of this addon. Do you want to uninstall the old version?"),
# Translators: the title of a message box dialog.
_("Uninstall incompatible add-on"),
wx.YES|wx.NO|wx.ICON_WARNING) == wx.YES:
addon.requestRemove()
Binary file added addon/locale/tr/LC_MESSAGES/nvda.mo
Binary file not shown.
46 changes: 46 additions & 0 deletions addon/locale/tr/LC_MESSAGES/nvda.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 'unspokenPy3' '0.3'\n"
"Report-Msgid-Bugs-To: '[email protected]'\n"
"POT-Creation-Date: 2020-05-03 21:59+0300\n"
"PO-Revision-Date: 2020-05-03 22:03+0300\n"
"Language-Team: Sean <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n"
"Last-Translator: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: tr_TR\n"
"X-Poedit-SourceCharset: UTF-8\n"

#: buildVars.py:9
msgid "Unspoken"
msgstr "Sözsüz"

#: buildVars.py:10
msgid ""
"Removes names like unspoken, link, button. It plays different sounds instead "
"of informations."
msgstr ""
"Sözsüz, bağlantı, düğme gibi adları kaldırır. Bilgiler yerine farklı sesler "
"çalar."

#. Translators: the label of a message box dialog.
#: addon\installTasks.py:14
msgid ""
"You have installed an old and incompatible version of this addon. Do you "
"want to uninstall the old version?"
msgstr ""
"Bu eklentinin eski ve uyumsuz bir sürümü kurulu. Eski sürümü kaldırmak "
"istiyor musunuz?"

#. Translators: the title of a message box dialog.
#: addon\installTasks.py:16
msgid "Uninstall incompatible add-on"
msgstr "Uyumsuz Eklenti: Kaldır "
2 changes: 2 additions & 0 deletions addon/locale/tr/manifest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
summary = "Sözsüz"
description = """Sözsüz, bağlantı, düğme gibi adları kaldırır. Bilgiler yerine farklı sesler çalar."""
2 changes: 1 addition & 1 deletion addon/manifest.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = unspokenPy3
summary = "Unspoken"
description = """Removes names like unspoken, link, button. It plays different sounds instead of informations."""
author = "Sean: [email protected]"
author = "Camlorn (main developer): [email protected], Bryan Smart: NoMail, Sean (ported python3): [email protected]"
url = None
version = 0.3
docFileName = readme.html
Expand Down
40 changes: 40 additions & 0 deletions addon/unspokenPy3.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 'unspokenPy3' '0.3'\n"
"Report-Msgid-Bugs-To: '[email protected]'\n"
"POT-Creation-Date: 2020-05-03 22:04+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: buildVars.py:9
msgid "Unspoken"
msgstr ""

#: buildVars.py:10
msgid ""
"Removes names like unspoken, link, button. It plays different sounds instead "
"of informations."
msgstr ""

#. Translators: the label of a message box dialog.
#: addon\installTasks.py:14
msgid ""
"You have installed an old and incompatible version of this addon. Do you "
"want to uninstall the old version?"
msgstr ""

#. Translators: the title of a message box dialog.
#: addon\installTasks.py:16
msgid "Uninstall incompatible add-on"
msgstr ""
4 changes: 2 additions & 2 deletions buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"addon_summary" : _("Unspoken"),
"addon_description" : _("""Removes names like unspoken, link, button. It plays different sounds instead of informations."""),
"addon_version" : "0.3",
"addon_author" : u"Sean: [email protected]",
"addon_author" : u"Camlorn (main developer): [email protected], Bryan Smart: NoMail, Sean (ported python3): [email protected]",
"addon_url" : None,
"addon_docFileName" : "readme.html",
"addon_minimumNVDAVersion" : 2019.3,
Expand All @@ -21,6 +21,6 @@

pythonSources = list(Path.cwd().joinpath("addon", "globalPlugins").rglob("*.py"))

i18nSources = pythonSources + ["buildVars.py"]
i18nSources = pythonSources + ["buildVars.py", "addon\\installTasks.py"]

excludedFiles = []

0 comments on commit f7edc8b

Please sign in to comment.