Skip to content

Commit

Permalink
linagora#22 register i18n translation tables for linagora.esn.unified…
Browse files Browse the repository at this point in the history
…inbox module
  • Loading branch information
Tuan Tuan LE committed Aug 10, 2020
1 parent 53ee85a commit 4f0a28c
Show file tree
Hide file tree
Showing 6 changed files with 1,500 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/linagora.esn.unifiedinbox/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

angular.module('linagora.esn.unifiedinbox')
.config(injectAttachmentsActionList)
.config(setDefaultIcon);
.config(setDefaultIcon)
.config(registerI18N);

function injectAttachmentsActionList(dynamicDirectiveServiceProvider) {
const attachmentDownloadAction = new dynamicDirectiveServiceProvider.DynamicDirective(true, 'attachment-download-action');
Expand All @@ -13,3 +14,11 @@ function injectAttachmentsActionList(dynamicDirectiveServiceProvider) {
function setDefaultIcon($mdIconProvider) {
$mdIconProvider.defaultIconSet('images/mdi/mdi.svg', 24);
}

function registerI18N($translateProvider) {
$translateProvider.translations('en', require('../i18n/en.json'));
$translateProvider.translations('fr', require('../i18n/fr.json'));
$translateProvider.translations('ru', require('../i18n/ru.json'));
$translateProvider.translations('vi', require('../i18n/vi.json'));
$translateProvider.translations('zh', require('../i18n/zh.json'));
}
298 changes: 298 additions & 0 deletions src/linagora.esn.unifiedinbox/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,298 @@
{
"\"%s\"": "\"%s\"",
"%s items": "%s items",
"%s selected": "%s selected",
"(No subject)": "(No subject)",
"1 item": "1 item",
"A read receipt has been requested.": "A read receipt has been requested.",
"A read receipt has been sent.": "A read receipt has been sent.",
"Actions": "Actions",
"Activated": "Activated",
"Add a new folder": "Add a new folder",
"Add new account": "Add new account",
"All Mail": "All Mail",
"All messages in folder have been marked as read": "All messages in folder have been marked as read",
"Enable users to configure email forwarding": "Enable users to configure email forwarding",
"Enable users to keep a local copy of forwarded emails": "Enable users to keep a local copy of forwarded emails",
"Always request read receipts with outgoing messages ?": "Always request read receipts with outgoing messages ?",
"Attach files": "Attach files",
"Attachments": "Attachments",
"authorize your browser": "authorize your browser",
"Bcc": "Bcc",
"Cannot move \"%s\" to \"%s\"": "Cannot move \"%s\" to \"%s\"",
"Cc": "Cc",
"Child Of": "Child Of",
"Clear filters": "Clear filters",
"close": "close",
"Compose an email": "Compose an email",
"Compose new email": "Compose new email",
"Consultation": "Consultation",
"Consultation and organize folder": "Consultation and organize folder",
"Could not download message \"%s\"": "Could not download message \"%s\"",
"Could not save identity": "Could not save identity",
"Could not send the read receipt.": "Could not send the read receipt.",
"Could not update \"%s\"": "Could not update \"%s\"",
"Create a new folder": "Create a new folder",
"Create identity": "Create identity",
"Creating folder...": "Creating folder...",
"Date": "Date",
"Deactivated": "Deactivated",
"Delete folder": "Delete folder",
"Delete folder?": "Delete folder?",
"Delete this folder": "Delete this folder",
"Did you know you can create rules using the floating action button? Give it a try!": "Did you know you can create rules using the floating action button? Give it a try!",
"Did you know you can drag & drop messages to this folder? Give it a try!": "Did you know you can drag & drop messages to this folder? Give it a try!",
"Disable": "Disable",
"Disable forwarding?": "Disable forwarding?",
"Disable local copy?": "Disable local copy?",
"Display email as": "Display email as",
"Does not have": "Does not have",
"Download (.eml)": "Download (.eml)",
"Download API": "Download API",
"Downloading message \"%s\"...": "Downloading message \"%s\"...",
"Draft": "Draft",
"Drafts": "Drafts",
"Edit identity": "Edit identity",
"Edit quoted mail": "Edit quoted mail",
"Email Links": "Email Links",
"Empty the trash failed": "Empty the trash failed",
"Empty trash": "Empty trash",
"Empty trash in progress": "Empty trash in progress",
"Enable attachments": "Enable attachments",
"Enable draft email": "Enable draft email",
"Enable folders sharing": "Enable folders sharing",
"Enable forwarding": "Enable forwarding",
"Enable JMAP sending": "Enable JMAP sending",
"End date must be greater than start date": "End date must be greater than start date",
"Error while loading forwarding settings!": "Error while loading forwarding settings!",
"Failed to create folder": "Failed to create folder",
"Failed to mark folder messages as read": "Failed to mark folder messages as read",
"Failed to remove folder": "Failed to remove folder",
"Failed to save vacation settings": "Failed to save vacation settings",
"Failed to update folder": "Failed to update folder",
"Failed to update forwardings": "Failed to update forwardings",
"Failed to update sharing settings": "Failed to update sharing settings",
"File %s ignored as its size exceeds the %s limit": "File %s ignored as its size exceeds the %s limit",
"Filter name": "Filter name",
"Filters": "Filters",
"Folder %s (including folder %s) and all the messages it contains will be deleted and you won't be able to recover them.": "Folder %s (including folder %s) and all the messages it contains will be deleted and you won't be able to recover them.",
"Folder %s (including folders %s and %s) and all the messages it contains will be deleted and you won't be able to recover them.": "Folder %s (including folders %s and %s) and all the messages it contains will be deleted and you won't be able to recover them.",
"Folder %s (including folders %s, %s and some others) and all the messages it contains will be deleted and you won't be able to recover them.": "Folder %s (including folders %s, %s and some others) and all the messages it contains will be deleted and you won't be able to recover them.",
"Folder %s and all the messages it contains will be deleted and you won't be able to recover them.": "Folder %s and all the messages it contains will be deleted and you won't be able to recover them.",
"Folder created": "Folder created",
"Folder name": "Folder name",
"Folder removed": "Folder removed",
"Folder settings": "Folder settings",
"Folder updated": "Folder updated",
"Folders": "Folders",
"Forwarded": "Forwarded",
"Forwarded message": "Forwarded message",
"Forwardings": "Forwardings",
"Forwardings updated": "Forwardings updated",
"Go Back": "Go Back",
"Go back to mailbox": "Go back to mailbox",
"Go to your Inbox": "Go to your Inbox",
"Has attachment": "Has attachment",
"has subject containing %s": "has subject containing %s",
"Has the words": "Has the words",
"Hide emails with attachments": "Hide emails with attachments",
"Identities": "Identities",
"Identity": "Identity",
"Identity removed": "Identity removed",
"Identity saved": "Identity saved",
"If a message": "If a message",
"In order to make sure that you can open email links, please": "In order to make sure that you can open email links, please",
"INBOX": "INBOX",
"Incoming mailbox": "Inbox",
"Invite people:": "Invite people:",
"is addressed or cc'd to %s": "is addressed or cc'd to %s",
"is addressed to %s": "is addressed to %s",
"is cc'd to %s": "is cc'd to %s",
"is from %s": "is from %s",
"Is located under": "Is located under",
"JMAP API": "JMAP API",
"Keep local copy": "Keep local copy",
"Last month": "Last month",
"Last week": "Last week",
"Mark all as read": "Mark all as read",
"Mark all as read in progress ...": "Mark all as read in progress ...",
"Mark as spam": "Mark as spam",
"Mark as unread": "Mark as unread",
"Max size upload": "Max size upload",
"me": "me",
"Message \"%s\" successfully downloaded": "Message \"%s\" successfully downloaded",
"Message body": "Message body",
"Message sent": "Message sent",
"Message was displayed on %s": "Message was displayed on %s",
"Messages": "Messages",
"Modification of vacation settings": "Modification of vacation settings",
"Move to": "Move to",
"move to destination folder %s": "move to destination folder %s",
"Move to trash": "Move to trash",
"My identity": "My identity",
"My folders": "My folders",
"Name or email address": "Name or email address",
"Navigation": "Navigation",
"New": "New",
"New filter": "New filter",
"Edit filter": "Edit filter",
"New folder": "New folder",
"New message": "New message",
"No end date": "No end date",
"No end time": "No end time",
"No quarantined email": "No quarantined email",
"No rule": "No rule",
"Not spam": "Not spam",
"Number of items per request, on bulk AS READ operations": "Number of items per request, on bulk AS READ operations",
"Number of items per request, on bulk DELETE operations": "Number of items per request, on bulk DELETE operations",
"Number of items per request, on bulk READ operations": "Number of items per request, on bulk READ operations",
"Number of items per request, on bulk UPDATE operations": "Number of items per request, on bulk UPDATE operations",
"Old messages": "Old messages",
"On": "On",
"Open email links with OpenPaaS": "Open email links with OpenPaaS",
"Organize": "Organize",
"Outbox": "Outbox",
"Owner": "Owner",
"Please enter a valid folder name": "Please enter a valid folder name",
"Please enter a valid start date": "Please enter a valid start date",
"Please verify your vacation settings": "Please verify your vacation settings",
"Please wait while your download is being prepared": "Please wait while your download is being prepared",
"Read and update messages": "Read and update messages",
"Read: %s": "Read: %s",
"Receipts": "Receipts",
"Refresh": "Refresh",
"Removing folder...": "Removing folder...",
"Removing identity...": "Removing identity...",
"Rename": "Rename",
"Reopen": "Reopen",
"Reopen the composer": "Reopen the composer",
"Replied": "Replied",
"Reply to address": "Reply to address",
"Request a read receipt": "Request a read receipt",
"Request receipts": "Request receipts",
"Retry": "Retry",
"Saving identity...": "Saving identity...",
"Saving vacation settings...": "Saving vacation settings...",
"Saving your email as draft failed": "Saving your email as draft failed",
"Saving your email as draft in progress...": "Saving your email as draft in progress...",
"Saving your email as draft succeeded": "Saving your email as draft succeeded",
"Select all": "Select all",
"Select all items in this group": "Select all items in this group",
"Select another upload service:": "Select another upload service:",
"Send the read receipt": "Send the read receipt",
"Sent": "Sent",
"Set email forwardings": "Set email forwardings",
"Set email forwardings for %s": "Set email forwardings for %s",
"Search...": "Search...",
"Shared folders": "Shared folders",
"Shared mailboxes": "Shared mailboxes",
"Sharing settings": "Sharing settings",
"Sharing settings updated": "Sharing settings updated",
"Show": "Show",
"Show attachments": "Show attachments",
"Show emails with attachments": "Show emails with attachments",
"Signature": "Signature",
"Mobile signature": "Mobile signature",
"Mobile signature will be used on mobile version of OpenPaaS. It can only be textual.": "Mobile signature will be used on mobile version of OpenPaaS. It can only be textual.",
"Some items could not be moved to \"%s\"": "Some items could not be moved to \"%s\"",
"Some items could not be updated": "Some items could not be updated",
"Spam": "Spam",
"Star": "Star",
"Starred": "Starred",
"Start to type here": "Start to type here",
"Start typing...": "Start typing...",
"Start writing your vacation message here": "Start writing your vacation message here",
"Storage quota": "Storage quota",
"Subject: %s": "Subject: %s",
"Suggestions": "Suggestions",
"Swipe right action": "Swipe right action",
"Tap to edit": "Tap to edit",
"Test": "Test",
"Thanks a lot for your message. I am currently out of office and will get back to you soon.": "Thanks a lot for your message. I am currently out of office and will get back to you soon.",
"then": "then",
"There is nothing to display": "There is nothing to display",
"This draft has been discarded": "This draft has been discarded",
"This folder is empty.": "This folder is empty.",
"This message was scaled down.": "This message was scaled down.",
"This month": "This month",
"This week": "This week",
"This will disable local copy of all users in domain after save. Do you wish to continue?": "This will disable local copy of all users in domain after save. Do you wish to continue?",
"This will remove forwardings of all users in domain after save. Do you wish to continue?": "This will remove forwardings of all users in domain after save. Do you wish to continue?",
"This year": "This year",
"Threads": "Threads",
"To: %s": "To: %s",
"Trash": "Trash",
"Trash is empty": "Trash is empty",
"Unable to download attachment %s": "Unable to download attachment %s",
"Unified Inbox": "Unified Inbox",
"unlimited": "unlimited",
"Unread": "Unread",
"Unstar": "Unstar",
"Updating folder...": "Updating folder...",
"Updating forwardings...": "Updating forwardings...",
"Updating sharing settings...": "Updating sharing settings...",
"Upload": "Upload",
"Upload API": "Upload API",
"Vacation": "Vacation",
"Vacation responder": "Vacation responder",
"Vacation settings": "Vacation settings",
"Vacation settings saved": "Vacation settings saved",
"Vacation stops at": "Vacation stops at",
"View next email": "View next email",
"View previous email": "View previous email",
"Who has access:": "Who has access:",
"With attachments": "With attachments",
"Yesterday": "Yesterday",
"You are not forwarding your email": "You are not forwarding your email",
"You can create rules that will tell OpenPaaS how to handle incoming messages. You choose both the condition that trigger a rule and the actions the rule will take. Rules will run in order shown in the list below, starting with the rule at the top": "You can create rules that will tell OpenPaaS how to handle incoming messages. You choose both the condition that trigger a rule and the actions the rule will take. Rules will run in order shown in the list below, starting with the rule at the top",
"You have been disconnected. Please check if the message was sent before retrying": "You have been disconnected. Please check if the message was sent before retrying",
"You have neither direct messages nor mentions for this account.": "You have neither direct messages nor mentions for this account.",
"You have no mail, have a nice day!": "You have no mail, have a nice day!",
"You're out of storage space and unable to send or receive emails.": "You're out of storage space and unable to send or receive emails.",
"You're out of storage space and will soon be unable to send or receive emails.": "You're out of storage space and will soon be unable to send or receive emails.",
"Your account %s is currently unavailable. You can click to retry": "Your account %s is currently unavailable. You can click to retry",
"Your active filter is too restrictive": "Your active filter is too restrictive",
"Your active filter is too restrictive.": "Your active filter is too restrictive.",
"Your device has lost Internet connection. Try later!": "Your device has lost Internet connection. Try later!",
"Your download has started": "Your download has started",
"Your email should have at least one recipient": "Your email should have at least one recipient",
"Your file is larger than %s. It will be uploaded to %s.": "Your file is larger than %s. It will be uploaded to %s.",
"Your files are larger than %s. They will be uploaded to %s.": "Your files are larger than %s. They will be uploaded to %s.",
"Your message cannot be sent": "Your message cannot be sent",
"Your message is being sent...": "Your message is being sent...",
"Your vacation responder is enabled.": "Your vacation responder is enabled.",
"Your vacation responder stopped on %s": "Your vacation responder stopped on %s",
"Your vacation responder will be activated on %s": "Your vacation responder will be activated on %s",
"Drag files here": "Drag files here",
"Drop files here": "Drop files here",
"Activate JMAP protocol": "Activate JMAP protocol",
"Composer": "Composer",
"Enable attachments in composer": "Enable attachments in composer",
"Forwarding": "Forwarding",
"Allow users to share folders to other users with some roles": "Allow users to share folders to other users with some roles",
"Mobile options": "Mobile options",
"Configure swipe actions to quickly act on emails on the conversation list": "Configure swipe actions to quickly act on emails on the conversation list",
"Unsent emails are saved as draft": "Unsent emails are saved as draft",
"Automatic redirection of incoming emails to another email account": "Automatic redirection of incoming emails to another email account",
"Select multiple emails": "Select multiple emails",
"Search results": "Search results",
"No emails are matching your search": "No emails are matching your search",
"Search in emails": "Search in emails",
"Load failed": "Load failed",
"Allow users to manage their identities": "Allow users to manage their identities",
"Allow users to create or remove identities based on their mail aliases": "Allow users to create or remove identities based on their mail aliases",
"Create a new identity": "Create a new identity",
"Creating identity...": "Creating identity...",
"Identity created": "Identity created",
"Failed to create identity": "Failed to create identity",
"Failed to remove identity": "Failed to remove identity",
"Remove identity": "Remove identity",
"Default identity": "Default identity",
"Can not open identity form": "Can not open identity form",
"default": "default",
"This identity is not usable": "This identity is not usable",
"None": "None",
"A problem occurred while getting data, try refreshing this page!": "A problem occurred while getting data, try refreshing this page!",
"Allow users to choose identity emails from domain aliases": "Allow users to choose identity emails from domain aliases",
"Once enabled, users can choose identity emails not only from their emails but also from domain aliases.": "Once enabled, users can choose identity emails not only from their emails but also from domain aliases."
}
Loading

0 comments on commit 4f0a28c

Please sign in to comment.