Commit 917b8fb1 authored by Shailesh Baldaniya's avatar Shailesh Baldaniya

fix: Strings for language traslations

parent 4d6cd6a0
...@@ -263,11 +263,11 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView { ...@@ -263,11 +263,11 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
val type = chatRoom.type.toString() val type = chatRoom.type.toString()
if (type != previousChatRoomType) { if (type != previousChatRoomType) {
val title = when (type) { val title = when (type) {
RoomType.CHANNEL.toString() -> "Channels" RoomType.CHANNEL.toString() -> resources.getString(R.string.header_channel)
RoomType.PRIVATE_GROUP.toString() -> "Private Groups" RoomType.PRIVATE_GROUP.toString() -> resources.getString(R.string.header_private_groups)
RoomType.DIRECT_MESSAGE.toString() -> "Direct Messages" RoomType.DIRECT_MESSAGE.toString() -> resources.getString(R.string.header_direct_messages)
RoomType.LIVECHAT.toString() -> "Live Chats" RoomType.LIVECHAT.toString() -> resources.getString(R.string.header_live_chats)
else -> "UNKNOWN" else -> resources.getString(R.string.header_unknown)
} }
sections.add(SimpleSectionedRecyclerViewAdapter.Section(position, title)) sections.add(SimpleSectionedRecyclerViewAdapter.Section(position, title))
} }
......
...@@ -158,4 +158,11 @@ ...@@ -158,4 +158,11 @@
<string name="dialog_group_by_type">Agrupar por tipo</string> <string name="dialog_group_by_type">Agrupar por tipo</string>
<string name="dialog_group_favourites">Grupos favoritos</string> <string name="dialog_group_favourites">Grupos favoritos</string>
<string name="chatroom_header">Cabeçalho</string> <string name="chatroom_header">Cabeçalho</string>
<!--ChatRooms Headers-->
<string name="header_channel">Canais</string>
<string name="header_private_groups">Grupos Privados</string>
<string name="header_direct_messages">Mensagens diretas</string>
<string name="header_live_chats">Live Chats</string>
<string name="header_unknown">Desconhecido</string>
</resources> </resources>
\ No newline at end of file
...@@ -159,4 +159,11 @@ ...@@ -159,4 +159,11 @@
<string name="dialog_group_by_type">Group by type</string> <string name="dialog_group_by_type">Group by type</string>
<string name="dialog_group_favourites">Group favourites</string> <string name="dialog_group_favourites">Group favourites</string>
<string name="chatroom_header">Header</string> <string name="chatroom_header">Header</string>
<!--ChatRooms Headers-->
<string name="header_channel">Channels</string>
<string name="header_private_groups">Private Groups</string>
<string name="header_direct_messages">Direct Messages</string>
<string name="header_live_chats">Live Chats</string>
<string name="header_unknown">Unknown</string>
</resources> </resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment