Revision as of 17:30, October 18, 2017 by Bfriend (talk | contribs) (Usage)
Jump to: navigation, search

Localization

Important
For information on how to setup localization, please refer to the Localization Guide

Usage

'sendmessage' namespace should be used when defining localization strings for SendMessage plugin in your i18n JSON file.

In the example below, we demonstrate defining new strings for the "en" (English) language. You may use any language codes you wish; there is no standard format. When selecting the active language in your configuration, you must match one of the language codes defined in your i18n JSON file.

Example JSON Language Definition

{
	"language_code": {
		"sendmessage": {
			"title": "Send Message",
			"SendMessageButton": "Send Message",
			"EmailOk": "OK",
			"EmailFormPlaceholderFirstName": "Required",
			"EmailFormPlaceholderLastName": "Required",
			"EmailFormPlaceholderEmail": "Required",
			"EmailFormPlaceholderSubject": "Required",
			"EmailFormPlaceholderTypetexthere": "Type your message here...",
			"EmailFormFirstName": "First Name",
			"EmailFormLastName": "Last Name",
			"EmailFormEmail": "Email",
			"EmailFormSubject": "Subject",
			"EmailFormAttachfiles": "Attach files",
			"EmailFormSend": "Send",
			"ConfirmCloseWindow": "Are you sure you want to close the <%GenesysWidget%> widget?",
			"SendMsgFormCancel": "Cancel",
			"SendMsgFormClose": "Close",
			"Errors": {
				"102": "First Name required",
				"103": "Last Name required",
				"104": "Subject required",
				"181": "Email address required",
				"182": "Message text content required",
				"connectionError": "Unable to reach server. Please try again.",
				"unknowError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
				"attachmentsLimit": "Total number of attachments exceeds limit: ",
				"attachmentsSize": "Total size of attachments exceeds limit: ",
				"invalidFileType": "Unsupported file type. Please upload images, PDFs, text files and ZIPs.",
				"invalidFromEmail": "Invalid email - From address.",
				"invalidMailbox": "Invalid email - To address."
			}
		}
	}
}
Comments or questions about this documentation? Contact us for support!