You've already forked wp-bootstrap
i18n: add full translations for 13 locales (v1.0.10)
- Regenerated wp-bootstrap.pot with updated extractable strings - Translated 13 locales: de_CH, de_CH_informal, de_DE, de_DE_informal, en_GB, es_ES, fr_CH, fr_FR, it_CH, it_IT, nl_NL, pl_PL, pt_PT - German variants: Swiss (ss) vs Standard (ß), formal (Sie) vs informal (du) - All 359 translatable strings covered per locale - Documented fast translation workflow in CLAUDE.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
23
CLAUDE.md
23
CLAUDE.md
@@ -98,6 +98,29 @@ Compiled .mo files are built by the Gitea CI/CD pipeline during releases. For lo
|
||||
for po in languages/wp-bootstrap-*.po; do msgfmt -o "${po%.po}.mo" "$po"; done
|
||||
```
|
||||
|
||||
#### Updating Translations
|
||||
|
||||
When new strings are added to PHP sources, use the fast JSON workflow documented in
|
||||
`wp-jobroom-theme/CLAUDE.md → Updating Translations (Fast JSON Workflow)`. That
|
||||
document contains the full step-by-step process including the `patch-po.py` patcher script
|
||||
(located in `wp-jobroom-theme/languages/patch-po.py`) which patches **both** `wp-bootstrap`
|
||||
and `wp-jobroom-theme` `.po` files in a single pass.
|
||||
|
||||
**Quick reference for wp-bootstrap POT regeneration:**
|
||||
|
||||
```bash
|
||||
docker exec jobroom-wordpress wp i18n make-pot \
|
||||
/var/www/html/wp-content/themes/wp-bootstrap \
|
||||
/var/www/html/wp-content/themes/wp-bootstrap/languages/wp-bootstrap.pot \
|
||||
--allow-root
|
||||
|
||||
# Then merge into all .po files:
|
||||
for locale in de_CH de_CH_informal de_DE de_DE_informal en_GB es_ES fr_CH fr_FR it_CH it_IT nl_NL pl_PL pt_PT; do
|
||||
msgmerge --update --backup=none --no-fuzzy-matching \
|
||||
languages/wp-bootstrap-${locale}.po languages/wp-bootstrap.pot
|
||||
done
|
||||
```
|
||||
|
||||
### Create Releases
|
||||
|
||||
**Important Git Notes:**
|
||||
|
||||
Reference in New Issue
Block a user