Red Hat Bugzilla – Bug 698028
Support .po file as a source for software translation projects
Last modified: 2012-01-03 21:57:12 EST
Some software projects may name the POT file as if it were a PO file, because the default output of the xgettext command is messages.po. We should handle this.
Some examples: http://www.google.com/codesearch?hl=en&lr=&q=file%3A^.*%2Fmessages.po%24&sbtn=Search
I have add a command line option named --srcfile, for software projects may name the POT file as a PO file, you could use this option as below:
1)zanata po push --srcfile="path to po file"
2)You could also make the PO file name as a command arguments and specify the source folder for looking up:
zanata po push "pofilename" --srcdir="path to folder contain po file"
the changes is in commit d52f339 and commit 300de0d, please use commit d52f339 of devel branch of zanataclient on github for test.