Skip to content

Commit

Permalink
setup extract_messages command (#1574)
Browse files Browse the repository at this point in the history
- and include translated messages in the package

SDESK-3834
  • Loading branch information
petrjasek authored Apr 16, 2019
1 parent 449a575 commit 40ec4fc
Show file tree
Hide file tree
Showing 9 changed files with 848 additions and 7 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
recursive-include superdesk *.json
recursive-include superdesk *.html
recursive-include superdesk *.txt
recursive-include superdesk *.mo
recursive-include superdesk *.po

recursive-include apps *.json
recursive-include apps *.html
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ Utilities for building Superdesk applications.
### Installation

For installation instructions, please refer to the README file at: [https://github.com/superdesk/superdesk/](https://github.com/superdesk/superdesk/ "")

### Translations

#### Extracting messages

You can run `python setup.py extract_messages` to update `server.pot` file and commit changes to github.
Transifex will automatically fetch it and update the source.
6 changes: 6 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
[python: **.py]

[jinja2: **/templates/**.html]
encoding = utf-8

[jinja2: **/templates/**.txt]
encoding = utf-8
Loading

0 comments on commit 40ec4fc

Please sign in to comment.