Skip to content

Commit

Permalink
Merge pull request #22 from AlwinEsch/fix
Browse files Browse the repository at this point in the history
Fix creations and language paths, translations sync to Matrix
  • Loading branch information
AlwinEsch authored Dec 24, 2021
2 parents bc36459 + 305fd06 commit 0d7e470
Show file tree
Hide file tree
Showing 84 changed files with 158 additions and 76 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build and run tests
on: [push, pull_request]
env:
app_id: peripheral.xarcade

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: "Debian package test"
os: ubuntu-18.04
CC: gcc
CXX: g++
DEBIAN_BUILD: true
#- os: ubuntu-18.04
#CC: gcc
#CXX: g++
#- os: ubuntu-18.04
#CC: clang
#CXX: clang++
#- os: macos-10.15
steps:
- name: Install needed ubuntu depends
env:
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }}
run: |
if [[ $DEBIAN_BUILD == true ]]; then sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly; fi
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
- name: Checkout Kodi repo
uses: actions/checkout@v2
with:
repository: xbmc/xbmc
ref: master
path: xbmc
- name: Checkout audiodecoder.asap repo
uses: actions/checkout@v2
with:
path: ${{ env.app_id }}
- name: Configure
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }}
run: |
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir -p build && cd build; fi
if [[ $DEBIAN_BUILD != true ]]; then cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=${{ github.workspace }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons -DPACKAGE_ZIP=1 ${{ github.workspace }}/xbmc/cmake/addons; fi
if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep ${{ github.workspace }}/${app_id}; fi
- name: Build
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }}
run: |
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id}/build; fi
if [[ $DEBIAN_BUILD != true ]]; then make; fi
if [[ $DEBIAN_BUILD == true ]]; then ./debian-addon-package-test.sh ${{ github.workspace }}/${app_id}; fi
41 changes: 25 additions & 16 deletions .github/workflows/sync-addon-metadata-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync addon metadata translations

on:
push:
branches: [ master, Matrix, Nexus ]
branches: [ Matrix, Nexus ]
paths:
- '**addon.xml.in'
- '**resource.language.**strings.po'
Expand All @@ -12,38 +12,47 @@ jobs:
if: github.repository == 'kodi-game/peripheral.xarcade'
runs-on: ubuntu-latest

strategy:

fail-fast: false
matrix:
python-version: [ 3.9 ]

steps:

- name: Checkout repository
uses: actions/checkout@v2
with:
path: project

- name: Set up Python
- name: Checkout sync_addon_metadata_translations repository
uses: actions/checkout@v2
with:
repository: xbmc/sync_addon_metadata_translations
path: sync_addon_metadata_translations

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/xbmc/sync_addon_metadata_translations.git
python -m pip install sync_addon_metadata_translations/
- name: Run sync-addon-metadata-translations
run: |
sync-addon-metadata-translations
working-directory: ./project

- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Sync of addon metadata translations" -a
working-directory: ./project
continue-on-error: true

- name: Push changes
uses: ad-m/github-push-action@master
- name: Create PR for sync-addon-metadata-translations changes
uses: peter-evans/create-pull-request@v3.10.0
with:
branch: ${{ github.ref }}
directory: ./project
commit-message: Sync of addon metadata translations
title: Sync of addon metadata translations
body: Sync of addon metadata translations triggered by ${{ github.sha }}
branch: amt-sync
delete-branch: true
path: ./project
reviewers: gade01
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set(XARCADE_HEADERS
src/xarcade/XArcadeScanner.h
src/xarcade/XArcadeTypes.h
src/xarcade/XArcadeUtils.h
src/addon.h
)

