SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Calendar Stats Plural

Open wintstar opened this issue 12 years ago • 8 comments

Of german language is holidays = Feiertage. $txt['calendar_prompt'] = 'Holidays';

In the Calendar view, the plural is incorrect: calendar-german-plural

In the calendar week view, the plural is correctly calendar_week-german-plural

wintstar avatar Sep 15 '14 06:09 wintstar

same issue basically as #2020

but maybe having different strings in each place here may fix the issue

illori avatar Sep 15 '14 11:09 illori

This is one of those things that we really can't fix easily. We can fix it for "1" vs "more than 1", but that may not be correct in all languages. I think this, along with what's mentioned in #2020, is something we'll just have to live with for 2.1. Trying to fix it for every language gets unnecessarily complicated and makes the code more bloated since we have to add conditionals and such for each language that doesn't follow a standard convention.

Oldiesmann avatar Sep 16 '14 04:09 Oldiesmann

In this particular case, the problem seems to be that one string is being used for two places, one of which requires the singular, and the other requires the plural. So, this could probably be solved by having two separate strings, one for the singular and one for the plural.

Even with two strings, in the month view (as shown in the first image above), there would have to be some kind of condition, whereby the plural is shown if more than one holiday is shown on that particular day.

I think this particular case is solvable. It doesn't seem as complicated as some of the other issues we've come across for the plural.

ChainyEO avatar Sep 16 '14 11:09 ChainyEO

@Oldiesmann

This particular case can indeed be solved by the simple fix of "1" vs "more than 1". The words are standalone, not part of a sentence, so the simple fix would be enough for all languages.

ChainyEO avatar Sep 16 '14 11:09 ChainyEO

If we use singular there, then it's wrong in the case of multiple holidays on the same day (not likely, but it could happen - especially on international forums where the admins wish to acknowledge holidays in countries other than the US as well).

Oldiesmann avatar Sep 16 '14 18:09 Oldiesmann

What about Feiertage: (note the : ) That makes the sentence a list, where it doesn't matter whether singular vs plural is used if only one item is available.

NanoSector avatar Oct 20 '14 15:10 NanoSector

Bump?

NanoSector avatar Dec 05 '14 21:12 NanoSector

Adding a colon there is probably our best bet. I'm a little hesitant though because I don't know if it's used that way in all languages or just most of them. The best option is probably to do it in CSS since that same string is likely used in multiple places.

Oldiesmann avatar Dec 08 '14 21:12 Oldiesmann