Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1098836

Summary: mvn failed to push the locales with underscore (e.g. gettext project), unless specify them using map-from
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-MavenAssignee: Patrick Huang <pahuang>
Status: CLOSED DUPLICATE QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-08 03:12:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1010132, 1124615    

Description Ding-Yi Chen 2014-05-19 01:27:36 UTC
Description of problem:
gettext project usually contains the po file with underscore filename, such as pt_BR.po,zh_CN.po,zh_TW.po. However, unless map-from is set, those files are skipped, thus not push to server.

Version-Release number of selected component (if applicable):
Zanata 3.4.0-SNAPSHOT (git-server-3.3.2-345-gaa6d307
zanata-maven-plugin:3.3.0

How reproducible:
Always

Steps to Reproduce: 
1. Download and extract ibus-chewing (http://ibus.googlecode.com/files/ibus-chewing-1.4.3-Source.tar.gz)
2. cd po
3. Create project ibus-chewing and version master
4. Make sure zh_CN and zh_TW are in the locale list.
5. Download zanata.xml by clicking Action "Config file" in ibus-chewing/master in WebUI
6. mvn zanata:push -Dzanata.pushType=both

Actual results:
zh_CN and zh_TW are ignored.

Expected results:
zh_CN and zh_TW are pushed.

Additional info:
Pulling also suffer similar bug. zh_CN is pulled as zh-CN.po thus cannot be used directly in build.

Comment 1 Ding-Yi Chen 2014-07-17 06:26:39 UTC
Veteran users may already have zanata.xml from other projects to copy and rename from. However, this will definitely shock the new users.

Comment 2 Ding-Yi Chen 2014-10-08 03:12:18 UTC
Bug 1139950 also fixed this bug.

*** This bug has been marked as a duplicate of bug 1139950 ***