# ------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion peripheral.xarcade/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="peripheral.xarcade"
version="20.0.0"
version="20.0.1"
name="X-Arcade Tankstick Driver"
provider-name="Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-10-27 19:00+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
"Language-Team: Danish <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/da_dk/>\n"
"Language: da_dk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "X-Arcade Tankstick driver"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "Denne driver muliggør input fra X-Arcade Tankstick.[CR][CR]En udev-regel er nødvendig. Se https://kodi.wiki/view/Tankstick"
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-10-03 13:22+0000\n"
"Last-Translator: Kai Sommerfeld <kai.sommerfeld@gmx.com>\n"
"Language-Team: German <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/de_de/>\n"
"Language: de_de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "Treiber für X-Arcade Tankstick"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "Dieser Treiber ermöglicht Eingaben mit dem X-Arcade Tankstick.[CR][CR]Eine udev-Regel wird benötigt. Weitere Informationen unter https://kodi.wiki/view/Tankstick"
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-10-08 03:14+0000\n"
"Last-Translator: Edson Armando <edsonarmando78@outlook.com>\n"
"Language-Team: Spanish (Mexico) <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/es_mx/>\n"
"Language: es_mx\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "Controlador X-Arcade Tankstick"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "Este controlador habilita la entrada del X-Arcade Tankstick.[CR][CR]Se requiere una regla udev. Consulta https://kodi.wiki/view/Tankstick"
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-11-23 14:47+0000\n"
"Last-Translator: Édouard Duliège <edouard@duliege.com>\n"
"Language-Team: French (France) <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/fr_fr/>\n"
"Language: fr_fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.9\n"

#, fuzzy
msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "Pilote Tankstick X-Arcade"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-09-17 04:12+0000\n"
"Last-Translator: Minho Park <parkmino@gmail.com>\n"
"Language-Team: Korean <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/ko_kr/>\n"
"Language: ko_kr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "X-Arcade Tankstick 드라이버"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "이 드라이버는 X-Arcade Tankstick에서 입력을 활성화합니다.[CR][CR]udev 규칙이 필요합니다. https://kodi.wiki/view/Tankstick 참조"
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-09-17 04:12+0000\n"
"Last-Translator: Marek Adamski <fevbew@wp.pl>\n"
"Language-Team: Polish <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/pl_pl/>\n"
"Language: pl_pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "Sterownik X-Arcade Tankstick"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "Ten sterownik umożliwia odczyt danych wejściowych z urządzenia X-Arcade Tankstick.[CR][CR]Potrzebna jest reguła udev. Zobacz https://kodi.wiki/view/Tankstick"
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-12-10 01:13+0000\n"
"Last-Translator: Fabio <fabioihle+kodi@alunos.utfpr.edu.br>\n"
"Language-Team: Portuguese (Brazil) <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/pt_br/>\n"
"Language: pt_br\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.9.1\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "Driver X-Arcade Tankstick"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "Este driver habilita a entrada para X-Arcade Tankstick. [CR][CR]Uma regra udev é necessária. Consulte https://kodi.wiki/view/Tankstick"
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
msgid ""
msgstr ""
"Project-Id-Version: KODI Addons\n"
"Report-Msgid-Bugs-To: https://github.com/kodi-game/peripheral.xarcade/issues/\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"PO-Revision-Date: 2021-10-03 13:22+0000\n"
"Last-Translator: vdkbsd <valexgus@gmail.com>\n"
"Language-Team: Russian <https://kodi.weblate.cloud/projects/kodi-add-ons-peripherals/peripheral-xarcade/ru_ru/>\n"
"Language: ru_ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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: Weblate 4.8\n"

msgctxt "Addon Summary"
msgid "X-Arcade Tankstick driver"
msgstr ""
msgstr "Драйвер X-Arcade Tankstick"

msgctxt "Addon Description"
msgid "This driver enables input from the X-Arcade Tankstick.[CR][CR]A udev rule is needed. See https://kodi.wiki/view/Tankstick"
msgstr ""
msgstr "Этот драйвер позволяет вводить данные с X-Arcade Tankstick.[CR][CR]Необходимо правило udev. См. https://kodi.wiki/view/Tankstick"
Loading

0 comments on commit 0d7e470

Please sign in to comment.