Bug 730200

Summary: Python client: --transdir mistakenly appends "po" after the given path.
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-PythonClientAssignee: James Ni <jni>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: high    
Version: 1.4-RCCC: sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v1.2.6-2-g8f87e1f Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-28 08:14:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ding-Yi Chen 2011-08-12 06:32:08 UTC
Description of problem:
--transdir in zanata-python-client-1.2.6 does not actually search the given  directory, but the subdirectory of the given directory.

For example, given: --transdir=.
./*.po files won't be looked, but
po/*.po files.

Version-Release number of selected component (if applicable):
1.2.6

How reproducible:
Always

Steps to Reproduce:
1. git-clone git://github.com/definite/ibus-chewing.git
2. cd ibus-chewing/po
3. zanata po push --transdir=. --srcdir=. --import-po
  
Actual results:
error: Can not find the zh_TW translation for ibus-chewing                                                     
error: Can not find the zh_CN translation for ibus-chewing

Expected results:
Successfully pushed.

Comment 1 James Ni 2011-08-16 10:12:23 UTC
I have fix this issue in commit 4ea63b, please verify it.

Comment 2 Ding-Yi Chen 2011-08-18 01:52:36 UTC
VERIFIED with commit 8f87e1fce367abcec1ffc8732284beeac5642ec8