[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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



--- Comment #6 from Sean Flanigan <sflaniga 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]