Re: Firefox Monitor: updates on localization

Francesco Lodolo <[email protected]> Tue, 23 Oct 2018 07:31:44 +0200
Newsgroups gmane.comp.mozilla.localization
Message-ID <CA+nXC=oddNyCwMOY7PaGnXJRxpw5W2qWtwxU=SbEGdnZ7vL+-g@mail.gmail.com>
Sorry for the multiple emails, but there's actually a way to switch to
Advanced Mode (click the green FTL in the left bottom corner [1]):
since the warning is about a missing reference to "-no-breaches", you
can temporarily copy that reference to one of the available plural
forms (e.g. one, other), switch to FTL Advanced Mode, and add the [0].

For example, German would look like this when switching

report-headline =
    { $breachCount ->
        [one] Ihr Konto ist von { $breachCount } Datenleck betroffen.
       *[other] Ihr Konto ist von { $breachCount } Datenlecks betroffen.
    }

You can add a [0] form like this:

report-headline =
    { $breachCount ->
        [0] some text
        [one] Ihr Konto ist von { $breachCount } Datenleck betroffen.
       *[other] Ihr Konto ist von { $breachCount } Datenlecks betroffen.
    }

If you switch back to the normal UI, the zero form will now be
available for translation as usual. Obviously, you can also type
directly your translation in Advanced Mode and save it.

Francesco

[1] https://mozilla-l10n.github.io/localizer-documentation/tools/pontoon/ui.html#fluent---ftl-files
Il giorno mar 23 ott 2018 alle ore 07:20 Francesco Lodolo
<[email protected]> ha scritto:
>
> I spoke too soon, you can't switch to FTL advanced mode if there's a
> warning (likely a different bug).
>
> I fixed German by downloading the FTL file from the profile picture,
> fixing it manually, and uploading it again. For the last example, I
> left the string as a suggestion, since it needs a translation for "So
> far, so good".
>
> Feel free to ignore the warnings for now for other locales, I'll keep
> an eye on these three strings and try to help on my side, while we
> figure out how to fix it in Pontoon.
>
> Francesco
> Il giorno mar 23 ott 2018 alle ore 07:11 Francesco Lodolo
> <[email protected]> ha scritto:
> >
> > Looks like Pontoon is failing to display the "0" form
> > https://bugzilla.mozilla.org/show_bug.cgi?id=1501163
> >
> > In the meantime, you can work around it by switching to FTL mode, and
> > adding a [0] form manually. I'll try to fix these warnings myself in
> > case it's confusing.
> >
> > Francesco
> > Il giorno lun 22 ott 2018 alle ore 22:45 Michael 'Coce' Köhler
> > <[email protected]> ha scritto:
> > >
> > > Hi Francesco,
> > >
> > > The German translation is done but there are two issues:
> > >
> > > I get warnings in two strings
> > > <https://pontoon.mozilla.org/de/firefox-monitor-website/all-resources/?status=warnings&string=191979>
> > > because it seems I can’t translate them completely. There’s no
> > > localization field for „{no-breaches}“.
> > >
> > > Similarly, there’s no field for „So far, so good“ here
> > > <https://pontoon.mozilla.org/de/firefox-monitor-website/all-resources/?string=191849>
> > > but there’s no warning, maybe because the string is translated elsewhere?
> > >
> > > Do you know what’s wrong?
> > >
> > >
> > > By the way, Google Translate works really well, I have to say. Many
> > > times the translations require no change at all.
> > >
> > >
> > > Regards,
> > >
> > > Michael
> > > _______________________________________________
> > > dev-l10n mailing list
> > > [email protected]
> > > https://lists.mozilla.org/listinfo/dev-l10n
_______________________________________________
dev-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-l10n