testing for i18n problems
This commit is contained in:
		
							parent
							
								
									5c258325c2
								
							
						
					
					
						commit
						a8d22c3cf8
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -29,6 +29,9 @@ exports.handleMessage = function(hook_name, context, callback){ | |||
|           } | ||||
|         }); | ||||
|         console.warn("Settings for ep_email_notifications plugin are missing in settings.json file"); | ||||
| 
 | ||||
|         callback([null]); // don't run onto passing colorId or anything else to the message handler
 | ||||
| 
 | ||||
|       } else if (context.message.data.userInfo){ | ||||
|         if(context.message.data.userInfo.email){ // it contains email
 | ||||
|           console.debug(context.message); | ||||
|  |  | |||
|  | @ -117,11 +117,13 @@ exports.handleClientMessage_emailNotificationGetUserInfo = function (hook, conte | |||
| 
 | ||||
| exports.handleClientMessage_emailNotificationMissingParams = function (hook, context) { // Settings are missing in settings.json file
 | ||||
|   if (context.payload == true) { | ||||
|     var title = window._('ep_email_notifications.titleGritterError'); | ||||
|     var msg = window._('ep_email_notifications.msgParamsMissing'); | ||||
|     $.gritter.add({ | ||||
|       // (string | mandatory) the heading of the notification
 | ||||
|       title: window._('ep_email_notifications.titleGritterError'), | ||||
|       title: title, | ||||
|       // (string | mandatory) the text inside the notification
 | ||||
|       text: window._('ep_email_notifications.msgParamsMissing'), | ||||
|       text: msg, | ||||
|       // (bool | optional) if you want it to fade out on its own or just sit there
 | ||||
|       sticky: true | ||||
|     }); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 quenenni
						quenenni