-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Open translation PR | ||
|
||
on: | ||
push: | ||
branches: | ||
- weblate | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
translation-pr: | ||
name: "Create Translation PR" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: create pull request | ||
run: gh pr create -B main -H weblate --title 'Translations update from Weblate' --body '' --repo $GITHUB_REPOSITORY || true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Update translations | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
translations: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install system-level dependencies | ||
run: sudo apt-get update && sudo apt-get install gettext | ||
- name: Setup uv | ||
uses: astral-sh/setup-uv@v2 | ||
with: | ||
enable-cache: true | ||
cache-dependency-glob: | | ||
requirements*.txt | ||
pyproject.toml | ||
- name: Setup venv | ||
run: | | ||
uv venv --python 3.12 | ||
source .venv/bin/activate | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: | | ||
uv pip install -e . | ||
- name: Setup Git | ||
run: | | ||
git config user.name "fdsbot" | ||
git config user.email "[email protected]" | ||
- name: Compile translations | ||
run: make messagesde | ||
- name: Commit translations | ||
run: | | ||
git add **/django.po || true | ||
git commit -m "💬 update translation messages" || true | ||
git push -u origin main:weblate-source --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
messagesde: | ||
django-admin makemessages -l de --add-location file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# 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: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-10-28 15:45+0100\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=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
#: froide_evidencecollection/cms_apps.py | ||
msgid "Evidence Collection CMS App" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/models.py | ||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
msgid "Source" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/models.py | ||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
msgid "Evidence Type" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/models.py | ||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Evidence Area" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/models.py | ||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Person" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/models.py | ||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Evidence Quality" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
#, python-format | ||
msgid "Evidence #%(pk)s" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/detail.html | ||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Date" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Refine your query" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Search" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "No." | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Export search as CSV" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "Export search as XLSX" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/templates/froide_evidencecollection/list.html | ||
msgid "No results" | ||
msgstr "" | ||
|
||
#: froide_evidencecollection/views.py | ||
#, python-format | ||
msgid "Evidence #%s" | ||
msgstr "" |