Skip to content

Commit

Permalink
chore: add transifex config, bump version (#430)
Browse files Browse the repository at this point in the history
* chore: add transifex config, bump version

* chore: use reusable workflow
  • Loading branch information
SteelWagstaff authored Feb 29, 2024
1 parent efa66a1 commit f31016d
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 72 deletions.
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.1.1, latest ]
wordpress: [ 6.4.3, latest ]
include:
- experimental: true
- experimental: false
php: 8.1
wordpress: 6.1.1
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
6 changes: 3 additions & 3 deletions .github/workflows/update-pot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:aldine:r:pressbooks-aldine]
file_filter = languages/<lang>.po
file_filter = languages/pressbooks-aldine-<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, hr_HR:hr
minimum_perc = 0
source_file = languages/pressbooks-aldine.pot
Expand Down
20 changes: 20 additions & 0 deletions .tx/transifex.yml
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-aldine.pot
source_language: en
translation_files_expression: languages/pressbooks-aldine-<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
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

Contributors: conner_bw, greatislander, steelwagstaff
Tags: publishing, catalog, pressbooks, default-theme
Requires at least: 6.1.1
Tested up to: 6.3.1
Stable tag: 1.19.1
Requires at least: 6.4.3
Tested up to: 6.4.3
Stable tag: 1.19.2
Requires PHP: 8.1
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -31,11 +31,15 @@ Aldine is the default theme for the home page of [Pressbooks](https://pressbooks

## Changelog

### 1.19.1
* See: https://github.com/pressbooks/pressbooks-aldine/releases/tag/1.19.1
### 1.19.2
* See: https://github.com/pressbooks/pressbooks-aldine/releases/tag/1.19.2
* Full release history available at: https://github.com/pressbooks/pressbooks-aldine/releases

## Upgrade Notices
### Aldine 1.19.2
* Aldine 1.19.2 requires WordPress >= 6.4.3
* Aldine 1.19.2 requires Pressbooks >= 6.17.0

### Aldine 1.19.0
* Aldine requires PHP >= 8.1
* Aldine requires Pressbooks >= 6.9.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"require-dev": {
"pressbooks/coding-standards": "^1.1",
"yoast/phpunit-polyfills": "^1.0.1"
"yoast/phpunit-polyfills": "^1.1"
},
"scripts": {
"test": [
Expand Down
Loading

0 comments on commit f31016d

Please sign in to comment.