Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations spelling #139

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
49 changes: 49 additions & 0 deletions .github/workflows/spelling-gettext.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Translations spelling"

on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"
workflow_call: null

permissions: {} # yamllint disable-line rule:braces
#permissions: "read-all"
#permissions:
# contents: "read" # Private repositories need read permission

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
hunspell_check:
name: "Hunspell"
runs-on: "ubuntu-latest"
timeout-minutes: 5
steps:
-
name: "Checkout repository"
uses: "actions/checkout@v4"
-
name: "Install Hunspell"
run: "sudo -- apt-get install -y hunspell gettext"
-
name: "Checkout dictionaries"
#run: "git clone --depth=1 https://anongit.freedesktop.org/git/libreoffice/dictionaries.git dictionaries"
uses: "actions/checkout@v4"
with:
repository: "LibreOffice/dictionaries"
path: "libreoffice-dictionaries"
-
name: "Search for misspellings"
run: |
MISSPELLED_WORDS="$(
msgcat --no-wrap languages/*hu_HU.po \
| sed -n -e 's#^msgstr "\(.\+\)"$#\1#p' \
| hunspell -d ./libreoffice-dictionaries/hu_HU/hu_HU -p hunspell.txt -l
)"
echo "${MISSPELLED_WORDS}"
test -z "${MISSPELLED_WORDS}"
Loading