Bug 730200 - Python client: --transdir mistakenly appends "po" after the given path.
Summary: Python client: --transdir mistakenly appends "po" after the given path.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-PythonClient
Version: 1.4-RC
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: James Ni
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-12 06:32 UTC by Ding-Yi Chen
Modified: 2011-10-28 08:14 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

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


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