Use sentence case

This commit is contained in:
Djorkaeff Alexandre 2024-03-13 15:03:19 -03:00
parent e887cf9744
commit 48f3b78a48
5 changed files with 11 additions and 12 deletions

View File

@ -634,7 +634,7 @@
}
}
},
"Load More..." : {
"Load more..." : {
"localizations" : {
"ja" : {
"stringUnit" : {
@ -645,7 +645,7 @@
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Carregar Mais..."
"value" : "Carregar mais..."
}
}
}
@ -714,7 +714,7 @@
}
}
},
"No Connected servers." : {
"No connected servers." : {
"localizations" : {
"ja" : {
"stringUnit" : {
@ -730,8 +730,7 @@
}
}
},
"No Message" : {
"extractionState" : "manual",
"No message" : {
"localizations" : {
"ja" : {
"stringUnit" : {
@ -999,7 +998,7 @@
}
}
},
"Try Again" : {
"Try again" : {
"localizations" : {
"ja" : {
"stringUnit" : {
@ -1010,7 +1009,7 @@
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Tentar Novamente"
"value" : "Tentar novamente"
}
}
}

View File

@ -36,12 +36,12 @@ final class RoomViewModel: ObservableObject {
var lastMessage: String {
guard let user = room.lastMessage?.user else {
return String(localized: "No Message")
return String(localized: "No message")
}
let isLastMessageSentByMe = user.username == server.loggedUser.username
let username = isLastMessageSentByMe ? String(localized: "You") : ((server.useRealName ? user.name : user.username) ?? "")
let message = room.lastMessage?.msg ?? String(localized: "No Message")
let message = room.lastMessage?.msg ?? String(localized: "No message")
if room.lastMessage?.t == "jitsi_call_started" {
return String(localized: "Call started by: \(username)")

View File

@ -29,7 +29,7 @@ struct MessageListView: View {
ChatScrollView {
VStack(alignment: .leading, spacing: 8) {
if room.hasMoreMessages {
Button("Load More...") {
Button("Load more...") {
guard let oldestMessage = room.firstMessage?.ts else { return }
messagesLoader.loadMore(from: oldestMessage)

View File

@ -13,7 +13,7 @@ struct RetryView: View {
VStack {
Text(label)
.multilineTextAlignment(.center)
Button("Try Again", action: action)
Button("Try again", action: action)
}
.padding()
}

View File

@ -44,7 +44,7 @@ struct ServerListView: View {
case .loading:
ProgressView()
case .loaded where servers.isEmpty:
RetryView("No Connected servers.", action: loadServers)
RetryView("No connected servers.", action: loadServers)
case .loaded:
serverList
case .error(let error) where error == .locked: