Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
917b8fb1
Commit
917b8fb1
authored
Mar 15, 2018
by
Shailesh Baldaniya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Strings for language traslations
parent
4d6cd6a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
ChatRoomsFragment.kt
...ava/chat/rocket/android/chatrooms/ui/ChatRoomsFragment.kt
+5
-5
strings.xml
app/src/main/res/values-pt-rBR/strings.xml
+7
-0
strings.xml
app/src/main/res/values/strings.xml
+7
-0
No files found.
app/src/main/java/chat/rocket/android/chatrooms/ui/ChatRoomsFragment.kt
View file @
917b8fb1
...
@@ -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
))
}
}
...
...
app/src/main/res/values-pt-rBR/strings.xml
View file @
917b8fb1
...
@@ -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
app/src/main/res/values/strings.xml
View file @
917b8fb1
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment