Skip to content

Commit

Permalink
Merge branch 'master' into docs/sphinx-warns-and-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby authored Aug 13, 2024
2 parents f430f1e + 43abb61 commit dec1687
Show file tree
Hide file tree
Showing 53 changed files with 593 additions and 512 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Checks
on: [pull_request, push]
on: [pull_request, push, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
name: "CodeQL"

on:
push: null
pull_request: null
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "26 6 * * 6"

Expand Down
88 changes: 83 additions & 5 deletions .github/workflows/docs-localization-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ on:
workflow_dispatch:

jobs:
localizse:
download:
permissions: write-all
name: "Localisize Docs"
name: "Download localizations from Crowdin"
runs-on: ubuntu-latest
outputs:
pr_ref: ${{ steps.convert_outputs.outputs.pr_ref }}
pr_id: ${{ steps.convert_outputs.outputs.pr_id }}
steps:
- uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-tags: true
- name: "Install Python"
uses: actions/setup-python@v5
with:
Expand All @@ -28,10 +34,11 @@ jobs:
working-directory: ./docs
- name: "Build locales"
run:
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l
hi -l ko -l pt_BR -l es -l zh_CN -l ru -l en
sphinx-intl update -p ./build/locales -l ja -l de -l ja -l fr -l it -l en -l
hi -l ko -l pt_BR -l es -l zh_CN -l ru
working-directory: ./docs
- name: "Crowdin"
id: crowdin
uses: crowdin/github-action@v2
with:
upload_sources: false
Expand All @@ -53,3 +60,74 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
- name: "Convert Outputs"
id: convert_outputs
run: |
PR_REF="pull/${{ steps.crowdin.outputs.pull_request_number }}/head"
PR_ID="${{ steps.crowdin.outputs.pull_request_number }}"
echo "pr_ref=$(echo -n "$PR_REF" | base64)" >> $GITHUB_OUTPUT
echo "pr_id=$(echo -n "$PR_ID" | base64)" >> $GITHUB_OUTPUT
pr:
permissions: write-all
name: "Trigger PR workflows manually"
needs: [download]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Refresh Pull
run: |
git fetch --all
git reset --hard origin/master
git pull
- name: "Convert Outputs"
id: convert_outputs
run: |
PR_REF=$(echo -n "${{ needs.download.outputs.pr_ref }}" | base64 --decode)
PR_ID=$(echo -n "${{ needs.download.outputs.pr_id }}" | base64 --decode)
echo "pr_ref=$PR_REF" >> $GITHUB_OUTPUT
echo "pr_id=$PR_ID" >> $GITHUB_OUTPUT
- name: Invoke checks workflow
uses: benc-uk/[email protected]
with:
workflow: check.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
- name: Invoke codeql workflow
uses: benc-uk/[email protected]
with:
workflow: codeql-analysis.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
- name: Invoke lint workflow
uses: benc-uk/[email protected]
with:
workflow: lint.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
- name: Invoke pr workflow
uses: benc-uk/[email protected]
with:
workflow: pr.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
- name: Invoke test workflow
uses: benc-uk/[email protected]
with:
workflow: test.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
- name: Invoke todo workflow
uses: benc-uk/[email protected]
with:
workflow: todo.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
- name: Invoke version updates workflow
uses: benc-uk/[email protected]
with:
workflow: version-updates.yml
ref: ${{ steps.convert_outputs.outputs.pr_ref }}
# - run: gh pr review --approve -b "auto-approval for localization sync :3" "$PR_ID"
# env:
# PR_ID: ${{ steps.convert_outputs.outputs.pr_id }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh pr merge --auto --squash $PR_ID
env:
PR_ID: ${{ steps.convert_outputs.outputs.pr_id }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/docs-localization-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
workflow_dispatch:

jobs:
localizse:
upload:
permissions: write-all
name: "Localisize Docs"
name: "Upload localization base to Crowdin"
runs-on: ubuntu-latest
if:
contains(github.event.head_commit.message, '!crowdin upload') || github.event_name
Expand All @@ -34,8 +34,8 @@ jobs:
working-directory: ./docs
- name: "Build locales"
run:
sphinx-intl update -p ./build/locales -l de -l ja -l de -l ja -l fr -l it -l
hi -l ko -l pt_BR -l es -l zh_CN -l ru -l en
sphinx-intl update -p ./build/locales -l ja -l de -l ja -l fr -l it -l en -l
hi -l ko -l pt_BR -l es -l zh_CN -l ru
working-directory: ./docs
- name: "Crowdin"
uses: crowdin/github-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Type Check and Lint
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Lint PR"

on:
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened, edited]

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Unit Tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/todo.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Check TODO
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
todo:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-updates.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Version Update Auto Merge
on: pull_request
on: [pull_request, workflow_dispatch]

permissions:
contents: write
Expand Down
Binary file modified docs/build/locales/.doctrees/api/index.doctree
Binary file not shown.
Binary file modified docs/build/locales/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/locales/.doctrees/ext/bridge/index.doctree
Binary file not shown.
Binary file modified docs/build/locales/.doctrees/ext/commands/index.doctree
Binary file not shown.
Binary file modified docs/build/locales/.doctrees/index.doctree
Binary file not shown.
22 changes: 11 additions & 11 deletions docs/locales/de/LC_MESSAGES/index.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ msgid "Welcome to Pycord"
msgstr "Willkommen bei Pycord"

msgid "Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord."
msgstr "Pycord ist ein moderner, einfach zu bedienender und funktionsreicher und async-bereiter API Wrapper für Discord."
msgstr "Pycord ist ein moderner, einfach zu bedienender, funktionsreicher und asynchroner API-Wrapper für Discord."

msgid "**Features:**"
msgstr "**Eigenschaften:**"
Expand All @@ -30,7 +30,7 @@ msgid "Modern Pythonic API using ``async``\\/``await`` syntax"
msgstr "Moderne Pythonische API mit ``async``\\/``await`` Syntax"

msgid "Sane rate limit handling that prevents 429s"
msgstr "Sane Rate Limit-Handhabung, die 429s verhindert"
msgstr "Vernünftige Rate Limit-Handhabung, die 429s verhindert"

msgid "Command extension to aid with bot creation"
msgstr "Befehlsverlängerung zur Unterstützung bei der Bot-Erstellung"
Expand All @@ -45,7 +45,7 @@ msgid "Getting started"
msgstr "Erste Schritte"

msgid "Is this your first time using the library? This is the place to get started!"
msgstr "Ist dies dein erstes Mal mit der Bibliothek? Dies ist der Ort, an dem du loslegen kannst!"
msgstr "Nutzen Sie die Bibliothek zum ersten Mal? Dies ist der Ort, an dem Sie loslegen können!"

msgid "**First steps:** :doc:`installing` | :doc:`quickstart` | :doc:`logging` | :resource:`Guide <guide>`"
msgstr "**Erste Schritte:** :doc:`installing` | :doc:`quickstart` | :doc:`logging` | :resource:`Guide <guide>`"
Expand All @@ -54,7 +54,7 @@ msgid "**Working with Discord:** :doc:`discord` | :doc:`intents`"
msgstr "**Arbeiten mit Discord:** :doc:`discord` | :doc:`intents`"

msgid "**Examples:** Many examples are available in the :resource:`repository <examples>`."
msgstr "**Beispiele:** Viele Beispiele sind im :resource:`repository <examples>` verfügbar."
msgstr "**Beispiele:** Viele Beispiele sind in der :resource:`repository <examples>` verfügbar."

msgid "Getting help"
msgstr "Hilfe erhalten"
Expand All @@ -63,25 +63,25 @@ msgid "If you're having trouble with something, these resources might help."
msgstr "Wenn Sie Probleme mit etwas haben, könnten diese Ressourcen helfen."

msgid "Try the :doc:`faq` first, it's got answers to all common questions."
msgstr "Probiere zuerst die :doc:`faq` aus, sie hat Antworten auf alle gängigen Fragen."
msgstr "Probieren Sie zuerst die :doc:`faq` aus, sie hat Antworten auf alle gängigen Fragen."

msgid "Ask us and hang out with us in our :resource:`Discord <discord>` server."
msgstr "Fragen Sie uns und bleiben Sie bei uns in unserem :resource:`Discord <discord>` Server."

msgid "If you're looking for something specific, try the :ref:`index <genindex>` or :ref:`searching <search>`."
msgstr "Wenn Sie etwas Konkretes suchen, probieren Sie den :ref:`Index <genindex>` oder :ref:`Suche <search>`."
msgstr "Wenn Sie etwas Konkretes suchen, probieren Sie den :ref:`index <genindex>` oder :ref:`searching <search>`."

msgid "Report bugs in the :resource:`issue tracker <issues>`."
msgstr "Melde Fehler im :resource:`Issue-Tracker <issues>`."
msgstr "Melde Fehler im :resource:`issue tracker <issues>`."

msgid "Manuals"
msgstr "Anleitungen"

msgid "These pages go into great detail about everything the API can do."
msgstr "Diese Seiten gehen sehr detailliert auf alles, was die API tun kann."
msgstr "Diese Seiten gehen sehr detailliert darauf ein, was die API kann."

msgid "Core API"
msgstr "Core API"
msgstr "Kern API"

msgid "These extensions help you during development when it comes to common tasks."
msgstr "Diese Erweiterungen helfen Ihnen bei der Entwicklung, wenn es um allgemeine Aufgaben geht."
Expand All @@ -90,13 +90,13 @@ msgid ":doc:`ext/commands/index` - Bot commands framework"
msgstr ":doc:`ext/commands/index` - Bot Befehle Framework"

msgid ":doc:`ext/tasks/index` - asyncio.Task helpers"
msgstr ":doc:`ext/tasks/index` - asyncio.Task-Helfer"
msgstr ":doc:`ext/tasks/index` - asyncio.Task Helfer"

msgid ":doc:`ext/pages/index` - A pagination extension module"
msgstr ":doc:`ext/pages/index` - Ein Modul zur Seitenerweiterung"

msgid ":doc:`ext/bridge/index` - A module that bridges slash commands to prefixed commands"
msgstr ":doc:`ext/bridge/index` - Ein Modul, das Schrägstrich Befehle zu vordefinierten Befehlen überbrückt"
msgstr ":doc:`ext/bridge/index` - Ein Modul, das Slash-Befehle zu Prefixed-Befehlen überbrückt"

msgid "If you're looking for something related to the project itself, it's here."
msgstr "Wenn Sie nach etwas suchen, das mit dem Projekt selbst zusammenhängt, dann ist es hier."
Expand Down
18 changes: 9 additions & 9 deletions docs/locales/de/LC_MESSAGES/migrating_to_v1.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ msgstr ""
"X-Generator: Crowdin\\n"

msgid "Migrating to v1.0"
msgstr "Migrating to v1.0"
msgstr "Migrieren zu v1.0"

msgid "v1.0 is one of the biggest breaking changes in the library due to a complete redesign."
msgstr "v1.0 is one of the biggest breaking changes in the library due to a complete redesign."
msgstr "v1.0 ist eine der größten Erneuerungen in der Bibliothek aufgrund eines kompletten Redesigns."

msgid "The amount of changes are so massive and long that for all intents and purposes, it is a completely new library."
msgstr "The amount of changes are so massive and long that for all intents and purposes, it is a completely new library."
msgstr "Die Anzahl der Änderungen sind so massiv und lang, dass es in jeder Hinsicht eine völlig neue Bibliothek ist."

msgid "Part of the redesign involves making things more easy to use and natural. Things are done on the :ref:`models <discord_api_models>` instead of requiring a :class:`Client` instance to do any work."
msgstr "Part of the redesign involves making things more easy to use and natural. Things are done on the :ref:`models <discord_api_models>` instead of requiring a :class:`Client` instance to do any work."
msgstr "Ein Teil der Neugestaltung besteht darin, die Dinge einfacher und natürlicher zu gestalten. Dinge werden auf den :ref:`models <discord_api_models>` erledigt, anstatt eine :class:`Client` Instanz zu benötigen, um irgendeine Arbeit zu leisten."

msgid "Python Version Change"
msgstr "Python Version Change"
msgstr "Änderung der Python-Version"

msgid "In order to make development easier and also to allow for our dependencies to upgrade to allow usage of 3.7 or higher, the library had to remove support for Python versions lower than 3.5.3, which essentially means that **support for Python 3.4 is dropped**."
msgstr "In order to make development easier and also to allow for our dependencies to upgrade to allow usage of 3.7 or higher, the library had to remove support for Python versions lower than 3.5.3, which essentially means that **support for Python 3.4 is dropped**."
msgstr "Um die Entwicklung zu vereinfachen und auch ein Upgrade unserer Abhängigkeiten zu ermöglichen, um die Verwendung von 3.7 oder höher zu ermöglichen, musste die Bibliothek die Unterstützung für Python-Versionen vor 3.5.3 entfernen, was im Wesentlichen bedeutet, dass **die Unterstützung für Python 3.4 fallen gelassen wurde.**."

msgid "Major Model Changes"
msgstr "Major Model Changes"
msgstr "Wichtige Modelländerungen"

msgid "Below are major model changes that have happened in v1.0"
msgstr "Below are major model changes that have happened in v1.0"
Expand All @@ -57,10 +57,10 @@ msgid "A list of changes is as follows:"
msgstr "A list of changes is as follows:"

msgid "Before"
msgstr "Before"
msgstr "Vor / Bevor"

msgid "After"
msgstr "After"
msgstr "Nach"

msgid "``Message.server``"
msgstr "``Message.server``"
Expand Down
Loading

0 comments on commit dec1687

Please sign in to comment.