Compare commits

...

9 commits

Author SHA1 Message Date
Tara Sophia Roshan 61b738281a
Merge 658ea883d5 into cfa29c8299 2024-03-20 01:19:15 -06:00
Tara Sophia Roshan 658ea883d5
Merge pull request #9 from dato/update_locales_workflow
Improvements to update_locales.yml
2024-02-01 16:25:16 -06:00
Adeodato Simó 630bb73635
Improvements to update_locales.yml
- rename job `build` -> `update_locales`; makes it easier to run locally
  with tools like "act"

- ensure checkout@v3 checks out `main` branch (which it doesn't by default
  since the workflow runs on l10n_main

- remove now unneeded switch to `main` by hand

- rebase commit before publishing, to minimize risk of failed push
2024-01-27 15:15:17 -03:00
Tara Sophia Roshan be700522f9 Add upstream for git push (locales workflow) 2024-01-22 21:01:55 -06:00
Tara Sophia Roshan 124c437a1c Add git push cmd to locales workflow
Forgot to do this in the previous commit. I don't think my local
branch updated properly as a result.
2024-01-22 20:54:19 -06:00
Tara Sophia Roshan 3ca48c5332 Fix de_DE locale msgid/msgstr newline error 2024-01-22 20:37:21 -06:00
Tara Sophia Roshan 24e130cd2f Workflow commits after update_locales cmd, no merge action 2024-01-22 20:29:44 -06:00
Tara Sophia Roshan 34cd7558d0 Italian locale error (book import msg) 2024-01-22 20:14:46 -06:00
Tara Sophia Roshan 35e629165c Add update locales workflow to l10n_main branch 2024-01-22 20:14:46 -06:00
3 changed files with 40 additions and 2 deletions

37
.github/workflows/update_locales.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Update locales
on:
push:
# run this workflow when someone pushes to the l10n_main branch
branches: [ l10n_main ]
jobs:
update_locales:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
# Create the mock file for the update_locales command to work, otherwise
# we'll get an 'no such file' error
- name: Create mock .env file
run: echo "DEBUG=true" > .env
- name: Run update_locales command
run: ./bw-dev update_locales
- name: Create commit
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add -A
git commit -a -m "[GitHub Action] Update locales"
- name: Push to main branch
# we rebase it first, in case there was a push to main while running
# update_locales above
run: |
git pull --rebase
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -520,7 +520,8 @@ msgstr "Die Datei, die du hochladen willst, ist zu groß."
msgid "\n"
" You you can try using a smaller file, or ask your BookWyrm server administrator to increase the <code>DATA_UPLOAD_MAX_MEMORY_SIZE</code> setting.\n"
" "
msgstr " Du kannst es mit einer kleineren Datei probieren oder deine(n) BookWyrm-Server-Administrator*in bitten, den Wert der Einstellung <code>DATA_UPLOAD_MAX_MEMORY_SIZE</code> zu erhöhen.\n"
msgstr "\n"
" Du kannst es mit einer kleineren Datei probieren oder deine(n) BookWyrm-Server-Administrator*in bitten, den Wert der Einstellung <code>DATA_UPLOAD_MAX_MEMORY_SIZE</code> zu erhöhen.\n"
" "
#: bookwyrm/templates/500.html:4

View file

@ -2860,7 +2860,7 @@ msgstr "Non è un file di csv valido"
msgid "Currently, you are allowed to import %(display_size)s books every %(import_limit_reset)s day."
msgid_plural "Currently, you are allowed to import %(display_size)s books every %(import_limit_reset)s days."
msgstr[0] "Attualmente, puoi importare libri %(display_size)s ogni giorno %(import_limit_reset)s."
msgstr[1] "Al momento puoi importare %(import_size_limit)s libri ogni %(import_limit_reset)s giorni."
msgstr[1] "Al momento puoi importare %(display_size)s libri ogni %(import_limit_reset)s giorni."
#: bookwyrm/templates/import/import.html:26
#, python-format