forked from getpelican/pelican-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request getpelican#441 from jranke/i18n
Make pelican-bootstrap3 multilingual
- Loading branch information
Showing
28 changed files
with
1,210 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
help: | ||
@echo 'Makefile for translation ' | ||
@echo ' ' | ||
@echo 'Usage: ' | ||
@echo ' make extract Extract message strings ' | ||
@echo ' make update Extract strings and update po files ' | ||
@echo ' make compile Compile po files to mo files ' | ||
@echo ' ' | ||
|
||
extract: | ||
pybabel extract --mapping babel.cfg --output messages.pot ./ | ||
|
||
update: extract | ||
pybabel update --input-file messages.pot --output-dir translations/ --domain messages | ||
|
||
compile: | ||
pybabel compile --directory translations/ --domain messages | ||
|
||
.PHONY: help extract update compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[jinja2: templates/**.html] |
Oops, something went wrong.