diff options
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 1 | ||||
-rw-r--r-- | src/main/res/layout/activity_muc_details.xml | 7 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 5 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index 98f69a29c..ccb9a5e50 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -672,6 +672,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers this.mUserPreviewAdapter.submitList(MucOptions.sub(users, GridManager.getCurrentColumnCount(binding.users))); this.binding.invite.setVisibility(mucOptions.canInvite() ? View.VISIBLE : View.GONE); this.binding.showUsers.setVisibility(users.size() > 0 ? View.VISIBLE : View.GONE); + this.binding.showUsers.setText(getResources().getQuantityString(R.plurals.view_users, users.size(), users.size())); this.binding.usersWrapper.setVisibility(users.size() > 0 || mucOptions.canInvite() ? View.VISIBLE : View.GONE); if (users.size() == 0) { this.binding.noUsersHints.setText(mucOptions.isPrivateAndNonAnonymous() ? R.string.no_users_hint_group_chat : R.string.no_users_hint_channel); diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml index 523b6829e..81bd1274b 100644 --- a/src/main/res/layout/activity_muc_details.xml +++ b/src/main/res/layout/activity_muc_details.xml @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:card_view="http://schemas.android.com/tools"> + xmlns:card_view="http://schemas.android.com/tools" + xmlns:tools="http://schemas.android.com/tools"> <LinearLayout android:layout_width="match_parent" @@ -481,8 +482,8 @@ android:paddingLeft="16dp" android:paddingEnd="16dp" android:paddingRight="16dp" - android:text="@string/view_users" - android:textColor="?attr/colorAccent" /> + android:textColor="?attr/colorAccent" + tools:text="View n Participants" /> </LinearLayout> </LinearLayout> </androidx.cardview.widget.CardView> diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 1fdcb0ecd..3c274366d 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -848,7 +848,10 @@ <string name="unable_to_decrypt_backup">Unable to decrypt backup. Is the password correct?</string> <string name="pref_prefer_xmpp_avatar_summary">Prefer the user\'s XMPP avatar instead of the one from your address book</string> <string name="pref_prefer_xmpp_avatar">Prefer XMPP avatar</string> - <string name="view_users">View participants</string> + <plurals name="view_users"> + <item quantity="one">View %1$d Participant</item> + <item quantity="other">View %1$d Participants</item> + </plurals> <string name="group_chat_members">Participants</string> <string name="message_deleted">Message was deleted</string> <string name="channel_details">Channel details</string> |