Skip to content

Commit

Permalink
Merge branch 'master' into graveyard_garradin
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe authored May 21, 2024
2 parents 7942c08 + 4ad6ad4 commit 84941cb
Show file tree
Hide file tree
Showing 251 changed files with 19,759 additions and 5,632 deletions.
29 changes: 29 additions & 0 deletions .github/diff_pot_files.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#! /usr/bin/env python3

"""
Super small script for github action to detect if 2 .pot files have changed for
github/workflows/auto_messages_pot.yml
"""

import sys
from babel.messages.pofile import PoFileParser


def load_pot_file(file_path):
poparser = PoFileParser({})
poparser.parse(open(file_path))
return poparser.catalog


def main():
file_1 = load_pot_file(sys.argv[1])
file_2 = load_pot_file(sys.argv[2])

if [x for x in file_1.keys() if x] == [x for x in file_2.keys() if x]:
print("false")
else:
print("true")


if __name__ == "__main__":
main()
4 changes: 4 additions & 0 deletions .github/workflows/added_dates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.YUNOHOST_BOT_TOKEN }}
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
Expand All @@ -30,3 +31,6 @@ jobs:
with:
commit_message: "Automatically add dates to the catalog files"
file_pattern: 'apps.toml wishlist.toml graveyard.toml'
commit_user_name: yunohost-bot
commit_user_email: [email protected]
commit_author: 'yunohost-bot <[email protected]>'
44 changes: 44 additions & 0 deletions .github/workflows/auto_messages_pot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Auto updates messages.pot for readme_generator
on:
push:
branches:
- master

jobs:
pybabel:
name: Auto updates messages.pot for readme_generator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
cd tools/readme_generator/
pip install -r requirements.txt
- name: Save old messges.pot for diffing later
run: |
cd tools/readme_generator/
cp messages.pot messages.pot.old
- name: Try to generate messages.pot
run: |
cd tools/readme_generator/
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
- shell: pwsh
id: check_files_changed
run: |
$HasDiff = python .github/diff_pot_files.py tools/readme_generator/messages.pot.old tools/readme_generator/messages.pot
Write-Host "::set-output name=files_changed::$HasDiff"
- name: Create Pull Request
if: steps.check_files_changed.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Update messages.pot for readme_generator"
commit-message: "chore(readme_generator): update messages.pot"
body: |
This pull request has been generated using the command `pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .`
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch
branch: actions/auto_messages_pot
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ them such as their category or maintenance state. This file is regularly read by
To add your application to the catalog:

* Fork [this repository](https://github.com/YunoHost/apps)
* Edit the [`apps.toml`](/apps.toml) file
* Add your app's ID and git information at the right alphabetical place
* Indicate the app's functioning state: `notworking`, `inprogress`, or `working`
* Indicate the app category, which you can pick from `categories.toml`
* Indicate any anti-feature that your app may be subject to, see `antifeatures.toml` (or remove the `antifeatures` key if there's none)
* Indicate if your app can be thought of as an alternative to popular proprietary services (or remove the `potential_alternative_to` key if there's none)
* *Do not* add the `level` entry by yourself. Our automatic test suite ("the CI") will handle it.
* Commit and push your modifications to your repository
* Create a [Pull Request](https://github.com/YunoHost/apps/pulls/)
- Fork [this repository](https://github.com/YunoHost/apps)
- Edit the [`apps.toml`](/apps.toml) file
- Add your app's ID and git information at the right alphabetical place
- Indicate the app's functioning state: `notworking`, `inprogress`, or `working`
- Indicate the app category, which you can pick from `categories.toml`
- Indicate any anti-feature that your app may be subject to, see `antifeatures.toml` (or remove the `antifeatures` key if there's none)
- Indicate if your app can be thought of as an alternative to popular proprietary services (or remove the `potential_alternative_to` key if there's none)
- *Do not* add the `level` entry by yourself. Our automatic test suite ("the CI") will handle it.
- Add the app's logo inside the `logos` folder. Please keep this logo as small as possible. It also must be square (or almost square). The filename must be the name of the app in lower case.
- Commit and push your modifications to your repository
- Create a [Pull Request](https://github.com/YunoHost/apps/pulls/)

App example addition:

Expand Down
40 changes: 20 additions & 20 deletions antifeatures.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description.it = "Ti traccia e/o riporta la tua attività a chi mantiene il codi
icon = "user-secret"
title.en = "Tracking"
title.eu = "Jarraipena"
title.fr = "Pistage"
title.fr = "Pistage "
title.it = "Tracciamento"

[non-free-network]
Expand All @@ -19,7 +19,7 @@ description.it = "Promuove o dipende interamente da servizi di rete non liberi."
icon = "sitemap"
title.en = "Non-free Network Services"
title.eu = "Libreak ez diren sareko zerbitzuak"
title.fr = "Services réseau non libres"
title.fr = "Services réseau non libres "
title.it = "Servizi di rete non liberi"

[non-free-addons]
Expand All @@ -30,7 +30,7 @@ description.it = "Promoove altre applicazioni o plugin non liberi"
icon = "puzzle-piece"
title.en = "Non-free Addons"
title.eu = "Libreak ez diren gehigarriak"
title.fr = "Extensions non libres"
title.fr = "Extensions non libres "
title.it = "Estensioni non libere"

[non-free-dependencies]
Expand All @@ -41,7 +41,7 @@ description.it = "Per funzionare, si basa su dipendenze software non libere."
icon = "book"
title.en = "Non-free dependencies"
title.eu = "Libreak ez diren dependentziak"
title.fr = "Dépendances non libres"
title.fr = "Dépendances non libres "
title.it = "Dipendenze non libere"

[non-free-assets]
Expand All @@ -52,7 +52,7 @@ description.it = "Contiene ed utilizza risorse mediatiche non libere. Il caso pi
icon = "file-image-o"
title.en = "Non-free assets"
title.eu = "Libreak ez diren baliabideak"
title.fr = "Ressources non libres"
title.fr = "Ressources non libres "
title.it = "Risorse non libere"

[bad-security-reputation]
Expand All @@ -63,7 +63,7 @@ description.it = "Ha una cattiva reputazione in termini di sicurezza (per esempi
icon = "bug"
title.en = "Bad security reputation"
title.eu = "Segurtasun txarreko ospea"
title.fr = "Mauvaise réputation en matière de sécurité"
title.fr = "Mauvaise réputation en matière de sécurité "
title.it = "Cattiva reputazione di sicurezza"

[deprecated-software]
Expand All @@ -74,18 +74,18 @@ description.it = "Questo software non è più mantenuto. Ci si può aspettare ch
icon = "trash-o"
title.en = "Upstream not maintained"
title.eu = "Jatorrizko garapena utzita"
title.fr = "Application non maintenue"
title.fr = "Application non maintenue "
title.it = "Applicazione non mantenuta"

[package-not-maintained]
description.en = "This YunoHost package is not maintained and needs adoption."
description.eu = "Pakete honek ez du mantenduko duenik, boluntario baten beharra dauka."
description.fr = "Ce package YunoHost n'est plus maintenu et doit être adopté."
description.it = "Questo pacchetto di YunoHost non è più mantenuto e necessita di essere adottato."
description.en = "This YunoHost package is not actively maintained and needs adoption. This means that minimal maintenance is made by volunteers who don't use the app, so you should expect the app to lose reliability over time. You can [learn how to package](https://yunohost.org/packaging_apps_intro) if you'd like to adopt it."
description.eu = "YunoHost pakete honek ez du mantenduko duenik, bere gain hartuko duen norbaiten beharra dauka. Honek esan nahi duena da mantentze-lanak minimoak izango direla eta aplikazioa erabiltzen ez duten boluntarioek egingo dituztela lanok; denborak aurrera egin ahala fidagarri izateari utziko dio. [Aplikazioak nola paketatu](https://yunohost.org/packaging_apps_intro) ikas dezakezu, zure gain hartu nahi baduzu."
description.fr = "Ce package YunoHost n'est pas activement maintenu et a besoin d'être adopté. Cela veut dire que la maintenance minimale est réalisée par des bénévoles qui n'utilisent pas l'application, il faut donc s'attendre à ce que l'app perde en fiabilité avec le temps. Vous pouvez [apprendre comment packager](https://yunohost.org/packaging_apps_intro) si vous voulez l'adopter."
description.it = "Questo pacchetto YunoHost non viene mantenuto attivamente e deve essere adottato. Ciò significa che la manutenzione minima è effettuata da volontari che non usano l'applicazione, quindi ci si deve aspettare che l'applicazione perda affidabilità nel tempo. È possibile [imparare a pacchettizzare](https://yunohost.org/packaging_apps_intro) se si desidera adottarla."
icon = "user-times"
title.en = "Package not maintained"
title.eu = "Mantendu gabeko paketea"
title.fr = "Paquet non maintenu"
title.fr = "Package non maintenu "
title.it = "Pacchetto non mantenuto"

[paid-content]
Expand All @@ -96,7 +96,7 @@ description.it = "Promuove o dipende, interamente o parzialmente, da un servizio
icon = "money"
title.en = "Paid content"
title.eu = "Ordainpeko edukia"
title.fr = "Contenu payant"
title.fr = "Contenu payant "
title.it = "Contenuti a pagamento"

[arbitrary-limitations]
Expand All @@ -107,7 +107,7 @@ description.it = "Contiene limitazioni arbitrarie. Fare riferimento al file “R
icon = "star-half-empty"
title.en = "Arbitrary limitations"
title.eu = "Muga arbitrarioak"
title.fr = "Limitations arbitraires"
title.fr = "Limitations arbitraires "
title.it = "Limitazioni arbitrarie"

[replaced-by-another-app]
Expand All @@ -118,7 +118,7 @@ description.it = "Quest’app è stata sostituita da un’altra app. Fare riferi
icon = "repeat"
title.en = "Replaced by another app"
title.eu = "Beste aplikazio batek ordeztu du"
title.fr = "Remplacé par une autre application"
title.fr = "Remplacé par une autre application "
title.it = "Sostituita da un’altra app"

[alpha-software]
Expand All @@ -129,25 +129,25 @@ description.it = "Questo software è all’inizio della sua fase di sviluppo. Po
icon = "flask"
title.en = "Alpha software"
title.eu = "Alfa softwarea"
title.fr = "Logiciel en version alpha"
title.fr = "Logiciel en version alpha "
title.it = "Software in versione alpha"

[not-totally-free-upstream]
description.en = "The packaged app is under an overall free licence, but with clauses that restrict its use."
description.en = "The packaged app is under an overall free license, but with clauses that may restrict its use."
description.eu = "Aplikazioak lizentzia librea du orokorrean, baina bere erabilera mugatzen duten klausulekin."
description.fr = "L'application packagée est sous une licence globalement libre, mais avec des clauses qui pourraient restreindre son utilisation."
description.it = "Quest’applicazione è protetta da licenza generalmente libera, ma con delle clausole che potrebbero limitare il suo utilizzo."
icon = "lock"
title.en = "Not totally free upstream"
title.eu = "Jatorrizkoa ez da erabat librea"
title.fr = "Application sous licence libre restreinte"
title.fr = "Application sous licence libre restreinte "
title.it = "Applicazione con licenza parzialmente libera"

[not-totally-free-package]
description.en = "The YunoHost package of this app is under an overall free licence, but with clauses that restrict its use."
description.en = "The YunoHost package of this app is under an overall free license, but with clauses that may restrict its use."
description.eu = "Aplikazio honen YunoHost paketeak lizentzia librea du orokorrean, baina bere erabilera mugatzen duten klausulekin."
description.fr = "Le package YunoHost de cette application est sous une licence globalement libre, mais avec des clauses qui pourraient restreindre son utilisation."
icon = "archive"
title.en = "Not totally free package"
title.eu = "Paketea ez da erabat librea"
title.fr = "Package sous licence libre restreinte"
title.fr = "Package sous licence libre restreinte "
Loading

0 comments on commit 84941cb

Please sign in to comment.