Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

Member joined group message should use Plurals

Open cascheberg opened this issue 11 years ago • 6 comments

The string GroupUtil_joined_the_group "%1$s joined the group" cannot be translated properly. It can mean that one or more people joined the group. But for example in German you must specify "has joined" for singular, or "have joined" for plural. So it should use Android Plurals.

cascheberg avatar Nov 13 '15 17:11 cascheberg

As far as I know, the placeholder in this string represents a contact name rather than a number, no?

RiseT avatar Nov 13 '15 18:11 RiseT

Yes, but it can be more than one contact name. So the problem is that in German you need to be able to differentiate:

  • "UserA has joined the group."
  • "UserA, UserB have joined the group."

cascheberg avatar Nov 13 '15 18:11 cascheberg

Ah - ok. Wasn't aware that multiple contacts can join at once.

RiseT avatar Nov 13 '15 18:11 RiseT

Could swear I did the translation or original string change for that one. Worked around the pluralistic singularity with that: "Joined the group: %1$s"

McLoo avatar Nov 13 '15 22:11 McLoo

@McLoo Just checked - the string's history consists of just one translation (which doesn't take plurals into account). Modified it accordingly to your suggestion as a (temporary?) workaround. Perhaps the string's name changed at some point in time.

RiseT avatar Nov 13 '15 22:11 RiseT

@RiseT @McLoo Yes that works for German, but I am not sure about other languages.

(I signed up for Transifex. It seems that during the signup process I automatically requested to add the new language "German" to the project. I did not realize it would do that, oops, sorry!)

cascheberg avatar Nov 14 '15 06:11 cascheberg