Git Product home page Git Product logo

Comments (3)

vixalien avatar vixalien commented on August 30, 2024

Hmm. I can find the strings in the pot file though??

from muzika.

yakushabb avatar yakushabb commented on August 30, 2024

They aren't in ngettext format.

#: src/pages/playlist.ts:254
#, c-format
msgid "%d song removed from playlist"
msgstr ""

#: src/pages/playlist.ts:255
#, c-format
msgid "%d songs removed from playlist"
msgstr ""

#. Translators: %s is a song's name
#: src/player/queue.ts:392 src/player/queue.ts:447
#, c-format
msgid "Playing “%s” next"
msgstr ""

#: src/player/queue.ts:448
#, c-format
msgid "Playing %d songs next"
msgstr ""

#: src/player/queue.ts:454
#, c-format
msgid "Added %d songs to queue"
msgstr ""

The code should be something like that

return Gettext.ngettext("%d day ago", "%d days ago", days).format(days);

And pot file should be something like that

#: src/utils.ts:55
#, c-format
msgid "%d day ago"
msgid_plural "%d days ago"
msgstr[0] ""
msgstr[1] ""

from muzika.

vixalien avatar vixalien commented on August 30, 2024

Oh you're correct. Thanks, I will try to fix that soon™

from muzika.

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.