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

Bug 1207475

Summary: RFE: allow translation directories to be nested in source directory for 'file' project type.
Product: [Retired] Zanata Reporter: David Mason <damason>
Component: Component-zanata-clientAssignee: Ding-Yi Chen <dchen>
Status: CLOSED UPSTREAM QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.7CC: 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: 2015-07-29 03:24:07 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:

Description David Mason 2015-03-31 01:35:32 UTC
Description of problem:

The current implementation of raw project type requires that trans-dir will not be a subdirectory of src-dir. If trans-dir is set within src-dir, translated files will be treated as additional source files.

Ding-Yi Chen notes in https://bugzilla.redhat.com/show_bug.cgi?id=884347#c4

> Except for publican (podir) or man page, most projects I have seen are like
> 
> Source: document.ext
> Translation: document_<locale>.ext


Actual results:

This layout is valid:

 - {project}/source/document.txt
 - {project}/de/document.txt
 - {project}/ja/document.txt

This layout is not valid, all 3 documents are treated as source and the behaviour is undefined when pushing and pulling (in practice, cycles of pull and push will keep adding more nested /de and /ja directories).

 - {project}/document.txt
 - {project}/de/document.txt
 - {project}/ja/document.txt


Desired results:

Both of the above layouts are valid and translation files are not treated as source in either case. A file should be recognized as a translation file if it is within an expected translation directory (e.g. {trans-dir}/{locale}/*).

Comment 1 Zanata Migrator 2015-07-29 03:24:07 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-243