[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 06:07:58 UTC 2013


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

David Mason <damason at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damason at redhat.com



--- Comment #8 from David Mason <damason at redhat.com> ---
(In reply to Sean Flanigan from comment #6)
> 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.

In addition to a mechanism for specifying how source files are identified and
how they map to translation files, a preview of the results of such a mapping
would be useful in helping maintainers to ensure and be confident that they
have the correct setting. This would entail a display showing some or all
source files that are detected with the current settings, and which translation
files they would map to in one or more of the active locales (possibly
indicating whether the translation files are found on the file system). This
would be especially valuable if maintainers are given access to something like
the above syntax to specify manually the exact mapping of source files to
translation 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=0Rl7lqGG3b&a=cc_unsubscribe




More information about the zanata-bugs mailing list