Plurality in user messages

前端 未结 25 1881
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 01:53

Many times, when generating messages to show to the user, the message will contain a number of something that I want to inform the customer about.

I\'ll give a

25条回答
  •  渐次进展
    2021-01-30 02:24

    How about a more generic way. Avoid pluralization in the second sentence:

    Number of selected items to be deleted: noofitemsselected.
    Are you sure?

    I find out that doing it this way puts the number at the end of the line which is really easy to spot. This solution would work with the same logic in any language.

提交回复
热议问题