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

chore: add transifex config, bump version #1190

Merged
merged 2 commits into from
Feb 29, 2024
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/standards-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
matrix:
php: [ 8.1, 8.2 ]
os: [ ubuntu-20.04 ]
wordpress: [ 6.4.2, latest ]
wordpress: [ 6.4.3, latest ]
include:
- experimental: true
- experimental: false
php: 8.1
wordpress: 6.4.2
wordpress: 6.4.3

name: Test - PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/update-mo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Update .mo files

on:
pull_request:
branches: [ dev ]
paths:
- 'languages/*.po'
workflow_dispatch:

jobs:
update-mo-files:
uses: pressbooks/reusable-workflows/.github/workflows/update-mo.yml@dev
8 changes: 4 additions & 4 deletions .github/workflows/update-pot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.1'
tools: composer, wp-cli/wp-cli-bundle
- name: Update POT file
run: wp i18n make-pot . languages/pressbooks-book.pot --domain=pressbooks-book --slug=pressbooks-book --package-name="McLuhan" --headers="{\"Report-Msgid-Bugs-To\":\"https://github.com/pressbooks/pressbooks-book/issues\"}"
Expand All @@ -27,9 +27,9 @@ jobs:
with:
token: ${{ secrets.PAT_FOR_GITHUB_ACTIONS }}
labels: automerge-pot
commit-message: 'chore(l10n): update languages/pressbooks.pot'
title: 'chore(l10n): update languages/pressbooks.pot'
body: 'This pull request updates the POT file for the Pressbooks project.'
commit-message: 'chore(l10n): update pot file'
title: 'chore(l10n): update pot file'
body: 'This pull request updates the POT file for this theme.'
branch: chore/update-pot-file
- name: Merge pull request with updated POT file
if: ${{ steps.cprpot.outputs.pull-request-number }}
Expand Down
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
host = https://www.transifex.com

[o:pressbooks:p:pressbooks-book:r:pressbooks-book]
file_filter = languages/<lang>.po
file_filter = languages/pressbooks-book-<lang>.po
lang_map = de:de_DE, es:es_ES, fr:fr_FR, gl:gl_ES, nb:nb_NO, it:it_IT, ka:ka_GE, ru:ru_RU, ta:ta_LK, pa:pa_IN, hr_HR:hr
source_file = languages/pressbooks-book.pot
source_lang = en
Expand Down
20 changes: 20 additions & 0 deletions .tx/transifex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
git:
filters:
- filter_type: file
file_format: PO
source_file: languages/pressbooks-book.pot
source_language: en
translation_files_expression: languages/pressbooks-book-<lang>.po
settings:
pr_branch_name: chore/update-translations-<br_unique_id>
language_mapping:
de: de_DE
es: es_ES
fr: fr_FR
gl: gl_ES
nb: nb_NO
it: it_IT
ka: ka_GE
ru: ru_RU
ta: ta_LK
hr_HR: hr
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ This theme is named after Canadian media theorist Marshall McLuhan, who coined t
## Requirements

* PHP >= 8.1
* WordPress >= 6.1.1
* Pressbooks >= 6.9.0
* WordPress >= 6.4.3
* Pressbooks >= 6.17.0

## Installation

Expand All @@ -40,6 +40,6 @@ Then, from the GitHub Updater interface, navigate to the "Install Theme" tab. En

## Changelog

### 2.26.1
* See: https://github.com/pressbooks/pressbooks-book/releases/tag/2.26.1
### 2.26.2
* See: https://github.com/pressbooks/pressbooks-book/releases/tag/2.26.2
* Full release history available at: https://github.com/pressbooks/pressbooks-book/releases
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tags: Academic, Literary, Nonfiction, Textbook
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.com
Copyright: 2011-2023 Pressbooks (Book Oven Inc.) <[email protected]>
Version: 2.26.1
Version: 2.26.2
Text Domain: pressbooks-book
License: GPL v3.0 or later
GitHub Theme URI: pressbooks/pressbooks-book
Expand Down
Loading