Skip to content
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
2 changes: 2 additions & 0 deletions .github/workflows/check-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
python -m pip install --upgrade build
pip install .[versioning]
doit version
pip install .[localize]
doit localize
pip install .
python -m build
pip install .[test]
Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/check-mo-freshness.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/generate-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
python -m pip install --upgrade build
pip install .[versioning]
doit version
pip install .[localize]
doit localize
pip install .
python -m build
pip install .[test]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
python -m pip install --upgrade build
pip install .[versioning]
doit version
pip install .[localize]
doit localize
pip install .
python -m build
pip install .[package]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
python -m pip install --upgrade build
pip install .[versioning]
doit version
pip install .[localize]
doit localize
pip install .
python -m build

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-e2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ jobs:
python -m pip install --upgrade build
pip install .[versioning]
doit version
pip install .[localize]
doit localize
pip install .
python -m build
pip install .[test]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
python -m pip install --upgrade build
pip install .[versioning]
doit version
pip install .[localize]
doit localize
pip install .
python -m build
pip install .[test]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ test-output/
# localization intermediate files
*.po
tabcmd/locales/**/combined.tmp
tabcmd/locales/**/*.mo
tabcmd/locales/codestrings.tmp

# venv
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# .mo bundles are generated by 'doit localize', not committed; the sdist must still carry them
recursive-include tabcmd/locales *.mo
2 changes: 2 additions & 0 deletions bin/i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Missing string keys are validated on every PR by `.github/workflows/check-string

## Regenerating .mo bundles

The .mo files are generated and are not committed. CI and packaging run `doit localize` before building. Run it locally after changing a .properties file or before running tabcmd from a checkout.

Run these when properties files change. Each step is idempotent and will overwrite the existing output. More details about implementation are in the script code at `dodo.py`.

Or run the full pipeline in one command:
Expand Down
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ We have three levels of testing.
Strings should be added/edited in /tabcmd/locales/en/{name}.properties by id and referred to in code as
> string = _("string.id")

- regenerate updated strings for packaging as exe
- regenerate the (uncommitted) .mo bundles to see new strings locally; CI and packaging do this themselves
> python -m doit properties po mo


Expand Down
Binary file removed tabcmd/locales/de/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Empty file.
Binary file removed tabcmd/locales/en/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/es/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/fr/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/ga/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/it/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/ja/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/ko/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/pt/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/sv/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Binary file removed tabcmd/locales/zh/LC_MESSAGES/tabcmd.mo
Binary file not shown.
Loading