Bug 724847 - Zanata server assumes source pot is en-US
Summary: Zanata server assumes source pot is en-US
Status: CLOSED DUPLICATE of bug 707102
Alias: None
Product: Zanata
Classification: Retired
Component: Component-PythonClient
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: zanata-dev-internal
QA Contact: Ding-Yi Chen
Depends On:
TreeView+ depends on / blocked
Reported: 2011-07-22 01:00 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-03 04:57:09 UTC

Attachments (Terms of Use)

Description Joshua Wulf 2011-07-22 01:00:22 UTC
When I push a bunch of po files to the server for a project, if I don't have en-US set up as a language for the project, it fails.

The Zanata server assumes that the source lang for the pot is en-US.

If it's going to do that, then it should automatically add en-US to the project.

If it's not going to automatically add en-US then it shouldn't assume en-US and should ask me or require me to specify what the source language is.

It seems more consistent to either go all the way with the assumption or don't assume. 

The error message is confusing because it tells me that en-US is not supported, but I didn't specify en-US anywhere, nor does my pot specify en-US anywhere:

[jwulf@gaura po]$ zanata po push --import-po --srcdir .
Loading zanata/flies project config from from /home/jwulf/Work/anaconda/anaconda/po/zanata.xml
Loading zanata/flies user config from /home/jwulf/.config/zanata.ini
zanata/flies server: http://flies-devel.englab.bne.redhat.com
zanata python client version: 1.2.4, zanata/flies server API version: 1.3.1-SNAPSHOT
Project: anaconda
Version: rhel6
Username: jwulf
Source language: en-US
Copy previous translations:True
Importing translation
Importing translation from .
PO directory (originals):.

Pushing the content of ./anaconda.pot to server:
error: Unsupported Locale: en-US within this context. Please contact Admin.

Comment 1 Sean Flanigan 2011-09-07 04:33:39 UTC
Assigning to Scrum product owner for prioritisation.

Comment 2 Sean Flanigan 2012-07-03 04:57:09 UTC

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

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