Updated error messages.

This commit is contained in:
Ajay Ramachandran
2019-11-28 18:03:33 -05:00
parent 524df6389a
commit 381c11ed99
8 changed files with 8 additions and 20 deletions

View File

@@ -24,9 +24,6 @@
"409": { "409": {
"message": "This has already been submitted before" "message": "This has already been submitted before"
}, },
"502": {
"message": "It seems the server is down. Contact the dev to inform them."
},
"channelWhitelisted": { "channelWhitelisted": {
"message": "Channel Whitelisted!" "message": "Channel Whitelisted!"
}, },
@@ -272,5 +269,11 @@
"yourWork": { "yourWork": {
"message": "Your Work", "message": "Your Work",
"description": "Used to describe the section that will show you the statistics from your submissions." "description": "Used to describe the section that will show you the statistics from your submissions."
},
"502": {
"message": "The server seems to be overloaded. Try again in a few seconds."
},
"errorCode": {
"message": "Error Code: "
} }
} }

View File

@@ -24,9 +24,6 @@
"409": { "409": {
"message": "Déja soumis" "message": "Déja soumis"
}, },
"502": {
"message": "Le serveur ne fonctionne pas. Contactez le développeur."
},
"channelWhitelisted": { "channelWhitelisted": {
"message": "Cette chaîne est sur la liste blanche !" "message": "Cette chaîne est sur la liste blanche !"
}, },

View File

@@ -24,9 +24,6 @@
"409": { "409": {
"message": "Questo spezzone è già stato inviato" "message": "Questo spezzone è già stato inviato"
}, },
"502": {
"message": "Sembra che il server non funzioni. Contatta lo sviluppatore."
},
"channelWhitelisted": { "channelWhitelisted": {
"message": "Canale aggiunto alla whitelist!" "message": "Canale aggiunto alla whitelist!"
}, },

View File

@@ -24,9 +24,6 @@
"409": { "409": {
"message": "Isso já foi enviado antes" "message": "Isso já foi enviado antes"
}, },
"502": {
"message": "Parece que o servidor caiu. Contate o desenvolvedor para informá-los."
},
"channelWhitelisted": { "channelWhitelisted": {
"message": "Canal adicionado à lista branca!" "message": "Canal adicionado à lista branca!"
}, },

View File

@@ -24,9 +24,6 @@
"409": { "409": {
"message": "Isso já foi enviado antes" "message": "Isso já foi enviado antes"
}, },
"502": {
"message": "Parece que o servidor caiu. Contacte o desenvolvedor para o informar."
},
"channelWhitelisted": { "channelWhitelisted": {
"message": "Canal adicionado à whitelist!" "message": "Canal adicionado à whitelist!"
}, },

View File

@@ -24,9 +24,6 @@
"409": { "409": {
"message": "Этот запрос был отправлен ранее." "message": "Этот запрос был отправлен ранее."
}, },
"502": {
"message": "Сервер недоступен. Свяжитесь с разработчиком и сообщите ему об этом."
},
"channelWhitelisted": { "channelWhitelisted": {
"message": "Канал добавлен в белый список!" "message": "Канал добавлен в белый список!"
}, },

View File

@@ -1048,7 +1048,7 @@ function sendSubmitMessage(){
//treat them the same //treat them the same
if (response.statusCode == 503) response.statusCode = 502; if (response.statusCode == 503) response.statusCode = 502;
alert(chrome.i18n.getMessage(response.statusCode + "")); alert(chrome.i18n.getMessage(response.statusCode + "") + " " + chrome.i18n.getMessage("errorCode") + response.statusCode);
} else { } else {
alert(chrome.i18n.getMessage("connectionError") + response.statusCode); alert(chrome.i18n.getMessage("connectionError") + response.statusCode);
} }

View File

@@ -830,7 +830,7 @@ function runThePopup() {
//treat them the same //treat them the same
if (response.statusCode == 503) response.statusCode = 502; if (response.statusCode == 503) response.statusCode = 502;
errorMessage = chrome.i18n.getMessage(response.statusCode + ""); errorMessage = chrome.i18n.getMessage(response.statusCode + "") + " " + chrome.i18n.getMessage("errorCode") + response.statusCode;
} else { } else {
errorMessage = chrome.i18n.getMessage("connectionError") + response.statusCode; errorMessage = chrome.i18n.getMessage("connectionError") + response.statusCode;
} }