Skip to content

Commit

Permalink
Merge pull request #5 from ibrahim-s/master
Browse files Browse the repository at this point in the history
update addon template files and translation and last tested version
  • Loading branch information
fawazar94 authored Jul 8, 2023
2 parents 2c032ad + e3fc547 commit b551e9e
Show file tree
Hide file tree
Showing 33 changed files with 1,013 additions and 154 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build_addon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: build addon

on:
push:
tags: ["*"]
# To build on main/master branch, uncomment the following line:
branches: [ main , master ]

pull_request:
branches: [ main, master ]

workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- run: echo -e "pre-commit\nscons\nmarkdown">requirements.txt

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements.txt
sudo apt-get update -y
sudo apt-get install -y gettext
- name: Code checks
run: export SKIP=no-commit-to-branch; pre-commit run --all

- name: building addon
run: scons

- uses: actions/upload-artifact@v3
with:
name: packaged_addon
path: ./*.nvda-addon

upload_release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: ["build"]
steps:
- uses: actions/checkout@v3
- name: download releases files
uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R

- name: Release
uses: softprops/action-gh-release@v1
with:
files: packaged_addon/*.nvda-addon
fail_on_unmatched_files: true
prerelease: ${{ contains(github.ref, '-') }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ addon/doc/*.css
addon/doc/en/
*_docHandler.py
*.html
*.ini
manifest.ini
*.mo
*.pot
*.py[co]
*.nvda-addon
.sconsign.dblite
/[0-9]*.[0-9]*.[0-9]*.json
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-yaml
29 changes: 29 additions & 0 deletions _template_addon_release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"addonId": "easyAddonTech.XYZ",
"addonVersionNumber": {
"major": 21,
"minor": 6,
"patch": 0
},
"addonVersionName": "21.06",
"displayName": "My addon",
"publisher": "easyAddonTech",
"description": "Makes doing XYZ easier",
"homepage": "https://github.com/nvaccess/addon-datastore",
"minNVDAVersion": {
"major": 2019,
"minor": 3,
"patch": 0
},
"lastTestedVersion": {
"major": 2020,
"minor": 4,
"patch": 0
},
"channel": "beta",
"URL": "https://github.com/nvaccess/addon-datastore/releases/download/v0.1.0/myAddon.nvda-addon",
"sha256": "69D84CA8899800A5575CE31798293CD4FEBAB1D734A07C2E51E56A28E0DF8C82",
"sourceURL": "https://github.com/nvaccess/addon-datastore/",
"license": "GPL v2",
"licenseURL": "https://github.com/nvaccess/addon-datastore/license.MD"
}
2 changes: 1 addition & 1 deletion addon/doc/bg/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ oneDrive (както личен, така и служебен) в директн

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/da/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ at ske:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/de/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ geschafft:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/es/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ podría haberlo hecho posible:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/fi/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ tätä lisäosaa:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/fr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ projet :

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/gl/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ facer que isto aparecese:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
59 changes: 59 additions & 0 deletions addon/doc/hr/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Direktna poveznica (Direct Link) #

* Autor: Fawaz Abdul Rahman
* Verzija: 1.0
* NVDA kompatibilnost: 2019.3 i novije verzije
* Preuzmi [stabilnu verziju][1]

## Funkcionalnost
Svrha dodatka je pretvoriti Dropbox, Google Drive ili oneDrive (osobne i
poslovne) poveznice u direktnu poveznicu, nadalje, generira direktnu
poveznicu na WhatsApp chat s odabranim telefonskim brojem.

## Primjena
* Odaberi ili kopiraj dijeljenu Dropbox, Google Drive ili oneDrive poveznicu
* Pritisni alt+NVDA+l za pretvaranje poveznice. Rezultirajući URL bit će u
tvom međuspremniku.
* Slično za telefonski broj, kopiraj ili odaberi broj s kojim želiš
razgovarati ili dijeliti i pritisni isti prečac (alt+NVDA+L).
* ako želiš otvoriti rezultirajuću poveznicu u pregledniku, pritisni
alt+NVDA+šift+l.

## Zašto direktna poveznica?
Direktna poveznica omogućuje izravno dobivanje dobro poznatog dijaloškog
okvira za spremanje ako ga otvoriš u pregledniku, bez gnjavaže sa stranicom
za preuzimanje hosting tvrtke i lociranja poveznice za preuzimanje. Štoviše,
direktna poveznica može se koristiti za prijenos datoteke ili pregled
datoteke u određenim programima kao što su media playeri (ako dolaze s
podrškom za URL). Isto tako, ako je WhatsApp uobičajen u tvojoj zemlji,
umjesto stvaranja novog kontakta svaki put kad s nekime želiš razgovarati,
bilo da se radi o korisniku ili tehničkoj podršci, možeš jednostavno
odabrati broj ili ga kopirati i odmah početi razgovarati. Čak štoviše, može
dijeliti WhatsApp poveznicu svog vlastitog broja, ako te ljudi moraju
kontaktirati u slučaju da radiš kao freelancer.

## Napomene
* Poveznica mape se ne može pretvoriti; poveznica mora usmjeravati na
datoteku.
* Provjeri, je li poveznica koju dijeliš javna (svatko s poveznicom može
pristupiti) kako bi se uspješno pretvorila.
* Prečace možeš promijeniti u NVDA izbornikau > postavke > ulazne geste.
* Ako pronađeš određeni format telefonskog broja koji nije otkriven, pošalji
mi e-mail s primjerom.
* Određene vrste datoteka i veličina na Google disku mogu te odvesti na
stranicu na kojoj piše „Google disk ne može pregledati ovu datoteku u
potrazi za virusima.” U tom slučaju moraš pritisnuti poveznicu za svejedno
preuzimanje.

## Zahvale
Puno hvala svim prijateljima. Bez njih to ne bih mogao ostvariti:

* Qais Alrefaij, za testiranje dodatka i pružanju raznih materijala za
testiranje, kao i na njegovim opažanjima i općoj ideji za dodatak.
* Marina Amir, za prijevod dodatka na francuski, redigiranje i testiranje.
* Riad Assoum, za prijevod dodatka na arapski.
* svima koji su testirali dodatak.

[[!tag dev stable]]

[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/pl/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ mógłbym tego zrobić:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/pt_BR/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ poderia ter feito isso acontecer:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/pt_PT/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ podido fazer este trabalho:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/tr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ olmasaydı ben bu eklentiyi yapamazdım:

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/uk/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
2 changes: 1 addition & 1 deletion addon/doc/zh_CN/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ WhatsApp 链接。

[[!tag dev stable]]

[1]: https://addons.nvda-project.org/files/get.php?file=directlink
[1]: https://www.nvaccess.org/addonStore/legacy?file=directlink
114 changes: 109 additions & 5 deletions addon/locale/da/LC_MESSAGES/nvda.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,118 @@ msgstr ""
"Project-Id-Version: directLink 1.0\n"
"Report-Msgid-Bugs-To: nvda-translations@groups.io\n"
"POT-Creation-Date: 2021-07-22 05:38+0000\n"
"PO-Revision-Date: 2021-09-13 10:40+0200\n"
"PO-Revision-Date: 2022-11-05 11:40+0100\n"
"Last-Translator: Nicolai Svendsen <chojiro1990@gmail.com>\n"
"Language-Team: \n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Nicolai Svendsen <chojiro1990@gmail.com>\n"
"Language-Team: \n"
"X-Generator: Poedit 3.0\n"
"X-Generator: Poedit 3.2\n"

#. translators: appears in the NVDA input help.
msgid "Converts the given link to a direct link."
msgstr "Konverterer det angivne link til et direkte link."

msgid ""
"The link has been previously converted, press NVDA+alt+o to open it in "
"browser."
msgstr ""
"Linket er tidligere blevet konverteret. Tryk på NVDA+alt+o for at åbne det i "
"browseren."

#. translators: the message will be announced when a user converts a dropbox link.
msgid ""
"The Dropbox link has been converted and copied to the clipboard, press NVDA"
"+alt+o to open it in browser."
msgstr ""
"Dropbox-linket er blevet konverteret og kopieret til udklipsholderen. Tryk "
"på NVDA+alt+o for at åbne det i browseren."

#. translaters: the message will be announced when a user converts a Google Drive link.
msgid ""
"The Google Drive link has been converted and copied to the clipboard, press "
"nvda+alt+o to open it in browser."
msgstr ""
"Google Drev-linket er blevet konverteret og kopieret til udklipsholderen. "
"Tryk på NVDA+alt+o for at åbne det i browseren."

#. translators: the message will be announced when a user converts a oneDrive link.
msgid ""
"The oneDrive link has been converted and copied to the clipboard, press nvda"
"+alt+o to open it in browser."
msgstr ""
"OneDrive-linket er blevet konverteret og kopieret til udklipsholderen. Tryk "
"på NVDA+alt+o for at åbne det i browseren."

#. translators: same as oneDrive message but for oneDrive business links.
msgid ""
"the oneDrive link has been converted and copied to the clipboard, press alt"
"+nvda+o to open it in browser"
msgstr ""
"oneDrive-linket er blevet konverteret og kopieret til udklipsholderen. Tryk "
"på alt+NVDA+o for at åbne det i browseren"

#. translators: the message will be announced when a user converts a whatsapp number.
msgid ""
"The WhatsApp link has been generated and copied to the clipboard, press NVDA"
"+alt+o to open it in browser."
msgstr ""
"WhatsApp-linket er blevet genereret og kopieret til udklipsholderen. Tryk på "
"NVDA+alt+o for at åbne det i browseren."

#. translators: the message will be announced when there is nothing selected, or the clipboard is empty,
#. or if the selected or copied text not a supported service link nor phone number.
msgid ""
"Please select or copy a dropbox link, a google drive link or a oneDrive link "
"to convert, or a WhatsApp number to chat with."
msgstr ""
"Vælg eller kopier et dropbox-link, et google drive-link eller et oneDrive-"
"link til at konvertere, eller et WhatsApp-nummer at chatte med."

#. translators: appears in the NVDA input help
msgid "Converts a username or a number to a Telegram link"
msgstr "Konverterer et brugernavn eller et nummer til et Telegram-link."

msgid "Your clipboard is empty or does not contain text."
msgstr "Din udklipsholder er tomt eller indeholder ikke tekst."

msgid ""
"The Telegram link has been previously generated, press NVDA+alt+o to open it "
"in browser."
msgstr ""
"Telegram-linket er tidligere blevet genereret. Tryk på NVDA+alt+o for at "
"åbne det i browseren."

#. translators: the message announces after converting a number to a telegram link
msgid ""
"The phone number has been converted, press NVDA+Alt+O to open the link in "
"browser."
msgstr ""
"Telefonnummeret er blevet konverteret. Tryk på NVDA+alt+o for at åbne linket "
"i browseren."

#. translators: the message announces when the user converts a username to telegram link
msgid ""
"The username has been converted, press NVDA+alt+o to open the link in "
"browser."
msgstr ""
"Brugernavnet er blevet konverteret. Tryk på NVDA+alt+o for at åbne linket i "
"browseren."

#. translators: the message announces when the selection is not a valid number or a username
msgid "Select a valid phone number or username to generate its Telegram link."
msgstr ""
"Vælg et gyldigt telefonnummer eller brugernavn for at generere dets Telegram-"
"link."

#. translators: appears in the NVDA input help
msgid "Opens the converted link in browser."
msgstr "Åbner det konverterede link i browseren."

#. translators: this message announces if there is no successfully converted link in the clibboard.
msgid "No link has been converted."
msgstr "Intet link er blevet konverteret."

#. Add-on summary, usually the user visible name of the addon.
#. Translators: Summary for this add-on
Expand All @@ -27,7 +131,7 @@ msgstr "Direkte link"
#. Translators: Long description to be shown for this add-on on add-on information from add-ons manager
msgid ""
" Converts dropbox, google drive or oneDrive links to direct links, and opens "
"Whatsapp chats with the given number."
"Whatsapp and Telegram chats with the given number."
msgstr ""
" Konverterer dropbox, google drive eller oneDrive -links til direkte links, "
"og åbner Whatsapp -chats med det givne nummer."
Loading

0 comments on commit b551e9e

Please sign in to comment.