imip-agent

tools/i18n_messages.sh

1031:fc1efc973849
2016-01-31 Paul Boddie Introduced the access control list scheduling function plus argument support. Moved scheduling function lookup into the scheduling module as part of the revised function invocation parsing activity, employing a new text processing module in imiptools. Added tests of the access control list functionality.
     1 #!/bin/sh     2      3 # Obtain messages from the Python files.     4      5   find imiptools imipweb -type f -name '*.py' \     6 | xargs xgettext -d imip-agent --sort-by-file \     7                  --copyright-holder="Paul Boddie <paul@boddie.org.uk>" \     8                  --package-name="imip-agent" --package-version=`hg id | cut -d ' ' -f 1`     9     10 # Set the default charset.    11     12   sed "s/CHARSET/iso-8859-1/" imip-agent.po \    13 > imip-agent.pot    14     15 # Remove the original file.    16     17 rm imip-agent.po    18     19 # Merge messages with the existing translations.    20     21 for FILENAME in messages/*.po ; do    22     msgmerge --update "$FILENAME" imip-agent.pot    23 done