[zanata-bugs] [Bug 1035959] [RFE] Zanata should recognise file types individually, not from the target project

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 4 05:18:05 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1035959



--- Comment #6 from Sean Flanigan <sflaniga at redhat.com> ---
Exactly, that's why we need pathname templates.  We may still need to keep some
idea of the file types (similar to our current project type enumeration) so
that we know which template to use for each file.

So if the document type is "properties" we will use the standard template for
properties files, which might be ${dirname}/${basename}_${locale}.properties,

if the document type is "gettext" we use ${dirname}/${locale}.po,

and if the document type is "podir" we use ${locale}/${dirname}/${basename}.po.

In advanced cases, the user might need to specify the actual templates in
zanata.xml, along with a way of associating files/directories with the right
templates.


And another thing to bear in mind: we need templates when parsing filenames for
upload, as well as when generating files.

-- 
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=gPS7Kv3b3j&a=cc_unsubscribe




More information about the zanata-bugs mailing list