Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

---
name: Docker

Expand Down Expand Up @@ -158,12 +159,13 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
context: .
tags: ${{ steps.meta.outputs.tags }}
file: docker/${{ matrix.os }}/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
provenance: mode=max
sbom: true
Expand Down
66 changes: 35 additions & 31 deletions .github/workflows/periodic_update.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
name: Periodic update

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API, or on a schedule.
on:
workflow_dispatch:
inputs:
Expand All @@ -11,42 +9,40 @@ on:
default: false
description: If true, also update .po files.
schedule:
# At 15:32 (UTC) on Saturday.
# See https://crontab.guru/#32_15_*_*_SAT
- cron: "32 15 * * SAT"

permissions: {}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
update-configure:
# The type of runner that the job will run on
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Create URL to the run output
id: vars
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/${GITHUB_RUN_ID}" >> "${GITHUB_OUTPUT}"
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
with:
persist-credentials: false

- name: "Check that autoconf scripts are up-to-date:"
run: |
rm -f config.guess config.sub
wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess && chmod +x config.guess
wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub && chmod +x config.sub
# Display changes, only to follow along in the logs.

- run: git diff -- config.guess config.sub
- name: Double check if files are modified
run: git status --ignored

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412
with:
commit-message: "config.guess + config.sub: updated from http://git.savannah.gnu.org/cgit/config.git/plain/"
branch: periodic/update-configure
Expand All @@ -56,38 +52,37 @@ jobs:
If the two files are deleted in this PR, please check the logs of the workflow here:
[Workflow run summary](${{ steps.vars.outputs.run-url }})

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER}"
echo "Pull Request URL - ${STEPS_CPR_OUTPUTS_PULL_REQUEST_URL}"
env:
STEPS_CPR_OUTPUTS_PULL_REQUEST_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}
STEPS_CPR_OUTPUTS_PULL_REQUEST_URL: ${{ steps.cpr.outputs.pull-request-url }}
Automated changes by create-pull-request GitHub action

update-i18n:
# The type of runner that the job will run on
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

# Steps represent a sequence of tasks that will be executed as part of the job
# 🔥 Prevent overlapping runs
concurrency:
group: periodic-i18n
cancel-in-progress: false

steps:
- name: Create URL to the run output
id: vars
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/${GITHUB_RUN_ID}" >> "${GITHUB_OUTPUT}"
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
with:
persist-credentials: false

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends --no-install-suggests \
gettext \
libgdal-dev \
libproj-dev

- name: Configure grass with minimal packages
run: |
./configure \
Expand All @@ -97,50 +92,59 @@ jobs:
--without-freetype \
--without-opengl \
--without-pdal

- name: Build grass core
run: make -j"$(nproc)"
- name: Create .pot files (containing original messages)

- name: Create .pot files
run: cd locale && make pot
- name: Merge new messages (Done by Weblate plugin)
# Default false, but will be true if manually chosen. See https://stackoverflow.com/a/73495922

- name: Merge new messages
if: ${{ inputs.update_po || false }}
run: cd locale && make update-po

- name: Verify the .po files
run: cd locale && make verify

- name: Preview changed files
run: git diff | head -n2000
# The POT-Creation-Date gets updated by xgettext with the latest
# version-controlled modification time among all the given input files.

- name: Preview changed files, except for the POT-Creation-Date
run: |
git diff --ignore-matching-lines=^\"POT-Creation-Date: | head -n2000

- name: Get if files were updated
id: changed-files
continue-on-error: true
run: |
git diff --exit-code --quiet --ignore-matching-lines=^\"POT-Creation-Date:

- name: Translation files were changed
if: ${{ steps.changed-files.outcome == 'failure' }}
run: echo "Translation files were changed"

- name: Translation files were not changed
if: ${{ steps.changed-files.outcome == 'success' }}
run: echo "Translation files were not changed"

- name: Double check if files are modified
run: git status --ignored

- name: Create Pull Request
if: ${{ steps.changed-files.outcome == 'failure' }}
id: cpr
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412
with:
commit-message: "locale: Update translation files"
branch: periodic/update-i18n
title: "locale: Update translation files"
branch: periodic/update-i18n-${{ github.run_id }}
title: "locale: Update translation files (${{ github.run_number }})"
body: |
This updates the .pot template files, as well as all language-specific .po files
if the option was selected.
[Workflow run summary](${{ steps.vars.outputs.run-url }})

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
Automated changes by create-pull-request GitHub action

- name: Check outputs
if: ${{ steps.changed-files.outcome == 'failure' && steps.cpr.outputs.pull-request-number }}
run: |
Expand Down
10 changes: 5 additions & 5 deletions locale/po/grasslibs_ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grassmods_ar\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Arabic <https://weblate.osgeo.org/projects/grass-gis/grasslibs/ar/>\n"
Expand Down Expand Up @@ -9307,10 +9307,6 @@ msgstr "غير موجود'%s' الفيكتور"
msgid "Unknown query tool"
msgstr "مسقط غير معروف"

#, fuzzy, c-format
#~ msgid "Unable to seek: %s"
#~ msgstr " %s لم يمكن فتح"

#, fuzzy, python-format
#~ msgid "%s map <%s> not found in GRASS spatial database"
#~ msgstr "'%s'الى '%s'لم يمكن نسخ فيكتور"
Expand Down Expand Up @@ -9949,6 +9945,10 @@ msgstr "مسقط غير معروف"
#~ msgid "Unable to rewrite feature/offset %"
#~ msgstr "لم يمكن فتحه %s فى %s"

