Run the command.
- xgettext will parse a file and look for strings which are wrapped in
_()
. It will output those strings to a.po
file for translations (default filename =messages.po
).- What it looks for varies based on language - see 5.1.6.
- The
find
command will causexgettext
to parse all of the files whichfind
returns rather than just parsing a single file. --join-existing
will merge the results to an existingmessage.po
file in the same output directory.--join-existing
shouldn't be used if amessages.po
file doesn't already exist in the location which your output points to.
Running this on OSX, you might need to install
gettext
:http://stackoverflow.com/a/33896321/1196517