Skip to content

Commit

Permalink
compose: Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpengi committed Sep 29, 2023
1 parent f180881 commit f042fe4
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 51 deletions.
164 changes: 156 additions & 8 deletions assets/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,26 @@
"@profileButtonSendDirectMessage": {
"description": "Label for button in profile screen to navigate to DMs with the shown user."
},
"cameraAccessDeniedTitle": "Permissions needed",
"@cameraAccessDeniedTitle": {
"description": "Title for dialog when the user needs to grant permissions for camera access."
"permissionsNeededError": "Error",
"@permissionsNeededError": {
"description": "General title for access dialog when we encounter an unknown error."
},
"cameraAccessDeniedMessage": "To upload an image, please grant Zulip additional permissions in Settings.",
"@cameraAccessDeniedMessage": {
"description": "Message for dialog when the user needs to grant permissions for camera access."
"permissionsNeededTitle": "Permissions needed",
"@permissionsNeededTitle": {
"description": "Title for dialog when the user needs to grant additional permissions."
},
"permissionsNeededOpenSettings": "Open settings",
"@permissionsNeededOpenSettings": {
"description": "Button label for permissions dialog button that opens the system settings screen."
},
"cameraAccessDeniedButtonText": "Open settings",
"@cameraAccessDeniedButtonText": {
"permissionsNeededCameraAccessDenied": "To upload an image, please grant Zulip additional permissions in Settings.",
"@permissionsNeededCameraAccessDenied": {
"description": "Message for dialog when the user needs to grant permissions for camera access."
},
"permissionsReadExternalStorageDenied": "To upload files, please grant Zulip additional permissions in Settings.",
"@permissionsReadExternalStorageDenied": {
"description": "Message for dialog when the user needs to grant permissions for external storage read access."
},
"actionSheetOptionCopy": "Copy message text",
"@actionSheetOptionCopy": {
"description": "Label for copy message text button on action sheet."
Expand All @@ -63,6 +71,44 @@
"@errorCopyingFailed": {
"description": "Dialog message when copying the text of a message to the users system clipboard failed."
},
"errorFailedToUploadFile": "Failed to upload file: {filename}",
"@errorFailedToUploadFile": {
"description": "Label in compose box showing the specified file failed to upload.",
"placeholders": {
"filename": {
"type": "String",
"example": "file.txt"
}
}
},
"errorFilesTooLarge": "{num, plural, =1{File is} other{{num} files are}} larger than the server's limit of {maxFileUploadSizeMib} MiB and will not be uploaded:\n\n{listMessage}",
"@errorFilesTooLarge": {
"description": "Error message when attached files are too large in size.",
"placeholders": {
"num": {
"type": "int",
"example": "4"
},
"maxFileUploadSizeMib": {
"type": "int",
"example": "15"
},
"listMessage": {
"type": "String",
"example": "foo.txt\nbar.txt"
}
}
},
"errorFilesTooLargeTitle": "{num, plural, =1{File} other{Files}} too large",
"@errorFilesTooLargeTitle": {
"description": "Error title when attached files are too large in size.",
"placeholders": {
"num": {
"type": "int",
"example": "4"
}
}
},
"errorLoginInvalidInputTitle": "Invalid input",
"@errorLoginInvalidInputTitle": {
"description": "Error dialog title for login dialog when input is invalid."
Expand All @@ -71,6 +117,10 @@
"@errorLoginFailed": {
"description": "Error dialog title when login for a Zulip server fails."
},
"errorMessageNotSent": "Message not sent",
"@errorMessageNotSent": {
"description": "Message for compose box when a message could not be sent."
},
"errorMessageDoesNotSeemToExist": "That message does not seem to exist.",
"@errorMessageDoesNotSeemToExist": {
"description": "Error message when loading a message that does not exist."
Expand Down Expand Up @@ -111,6 +161,92 @@
"@successMessageCopied": {
"description": "Dialog message when content of a message was copied to the users system clipboard."
},
"composeBoxAttachFilesTooltip": "Attach files",
"@composeBoxAttachFilesTooltip": {
"description": "Tooltip for compose box icon to attach a file to the message."
},
"composeBoxAttachMediaTooltip": "Attach images or videos",
"@composeBoxAttachMediaTooltip": {
"description": "Tooltip for compose box icon to attach media to the message."
},
"composeBoxAttachFromCameraTooltip": "Take a photo",
"@composeBoxAttachFromCameraTooltip": {
"description": "Tooltip for compose box icon to attach an image from the camera to the message."
},
"composeBoxSelfDMHint": "Jot down something",
"@composeBoxSelfDMHint": {
"description": "Hint text for content input when sending a message to yourself."
},
"composeBoxDMHintNoName": "Type a message",
"@composeBoxDMHintNoName": {
"description": "Hint text for content input when sending a message to one other person but we cannot determine their name."
},
"composeBoxDMHint": "Message @{user}",
"@composeBoxDMHint": {
"description": "Hint text for content input when sending a message to one other person.",
"placeholders": {
"user": {
"type": "String",
"example": "stream name"
}
}
},
"composeBoxGroupDMHint": "Message group",
"@composeBoxGroupDMHint": {
"description": "Hint text for content input when sending a message to a group."
},
"composeBoxStreamContentHint": "Message #{stream} > ${topic}",
"@composeBoxStreamContentHint": {
"description": "Hint text for content input when sending a message to a stream",
"placeholders": {
"stream": {
"type": "String",
"example": "stream name"
},
"topic": {
"type": "String",
"example": "topic name"
}
}
},
"composeBoxSendTooltip": "Send",
"@composeBoxSendTooltip": {
"description": "Tooltip for send button in compose box."
},
"composeBoxUnknownStreamName": "(unknown stream)",
"@composeBoxUnknownStreamName": {
"description": "Replacement name for stream when it cannot be found in the store."
},
"composeBoxTopicHintText": "Topic",
"@composeBoxTopicHintText": {
"description": "Hint text for topic input widget in compose box."
},
"composeBoxUploadingFilename": "Uploading {filename}...",
"@composeBoxUploadingFilename": {
"description": "Label in compose box showing the specified file is currently uploading.",
"placeholders": {
"filename": {
"type": "String",
"example": "file.txt"
}
}
},
"contentValidationErrorTooLong": "Message length shouldn't be greater than 10000 characters.",
"@contentValidationErrorTooLong": {
"description": "Content validation error message when the message is too long."
},
"contentValidationErrorEmpty": "You have nothing to send!",
"@contentValidationErrorEmpty": {
"description": "Content validation error message when the message is empty."
},
"contentValidationErrorQuoteAndReplyInProgress": "Please wait for the quotation to complete.",
"@contentValidationErrorQuoteAndReplyInProgress": {
"description": "Content validation error message when a quotation has not completed yet."
},
"contentValidationErrorUploadInProgress": "Please wait for the upload to complete.",
"@contentValidationErrorUploadInProgress": {
"description": "Content validation error message when attachments have not finished uploading."
},
"suggestedActionDialogCancel": "Cancel",
"@suggestedActionDialogCancel": {
"description": "Button label to cancel a suggested action."
Expand All @@ -123,6 +259,10 @@
"@errorDialogContinue": {
"description": "Button label in error dialogs to acknowledge error."
},
"errorDialogTitle": "Error",
"@errorDialogTitle": {
"description": "Generic title for error dialog."
},
"lightboxCopyLinkTooltip": "Copy link",
"@lightboxCopyLinkTooltip": {
"description": "Tooltip in lightbox for the copy link action."
Expand Down Expand Up @@ -175,6 +315,14 @@
"@loginValidationRequireUsernameLabel": {
"description": "Label for input when a username is required to login."
},
"topicValidationErrorTooLong": "Topic length shouldn't be greater than 60 characters.",
"@topicValidationErrorTooLong": {
"description": "Topic validation error when topic is too long."
},
"topicValidationErrorMandatoryButEmpty": "Topics are required in this organization.",
"@topicValidationErrorMandatoryButEmpty": {
"description": "Topic validation error when topic is required but was empty."
},
"subscribedToNStreams": "Subscribed to {num, plural, =0{no streams} =1{1 stream} other{{num} streams}}",
"@subscribedToNStreams": {
"description": "Test page label showing number of streams user is subscribed to.",
Expand Down
Loading

0 comments on commit f042fe4

Please sign in to comment.