#, fuzzy, c-format
#~ msgid "Unable to seek: %s"
#~ msgstr " %s لم يمكن فتح"

#, fuzzy, python-format
#~ msgid "Unable to set the color rules for raster map <%s>."
#~ msgstr "[%s فى %s]لم يمكن انشاء ملف العنوان الرئيسى"
Expand Down
2 changes: 1 addition & 1 deletion locale/po/grasslibs_bn.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_bn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Bengali <https://weblate.osgeo.org/projects/grass-gis/grasslibs/bn/>\n"
Expand Down
2 changes: 1 addition & 1 deletion locale/po/grasslibs_cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_cs\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Czech <https://weblate.osgeo.org/projects/grass-gis/grasslibs/cs/>\n"
Expand Down
2 changes: 1 addition & 1 deletion locale/po/grasslibs_de.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_de\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: German <https://weblate.osgeo.org/projects/grass-gis/grasslibs/de/>\n"
Expand Down
2 changes: 1 addition & 1 deletion locale/po/grasslibs_el.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_el\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Greek <https://weblate.osgeo.org/projects/grass-gis/grasslibs/el/>\n"
Expand Down
14 changes: 7 additions & 7 deletions locale/po/grasslibs_es.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_es\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-26 13:29+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Spanish <https://weblate.osgeo.org/projects/grass-gis/grasslibs/es/>\n"
Expand Down Expand Up @@ -9087,12 +9087,6 @@ msgstr "Área %d no tiene contornos"
msgid "Unknown query tool"
msgstr "Herramienta de consulta desconocida"

#~ msgid "disabled"
#~ msgstr "deshabilitado"

#~ msgid "enabled"
#~ msgstr "habilitado"

#, python-format
#~ msgid ""
#~ "\n"
Expand Down Expand Up @@ -10665,6 +10659,12 @@ msgstr "Herramienta de consulta desconocida"
#~ msgid "color"
#~ msgstr "color"

#~ msgid "disabled"
#~ msgstr "deshabilitado"

#~ msgid "enabled"
#~ msgstr "habilitado"

#~ msgid "fully qualified initial Mapset directory"
#~ msgstr "directorio de mapas inicial completamente cualificado"

Expand Down
2 changes: 1 addition & 1 deletion locale/po/grasslibs_fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_fi\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Finnish <https://weblate.osgeo.org/projects/grass-gis/grasslibs/fi/>\n"
Expand Down
22 changes: 11 additions & 11 deletions locale/po/grasslibs_fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_fr\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-11-07 03:28+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: French <https://weblate.osgeo.org/projects/grass-gis/grasslibs/fr/>\n"
Expand Down Expand Up @@ -9062,16 +9062,6 @@ msgstr "Surface %d sans contours"
msgid "Unknown query tool"
msgstr "Outil de recherche inconnu"

#, c-format
#~ msgid "Unable to seek: %s"
#~ msgstr "Recherche de : %s impossible"

#~ msgid "disabled"
#~ msgstr "désactivé"

#~ msgid "enabled"
#~ msgstr "activé"

#, python-format
#~ msgid ""
#~ "\n"
Expand Down Expand Up @@ -10682,6 +10672,10 @@ msgstr "Outil de recherche inconnu"
#~ msgid "Unable to seek"
#~ msgstr "Recherche impossible"

#, c-format
#~ msgid "Unable to seek: %s"
#~ msgstr "Recherche de : %s impossible"

#, python-format
#~ msgid "Unable to set the color rules for raster map <%s>."
#~ msgstr "Impossible de définir les règles de couleur pour la carte raster <%s>."
Expand Down Expand Up @@ -10898,6 +10892,12 @@ msgstr "Outil de recherche inconnu"
#~ msgid "color"
#~ msgstr "couleur"

#~ msgid "disabled"
#~ msgstr "désactivé"

#~ msgid "enabled"
#~ msgstr "activé"

#~ msgid "force removal of .gislock if exists (use with care!). Only with -text flag"
#~ msgstr "force la suppression de .gislock si il existe (utiliser avec précausion). Uniquement avec l'argument -text"

Expand Down
8 changes: 4 additions & 4 deletions locale/po/grasslibs_hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_hu\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Hungarian <https://weblate.osgeo.org/projects/grass-gis/grasslibs/hu/>\n"
Expand Down Expand Up @@ -8927,9 +8927,6 @@ msgstr ""
msgid "Unknown query tool"
msgstr ""

#~ msgid "enabled"
#~ msgstr "engedélyezett"

#, fuzzy
#~ msgid "Map <{}> not found in current mapset"
#~ msgstr "<%s> térkép nincs az aktuális térképcsoportban"
Expand All @@ -8940,3 +8937,6 @@ msgstr ""

#~ msgid "The error message: %s"
#~ msgstr "A hibaüzenet: %s"

#~ msgid "enabled"
#~ msgstr "engedélyezett"
2 changes: 1 addition & 1 deletion locale/po/grasslibs_id_ID.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: grasslibs_id_ID\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-15 15:40+0000\n"
"POT-Creation-Date: 2026-03-01 17:30+0000\n"
"PO-Revision-Date: 2025-08-23 20:17+0000\n"
"Last-Translator: Edouard Choiniere <echoix@users.noreply.weblate.osgeo.org>\n"
"Language-Team: Indonesian <https://weblate.osgeo.org/projects/grass-gis/grasslibs/id/>\n"
Expand Down
Loading