Skip to content

Commit

Permalink
WELD-779 translation workflow scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf authored and Pete Muir committed Dec 14, 2010
1 parent f996e0e commit 9361629
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/reference/src/main/scripts/flies_draft_build
@@ -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
9 changes: 9 additions & 0 deletions docs/reference/src/main/scripts/flies_export_translations
@@ -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"
17 changes: 17 additions & 0 deletions docs/reference/src/main/scripts/flies_import_all
@@ -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"
14 changes: 14 additions & 0 deletions docs/reference/src/main/scripts/flies_import_source
@@ -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"

0 comments on commit 9361629

Please sign in to comment.