# xgettext ruby script
The preferred way is to run this using the xgettext-maven-plugin
but it can still be run directly.

# Requirements
Ruby 1.9 (because of unicode & other things)

# Unix/Mac
ruby xgettext.rb -v -r /some/path/i18n.any /some/path/jcr_root

# Windows
# need to use "./" or an absolute path to the script
ruby ./xgettext.rb -v -r /some/path/i18n.any /some/path/jcr_root
ruby C:\....\xgettext\xgettext.rb -v -r /some/path/i18n.any /some/path/jcr_root

# => xliff file with all messages found in messages.xliff
# => warning messages found in warn.log
# => warning messages from parsing source files found in parserwarn.log

# HELP command
ruby xgettext.rb -h

# i18n.any config file
The config file i18n.any controls the details of what should be extract.
It can be specified using "-r <file>" on the arguments. This configuration includes:

- general filters (include/exclude) of what directories/files/jcr paths to look at
- configurations for the different parsers
- most notably the vault xml parser:
  it contains rules that describe what properties to extract
  
See the i18n_default.any for some documentation.