DamascenoRafael / reminders-menubar

Simple macOS menu bar application to view and interact with reminders. Developed with SwiftUI and using Apple Reminders as a source.
GNU General Public License v3.0
2.4k stars 111 forks source link

Show frequency of recurrence #209

Open yunruse opened 2 months ago

yunruse commented 2 months ago

Last pull request for the week I promise!

It feels like it would be unwieldy to add parsers and editors for this sort of thing (the Reminders app is perfectly functional!) but it seems nice to have this little display functionality in addition to the icon indicating recurrence.

ss 2024-06-14 at 01 54 04
DamascenoRafael commented 2 months ago

@yunruse, thanks for your contribution!! 🚀 This will be a good addition.

Tip: Localizable involving singular and plurals are tricky. For some regions there is a specific translation for zero and more than one translation for plural depending on the number involved.

I migrated the project to string catalog (xcstrings), which makes this type of scenario easier. Can you please update your changes?

The translation is now in an Localizable.xcstrings file. You can add a new key to this file, and when the string has a number, like %i for an integer, there will be the option to add plural variation, as in the image below. After that, it is possible to define the different cases and you can use a unique key for both singular and plural (the correct translation will be chosen according to the number provided as parameter).

image image