Skip to content
Snippets Groups Projects
Commit f06beef1 authored by ovari's avatar ovari
Browse files

misc: unify terminology

... → …
Are you sure you → Do you really → Do you
indeces → indices
invaled → invalid
kicked → blocked
rejoined → unblocked
try → attempt

Change-Id: Ie214fabf74211d8ffb61f34c2f42bbcc5c9a33cf
GitLab: #382
parent 70cfe93f
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ class ContextMenuVM: ObservableObject {
return false
}
} else {
log.error("[ContextMenu] Jami account ID invaled while trying to read message reactions.")
log.error("[ContextMenu] Jami account ID invalid while attempting to read message reactions.")
return false
}
}
......@@ -178,7 +178,7 @@ class ContextMenuVM: ObservableObject {
if let sender = self.currentJamiAccountId {
return self.presentingMessage.messageModel.message.reactions.first(where: { item in item.author == sender && item.content == withValue })
} else {
log.error("[ContextMenu] Jami account ID invaled while trying to read message reactions.")
log.error("[ContextMenu] Jami account ID invalid while attempting to read message reactions.")
return nil
}
}
......
......@@ -290,7 +290,7 @@ class MessagesListVM: ObservableObject {
self.isTemporary = false
}
}, onError: { [weak self] (_) in
self?.log.error("error sending contact request")
self?.log.error("Error sending contact request")
})
.disposed(by: self.disposeBag)
}
......@@ -418,13 +418,13 @@ class MessagesListVM: ObservableObject {
if let dat = event["data"], let mId = event["parentMessageId"] {
self.conversationService.sendEmojiReactionMessage(conversationId: self.conversation.id, accountId: self.conversation.accountId, message: dat, parentId: mId)
} else {
self.log.error("[MessagesListVM] Invalid data provided while trying to add a reaction a message.")
self.log.error("[MessagesListVM] Invalid data provided while attempting to add a reaction a message.")
}
case ReactionCommand.revoke.toString():
if let rId = event["reactionId"] {
self.conversationService.editSwarmMessage(conversationId: self.conversation.id, accountId: self.conversation.accountId, message: "", parentId: rId)
} else {
self.log.error("[MessagesListVM] Invalid message ID provided while trying to revoke a reaction from a message.")
self.log.error("[MessagesListVM] Invalid message ID provided while attempting to revoke a reaction from a message.")
}
default: break
}
......@@ -619,7 +619,7 @@ class MessagesListVM: ObservableObject {
or if this message precedes the current 'lastDelivered' in the messages list.
*/
// get indeces of last read messages
// get indices of last read messages
let lastReadIndices = getLastReadIndices()
guard let index = self.messagesModels.firstIndex(where: { $0.id == message.id }) else { return }
......
......@@ -19,9 +19,9 @@
*/
/**
Errors that can be thrown when trying create an AccountCredentialsModel
Errors that can be thrown when attempting create an AccountCredentialsModel
- NotEnoughData: some information are missing to create the object
- NotEnoughData: information is missing to create the object
*/
enum CredentialsError: Error {
case notEnoughData
......
......@@ -24,7 +24,7 @@
import Foundation
/**
Errors that can be thrown when trying to build an AccountModel
Errors that can be thrown when attempting to build an AccountModel
*/
enum AccountModelError: Error {
case unexpectedError
......
......@@ -85,7 +85,7 @@
"swarm.blocked" = "Blocked";
"swarm.unknown" = "Unknown";
"swarm.inviteMembers" = "Invite members";
"swarm.confirmLeaveConversation" = "Do you really want to leave this conversation?";
"swarm.confirmLeaveConversation" = "Do you want to leave this conversation?";
"swarm.Leave" = "Leave";
"swarm.newGroup" = "Create new group";
"swarm.namePlaceholder" = "Group name";
......@@ -235,11 +235,11 @@
"alerts.accountLinkedTitle" = "Linking account";
"alerts.dbFailedTitle" = "An error happened when launching Jami";
"alerts.dbFailedMessage" = "Please close application and try to open it again";
"alerts.confirmBlockContact" = "Are you sure you want to block this contact? The conversation history with this contact will also be deleted permanently.";
"alerts.confirmDeleteConversation" = "Are you sure you want to delete this conversation permanently?";
"alerts.confirmDeleteConversationFromContact" = "Are you sure you want to delete the conversation with this contact?";
"alerts.confirmBlockContact" = "Do you want to block this contact? The conversation history with this contact will also be deleted permanently.";
"alerts.confirmDeleteConversation" = "Do you want to delete this conversation permanently?";
"alerts.confirmDeleteConversationFromContact" = "Do you want to delete the conversation with this contact?";
"alerts.confirmDeleteConversationTitle" = "Delete Conversation";
"alerts.confirmClearConversation" = "Are you sure you want to clear the conversation with this contact?";
"alerts.confirmClearConversation" = "Do you want to clear the conversation with this contact?";
"alerts.confirmClearConversationTitle" = "Clear Conversation";
"alerts.noMediaPermissionsTitle" = "Media permission not granted";
"alerts.noLibraryPermissionsTitle" = "Access to photo library not granted";
......@@ -304,7 +304,7 @@
"accountPage.proxyDisabledAlertTitle" = "Proxy Server Disabled";
"accountPage.proxyDisabledAlertBody" = "In order to receive notifications, please enable proxy";
"accountPage.removeDeviceTitle" = "Remove device";
"accountPage.revokeDeviceMessage" = "Are you sure you want to remove this device? This action cannot be undone.";
"accountPage.revokeDeviceMessage" = "Do you want to remove this device? This action cannot be undone.";
"accountPage.revokeDeviceButton" = "Revoke";
"accountPage.revokeDevicePlaceholder" = "Enter your password";
"accountPage.deviceRevoked" = "Device revocation completed";
......@@ -470,13 +470,13 @@
"generatedMessage.invitationReceived" = "was invited to join the conversation.";
"generatedMessage.invitationAccepted" = "joined the conversation.";
"generatedMessage.youJoined" = "You joined the conversation.";
"generatedMessage.contactBlocked" = "was kicked from the conversation.";
"generatedMessage.contactUnblocked" = "rejoined the conversation.";
"generatedMessage.contactBlocked" = "was blocked from the conversation.";
"generatedMessage.contactUnblocked" = "was unblocked from the conversation.";
"generatedMessage.outgoingCall" = "Outgoing call";
"generatedMessage.missedOutgoingCall" = "Missed outgoing call";
"generatedMessage.missedIncomingCall" = "Missed incoming call";
"generatedMessage.liveLocationSharing" = "Live location sharing";
"generatedMessage.contactLeftConversation" = "left the conversation";
"generatedMessage.contactLeftConversation" = "left the conversation.";
// General Settings
"generalSettings.videoSettings" = "Video settings";
......
......@@ -23,7 +23,7 @@ import Foundation
import SwiftyBeaver
/**
Errors that can be thrown when trying to start the daemon:
Errors that can be thrown when attempting to start the daemon:
- DaemonAlreadyRunning: the daemon is already running.
- InitializationFailure: the daemon failed to initialiaze.
......@@ -36,7 +36,7 @@ enum StartDaemonError: Error {
}
/**
Errors that can be thrown when trying to stop the daemon:
Errors that can be thrown when attempting to stop the daemon:
- DaemonNotRunning: the daemon is not running and can not be stopped.
*/
......
......@@ -51,7 +51,7 @@ IOS_TOP_DIR="$(pwd)"
if [ -z "$DAEMON_DIR" ]; then
DAEMON_DIR="$(pwd)/../daemon"
echo "DAEMON_DIR not provided trying to find it in $DAEMON_DIR"
echo "DAEMON_DIR not provided attempting to find it in $DAEMON_DIR"
fi
if [ ! -d "$DAEMON_DIR" ]; then
echo 'Daemon not found.'
......@@ -64,7 +64,7 @@ fi
if [ ! $(which gas-preprocessor.pl) ]
then
echo 'gas-preprocessor.pl not found. Trying to install...'
echo 'gas-preprocessor.pl not found. Attempting to install'
mkdir -p "$DAEMON_DIR/extras/tools/build/bin/"
(curl -L https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl \
-o "$DAEMON_DIR/extras/tools/build/bin/gas-preprocessor.pl" \
......@@ -196,8 +196,8 @@ then
for f in $LIBFILES
do
libFile=${f##*/}
echo "Processing $libFile lib..."
#There is only 2 ARCH max... So let's make it simple
echo "Processing $libFile lib"
#There is only 2 ARCH max So let's make it simple
lipo -create "$IOS_TOP_DIR/DEPS/${ARCHS[0]}/lib/$libFile" \
"$IOS_TOP_DIR/DEPS/${ARCHS[1]}/lib/$libFile" \
-output "$FAT_DIR/lib/$libFile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment