Bug 698028 - Support .po file as a source for software translation projects
Summary: Support .po file as a source for software translation projects
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-PythonClient
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: James Ni
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-20 01:20 UTC by Sean Flanigan
Modified: 2012-01-04 02:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-01-04 02:57:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Sean Flanigan 2011-04-20 01:20:01 UTC
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

Comment 2 James Ni 2011-04-21 07:22:12 UTC
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.

Best Regards


Note You need to log in before you can comment on or make changes to this bug.