-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2019 CERN. | ||
# Copyright (C) 2019 Northwestern University. | ||
# | ||
# Invenio App RDM is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
# | ||
# 1) Create message catalog: | ||
# $ python setup.py extract_messages | ||
# $ python setup.py init_catalog -l <lang> | ||
# $ python setup.py compile_catalog | ||
# 2) Ensure project has been created on Transifex under the invenio-app-rdm | ||
# organisation. | ||
# 3) Install the transifex-client | ||
# $ pip install transifex-client | ||
# 4) Push source (.pot) and translations (.po) to Transifex | ||
# $ tx push -s -t | ||
# 5) Pull translations for a single language from Transifex | ||
# $ tx pull -l <lang> | ||
# 6) Pull translations for all languages from Transifex | ||
# $ tx pull -a | ||
|
||
[main] | ||
host = https://www.transifex.com | ||
|
||
[invenio.react-invenio-deposit-messages] | ||
file_filter = src/lib/translations/<lang>/LC_MESSAGES/messages.po | ||
source_file = src/lib/translations/translations.pot | ||
source_lang = en | ||
type = PO |