GithubHelp home page GithubHelp logo

Comments (4)

flodolo avatar flodolo commented on August 20, 2024

I double-checked with @mathjazz, and I was wrong in assuming that this would trigger Pontoon's plural UI 😞

exposure-chart-heading =
  { $nr ->
     *[other] <nr>{ $nr }</nr> <label>exposures</label>
  }

We need the full plurals, even if that doesn't make a lot of sense for English

exposure-chart-heading =
  { $nr ->
      [one] <nr>{ $nr }</nr> <label>exposure</label>
     *[other] <nr>{ $nr }</nr> <label>exposures</label>
  }

from blurts-server.

pdehaan avatar pdehaan commented on August 20, 2024

This is a super-sketchy chain of cursed greps, but we might have about 8 spots where we only have an *[other] value in our .ftl files:

git grep -In -B1 "\*\[other\]" -- locales/en locales-pending/ | grep -A1 -E "\->$"
locales-pending/onboarding.ftl-18-    $dataBrokerTotalCount ->
locales-pending/onboarding.ftl:19:        *[other] With just a few key pieces of information, we’ll search for you in all known data breaches and { $dataBrokerTotalCount } major data broker sites. All users get the first scan free.
--
locales-pending/onboarding.ftl-58-    $breachesTotalCount ->
locales-pending/onboarding.ftl:59:        *[other] { $breachesScannedCount } of { $breachesTotalCount } known data breaches
--
locales-pending/onboarding.ftl-65-    $dataBrokerTotalCount ->
locales-pending/onboarding.ftl:66:        *[other] { $dataBrokerScannedCount } of { $dataBrokerTotalCount } data broker sites
--
locales-pending/premium.ftl-96-  { $exposure_num ->
locales-pending/premium.ftl:97:     *[other] { $exposure_num } found
--
locales/en/app.ftl-388-  { $breachCount ->
locales/en/app.ftl:389:   *[other] This email appeared in { $breachCount } known data breaches, including { $breachName }.
--
locales/en/app.ftl-637-  { $numAffectedEmails ->
locales/en/app.ftl:638:    *[other] { $numAffectedEmails } of your email addresses appeared in this breach. <a>What to do next</a>
--
locales/en/app.ftl-692-  { $numResolvedBreaches ->
locales/en/app.ftl:693:     *[other] { $numResolvedBreaches } Resolved
--
locales/en/app.ftl-704-  { $numTotalBreaches ->
locales/en/app.ftl:705:     *[other] { $numResolvedBreaches } out of { $numTotalBreaches } breaches marked as resolved

from blurts-server.

flodolo avatar flodolo commented on August 20, 2024

Update: apparently, I got the incorrect answer :-(

https://pontoon.mozilla.org/af/firefox/all-resources/?string=219592

This is an example showing that having other is enough to trigger the Pontoon UI

exposure-chart-heading =
  { $nr ->
     *[other] <nr>{ $nr }</nr> <label>exposures</label>
  }

Having a singular form (that is unused) is not bad, just not necessary.

from blurts-server.

mathjazz avatar mathjazz commented on August 20, 2024

Sorry for causing the confusion - I misinterpreted the question. 🤦

from blurts-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.