[zanata-users] Format specifiers and Plural forms

David Mason damason at redhat.com
Mon Jul 28 06:31:09 UTC 2014


Hi Noriko,

Please see answers inline below.

----- Original Message -----
> From: "Noriko Mizumoto" <noriko at fedoraproject.org>
> To: "Ding Yi Chen" <dchen at redhat.com>
> Cc: zanata-users at redhat.com
> Sent: Monday, 28 July, 2014 3:33:07 PM
> Subject: Re: [zanata-users] Format specifiers and Plural forms
> 
> (2014年07月28日 14:48), Ding Yi Chen wrote:
> >
> > ----- Original Message -----
> >> Hi
> >>
> >> There are two issues raised from Japanese team, and those have been
> >> filed as the bugs. However, one is stalled leaving the status 'new', and
> >> another was not fixed but closed.
> >>
> >> Could you mind to check them and advise if any chance that Zanata can
> >> address them better for both us and developers?
> >>
> >> * Format specifiers
> >> See the discussion of the thread title 'Transifex expression check
> >> problem' at trans ML, original post was here [1]. The bug has been filed
> >> at Red Hat Bugzilla [2].

Zanata does not have this issue in general, but it is one we should prepare for. Translators are usually not prevented from saving a translation in which the format specifier has been changed, but there might be a validation warning. It is possible for maintainers to turn a validator to error state, which is intended to prevent saving translations that would break a build. The important thing is to make sure our validator is smart enough to distinguish differences in format specifiers.

It has been a while since I worked on the validators so I do not remember whether the printf variables validator deals with this case specifically. Please file a bug for Zanata with a few examples of the changed format specifiers that you think should not cause a validation error (source and translation strings containing variables with the specifiers). That will allow us to set up a test case so we know how well it is handled at the moment, and is a good foundation for updating the validator to treat those cases properly.


> >> * Plural forms
> >> The bug had been filed at GitHub (Transifex) [3].

It is already possible to upload a po file to Zanata with different format specifier, so that is the workaround to use in any file for which the default number of plurals is not appropriate. If Zanata has the wrong default format specifier for plurals, please file a bug and we will fix it. If you would like a way to set the format specifier for a document in the editor when translating, please submit an RFE in bugzilla and we can see how we could best incorporate that into the editor.


Let me know if you have any further questions about these, but we should ideally continue the discussion on a bugzilla item for each of these so that we have all the relevant information available when we are implementing changes.

Cheers,

David Mason
Software Engineer
L10n Engineering

Red Hat, Asia-Pacific Pty Ltd
Level 1, 193 North Quay
Brisbane 4000





> >> [1]:https://lists.fedoraproject.org/pipermail/trans/2013-May/010782.html
> >> [2]:
> >> [3]:https://github.com/transifex/transifex/issues/253
> >>
> >> Many thanks in advance
> >>
> >> noriko
> >> Fedora Localization Project
> >>
> >> _______________________________________________
> >> zanata-users mailing list
> >> zanata-users at redhat.com
> >> https://www.redhat.com/mailman/listinfo/zanata-users
> >
> >
> > Hi,
> >
> > It would be easier for Zanata team answer these question,
> > if you can push those projects in Zanata for us?
> >
> > And if Zanata behaves differently than what you expect,
> > you are more than welcome to file bugs.
> 
> Hi
> One is Fedora package[1], thus once actual migration process of 'the
> move to Zanata plan' has started for FLP, this project certainly will be
> moved to Zanata. Another is for Xfce [2] and not in the move plan, but
> we may try to convince this project to move if zanata works better for
> translators.
> 
> In order to make the move plan comfortable, I am wondering if either or
> both of these problems can be discussed in a proactive manner and found
> any measure before the migration happens. Can you copy those projects to
> current test instance[3], so that we can try to see if the problems are
> reproducible?
> 
> [1]:https://fedora.transifex.com/projects/p/linux-pam/
> [2]:https://www.transifex.com/projects/p/thunar/
> [3]:https://localized-zanatatest.itos.redhat.com/
> 
> Thanks!
> 
> noriko
> 
> 
> >
> > Regards,
> >
> >
> 
> _______________________________________________
> zanata-users mailing list
> zanata-users at redhat.com
> https://www.redhat.com/mailman/listinfo/zanata-users




More information about the zanata-users mailing list