[zanata-bugs] [Bug 1207475] New: RFE: allow translation directories to be nested in source directory for 'file' project type.
bugzilla at redhat.com
bugzilla at redhat.com
Tue Mar 31 01:35:32 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1207475
Bug ID: 1207475
Summary: RFE: allow translation directories to be nested in
source directory for 'file' project type.
Product: Zanata
Version: 3.7
Component: Component-zanata-client
Severity: medium
Assignee: djansen at redhat.com
Reporter: damason at redhat.com
QA Contact: zanata-qa at redhat.com
CC: zanata-bugs at redhat.com
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}/*).
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=dbA6FQBlDm&a=cc_unsubscribe
More information about the zanata-bugs
mailing list