"There is 1 unread and 4 new topics remaining, or browse other topics in ..."

I have a feeling that the first verb here should be “are” rather than “is”. Neither look perfect in the current sentence (which is a bit of a muddle).

2 לייקים

I think you’re right in this case. I’d use “are.” But I give a pass to things like this in interfaces – I imagine there are always more urgent things to code than perfect grammatic logic for the various possible combinations.

לייק 1

Certainly.

There are a couple of texts with “, or browse” in them. Here’s one. Clearly a lot of thought has gone into it.

{ HAS_UNREAD_AND_NEW, select,
  true {
    { UNREAD, plural,
         =0 {}
        one {There is <a href="{basePath}/u/{username}/messages/unread"># unread</a>}
      other {There are <a href="{basePath}/u/{username}/messages/unread"># unread</a>}
    }
    { NEW, plural,
         =0 {}
        one { and <a href="{basePath}/u/{username}/messages/new"># new</a> message remaining, or browse other <a href="{basePath}/u/{username}/messages">personal messages</a>}
      other { and <a href="{basePath}/u/{username}/messages/new"># new</a> messages remaining, or browse other <a href="{basePath}/u/{username}/messages">personal messages</a>}
    }
  }
  false {
    { UNREAD, plural,
         =0 {}
        one {There is <a href="{basePath}/u/{username}/messages/unread"># unread</a> message remaining, or browse other <a href="{basePath}/u/{username}/messages">personal messages</a>}
      other {There are <a href="{basePath}/u/{username}/messages/unread"># unread</a> messages remaining, or browse other <a href="{basePath}/u/{username}/messages">personal messages</a>}
    }
    { NEW, plural,
         =0 {}
        one {There is <a href="{basePath}/u/{username}/messages/new"># new</a> message remaining, or browse other <a href="{basePath}/u/{username}/messages">personal messages</a>}
      other {There are <a href="{basePath}/u/{username}/messages/new"># new</a> messages remaining, or browse other <a href="{basePath}/u/{username}/messages">personal messages</a>}
    }
  }
  other {}
}

I think that is not text text you mentioned in the first post. The one about topics is

{ HAS_UNREAD_AND_NEW, select,
  true {
    { UNREAD, plural,
         =0 {}
        one {There is <a href="{basePath}/unread"># unread</a>}
      other {There are <a href="{basePath}/unread"># unread</a>}
    }
    { NEW, plural,
         =0 {}
        one { and <a href="{basePath}/new"># new</a> topic remaining,}
      other { and <a href="{basePath}/new"># new</a> topics remaining,}
    }
  }
  false {
    { UNREAD, plural,
         =0 {}
        one {There is <a href="{basePath}/unread"># unread</a> topic remaining,}
      other {There are <a href="{basePath}/unread"># unread</a> topics remaining,}
    }
    { NEW, plural,
         =0 {}
        one {There is <a href="{basePath}/new"># new</a> topic remaining,}
      other {There are <a href="{basePath}/new"># new</a> topics remaining,}
    }
  }
  other {}
}
{ HAS_CATEGORY, select,
  true { or browse other topics in {categoryLink}}
  false { or <a href="{basePath}/latest">view latest topics</a>}
  other {}
}

This string uses the ICU Message Format. See Message Format support for localization for translation guidelines.
Both UNREAD and NEW are greater than 0 when HAS_UNREAD_AND_NEW is true
Either UNREAD or NEW is greater than 0 when HAS_UNREAD_AND_NEW is false`

If I understand the comment correctly, the first is needs to be changed to are, because that’s the text for 1 unread and at least 1 new topic. If that is changed you should see “There are 1 unread and 1 new topic remaining,”
While “There is 1 new topic remaining,” and “There is 1 unread topic remaining,” still use “is”.

If I am right, you can fix this on your forum by changing the first is in js.topic.read_more_MF to an are.
Then we can try the same on the one for messages and create a pull request to fix it for all forums.

I hadn’t realised “, or browse” wouldn’t pick up on the right message – I was on the phone and Discourse shows about 20 lines of text in a one-line field, and I didn’t check properly when I pasted it into the topic here. I don’t think your proposed amendment reads well either. It would probably be better to restructure the sentence, as the whole thing is badly worded.

I didn’t add that part because I thought it wasn’t relevant if it says “or browse other topics in category” or “or view latest topics” for deciding on the is at the beginning. It was difficult enough to build that part of the text.

But then you’d want to match plurals: “there are… topics remaining” …I think?

Wait, no. Then we’d naturally stumble at “1 new topics” – even though “topics” means the set of unread and new.

Augh, after looking at this for a few minutes nothing feels quite correct. That sentence might be a booby trap. :sweat_smile:

Again, these little hitches don’t bug me – but if I had to restructure it, it might look something like:

See [xx] unread topic(s), [xx] new topic(s), or browse other topics in…

I don’t think that will be easy to translate to all languages. What about languages that have multiple plurals?

What about "There are 1 unread topic and 1 new topic remaining,”?

The German translation uses something similar: “1 unread topic and 1 new topic remaining.”

Crowdin is quite helpful for testing these strings because can can choose parameters and see a preview of the text. For example


You can find the text here: Crowdin

Ah, it does make that part more straightforward. The options become clear:

is

  • There is 1 unread topic remaining
  • There is 1 new topic remaining

are

  • There are 3 unread topics remaining
  • There are 3 new topics remaining
  • There are [xx] unread topic/s and [xx] new topic/s remaining

There’s a “for you to read” implied there… but when the “or browse” part is attached, strictly read it’s awkward: “[Factual statement], or [action you can do].”

So I was trying to get closer to a set of actions: “Now you can x, or y.”

Hm. If you replace “There is/are” with “See” (& I’d strike “remaining”) then topic/s is the only plural decision to make:

  • See 1 unread topic, or browse…
  • See 1 new topic, or browse…
  • See 3 unread topics, or browse…
  • See 3 new topics, or browse…
  • See [xx] unread topic/s and [xx] new topic/s, or browse…

(No strong feelings here. I just find this interesting. I’m probably weird.)