Skip to content

Commit dc75b84

Browse files
Rework message.mo to be created in Debian build issue-1297 (#449)
- Remove messages.mo from repo - Ensure all *.mo are ignored - Update README install instructions to run pybabel compile command
1 parent b6c3eea commit dc75b84

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ node_modules
88
schemas.opengis.net
99
.pot
1010
theme/static/themes-gcweb
11-
locale/messages.pot
11+
locale/messages.pot
12+
*.mo

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ unzip -o ./themes-gcweb.zip "*/wet-boew/*" -d theme/static
4040
mv ./theme/static/themes-dist-14.6.0-gcweb ./theme/static/themes-gcweb
4141
rm -f ./themes-gcweb.zip
4242

43+
# compile translation files (generate locale/*/LC_MESSAGES/message.mo)
44+
pybabel compile -d locale -l fr
45+
4346
# install codebase
4447
python setup.py build
4548
python setup.py install

debian/rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ override_dh_auto_configure:
3838
mv ./theme/static/themes-dist-14.6.0-gcweb ./theme/static/themes-gcweb
3939
rm -f ./themes-gcweb.zip
4040

41+
# Generate the binary file with the translations
42+
pybabel compile -d locale -l fr
43+
4144
override_dh_auto_test:
4245
@echo "nocheck set, not running tests"
4346

locale/fr/LC_MESSAGES/messages.mo

-10.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)