Fix localization issue with group call start strings.
This commit is contained in:
parent
81149e5aa8
commit
b55181ffe6
2 changed files with 9 additions and 2 deletions
|
@ -61,8 +61,13 @@ public class GroupCallUpdateMessageFactory implements UpdateDescription.Spannabl
|
|||
: context.getString(R.string.MessageRecord_group_call);
|
||||
case 1:
|
||||
if (joinedMembers.get(0).toString().equals(groupCallUpdateDetails.getStartedCallUuid())) {
|
||||
return withTime ? context.getString(R.string.MessageRecord_s_started_a_group_call_s, describe(joinedMembers.get(0)), time)
|
||||
: context.getString(R.string.MessageRecord_s_started_a_group_call, describe(joinedMembers.get(0)));
|
||||
if (Objects.equals(joinedMembers.get(0), selfAci)) {
|
||||
return withTime ? context.getString(R.string.MessageRecord_you_started_a_group_call_s, time)
|
||||
: context.getString(R.string.MessageRecord_you_started_a_group_call);
|
||||
} else {
|
||||
return withTime ? context.getString(R.string.MessageRecord_s_started_a_group_call_s, describe(joinedMembers.get(0)), time)
|
||||
: context.getString(R.string.MessageRecord_s_started_a_group_call, describe(joinedMembers.get(0)));
|
||||
}
|
||||
} else if (Objects.equals(joinedMembers.get(0), selfAci)) {
|
||||
return withTime ? context.getString(R.string.MessageRecord_you_are_in_the_group_call_s1, time)
|
||||
: context.getString(R.string.MessageRecord_you_are_in_the_group_call);
|
||||
|
|
|
@ -1484,12 +1484,14 @@
|
|||
|
||||
<!-- Group Calling update messages -->
|
||||
<string name="MessageRecord_s_started_a_group_call_s">%1$s started a group call · %2$s</string>
|
||||
<string name="MessageRecord_you_started_a_group_call_s">You started a group call · %1$s</string>
|
||||
<string name="MessageRecord_s_is_in_the_group_call_s">%1$s is in the group call · %2$s</string>
|
||||
<string name="MessageRecord_you_are_in_the_group_call_s1">You are in the group call · %1$s</string>
|
||||
<string name="MessageRecord_s_and_s_are_in_the_group_call_s1">%1$s and %2$s are in the group call · %3$s</string>
|
||||
<string name="MessageRecord_group_call_s">Group call · %1$s</string>
|
||||
|
||||
<string name="MessageRecord_s_started_a_group_call">%1$s started a group call</string>
|
||||
<string name="MessageRecord_you_started_a_group_call">You started a group call</string>
|
||||
<string name="MessageRecord_s_is_in_the_group_call">%1$s is in the group call</string>
|
||||
<string name="MessageRecord_you_are_in_the_group_call">You are in the group call</string>
|
||||
<string name="MessageRecord_s_and_s_are_in_the_group_call">%1$s and %2$s are in the group call</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue