Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WELD-779 translation workflow scripts
- Loading branch information
Showing
4 changed files
with
53 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,13 @@ | ||
#!/bin/sh | ||
|
||
# Build DocBook document using latest (draft) translations | ||
|
||
echo "Pulling latest translations from Flies server" | ||
# TODO this should probably write to a different directory (not src/main/docbook) | ||
mvn flies:publican-pull -e | ||
|
||
# draft build the translated documents | ||
# (alternative: run Ant from weld/build/dist) | ||
|
||
# TODO this should build from the "different directory" above | ||
mvn jdocbook:translate |
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,9 @@ | ||
#!/bin/sh | ||
|
||
# Export translations from flies to git (eg before a release) | ||
|
||
# pull latest translations into po files | ||
echo "Pulling latest translations from Flies server" | ||
mvn flies:publican-pull -e | ||
|
||
echo "Finished! Don't forget to check src/main/docbook into version control to record the updated PO files" |
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,17 @@ | ||
#!/bin/sh | ||
|
||
# Initial import (used when first setting up project in Flies) | ||
|
||
# update pot and po files before importing to flies | ||
echo "Updating POT and PO files from DocBook XML" | ||
(cd src/main/docbook/; publican update_pot) | ||
(cd src/main/docbook/; publican update_po --langs=all) | ||
|
||
# push initial po and pot files to flies for translation | ||
echo "Note: this script should only be run against a new, empty Flies project version!" | ||
echo "Use the script flies_import_source for normal updates." | ||
echo | ||
echo "Pushing to Flies server." | ||
mvn flies:publican-push -Dflies.importPo -e | ||
|
||
echo "Finished! You may want to check src/main/docbook into version control to track the updated POT/PO files" |
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,14 @@ | ||
#!/bin/sh | ||
|
||
# Import updated source content from git to Flies (possibly run nightly) | ||
|
||
# update pot files before importing to flies | ||
echo "Updating POT files" | ||
(cd src/main/docbook/; publican update_pot) | ||
|
||
# push updated pot files to flies for translation | ||
echo "Pushing updated POT files to Flies for translation" | ||
mvn flies:publican-push -e -B | ||
|
||
# optional: push pot files back to VCS (probably best avoided for nightly jobs) | ||
echo "Finished! You may want to check src/main/docbook into version control to track the updated POT files" |