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
779f19d6
Commit
779f19d6
authored
Mar 14, 2018
by
Shailesh Baldaniya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add string traslation for portuguese(pt-rBR)
parent
2fcc8b33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
ChatRoomsFragment.kt
...ava/chat/rocket/android/chatrooms/ui/ChatRoomsFragment.kt
+2
-3
strings.xml
app/src/main/res/values-pt-rBR/strings.xml
+9
-0
No files found.
app/src/main/java/chat/rocket/android/chatrooms/ui/ChatRoomsFragment.kt
View file @
779f19d6
...
...
@@ -48,7 +48,6 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
private
val
handler
=
Handler
()
private
var
listJob
:
Job
?
=
null
private
var
baseAdapter
:
ChatRoomsAdapter
?
=
null
private
var
sectionedAdapter
:
SimpleSectionedRecyclerViewAdapter
?
=
null
companion
object
{
...
...
@@ -242,14 +241,14 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
private
fun
setSections
()
{
//Don't add section if not grouping by RoomType
if
(!
SharedPreferenceHelper
.
getBoolean
(
Constants
.
CHATROOM_GROUP_BY_TYPE_KEY
,
false
)){
if
(!
SharedPreferenceHelper
.
getBoolean
(
Constants
.
CHATROOM_GROUP_BY_TYPE_KEY
,
false
))
{
sectionedAdapter
?.
clearSections
()
return
}
val
sections
=
ArrayList
<
SimpleSectionedRecyclerViewAdapter
.
Section
>()
baseAdapter
?.
dataSet
?.
let
{
sectionedAdapter
?.
baseAdapter
?.
dataSet
?.
let
{
var
previousChatRoomType
=
""
for
((
position
,
chatRoom
)
in
it
.
withIndex
())
{
...
...
app/src/main/res/values-pt-rBR/strings.xml
View file @
779f19d6
...
...
@@ -149,4 +149,13 @@
<!-- Emoji message-->
<string
name=
"msg_no_recent_emoji"
>
Nenhum emoji recente
</string>
<!-- Sorting and grouping-->
<string
name=
"menu_chatroom_sort"
>
Ordenar
</string>
<string
name=
"dialog_sort_title"
>
Ordenar por
</string>
<string
name=
"dialog_sort_by_alphabet"
>
Alfabeticamente
</string>
<string
name=
"dialog_sort_by_activity"
>
Atividade
</string>
<string
name=
"dialog_group_by_type"
>
Agrupar por tipo
</string>
<string
name=
"dialog_group_favourites"
>
Grupos favoritos
</string>
<string
name=
"chatroom_header"
>
Cabeçalho
</string>
</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