From ca6ff275ff839b9ef76b4a7b707aa0b0a4a8553d Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Tue, 13 Oct 2015 13:19:06 +0200 Subject: [PATCH] error message for removed notices --- js/dom-functions.js | 3 +++ locale/ar.json | 3 ++- locale/ast.json | 3 ++- locale/ca.json | 3 ++- locale/de.json | 3 ++- locale/en.json | 3 ++- locale/eo.json | 3 ++- locale/es.json | 3 ++- locale/es_ahorita.json | 3 ++- locale/eu.json | 3 ++- locale/fa.json | 3 ++- locale/fi.json | 3 ++- locale/fr.json | 3 ++- locale/gl.json | 3 ++- locale/he.json | 3 ++- locale/io.json | 3 ++- locale/it.json | 3 ++- locale/no.json | 3 ++- locale/pt_br.json | 3 ++- locale/sv.json | 3 ++- locale/zh_cn.json | 3 ++- locale/zh_tw.json | 3 ++- 22 files changed, 45 insertions(+), 21 deletions(-) diff --git a/js/dom-functions.js b/js/dom-functions.js index 37474b5..e9ed498 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -675,6 +675,9 @@ function setNewCurrentStream(streamObject,setLocation,fallbackId,actionOnSuccess showErrorMessage(window.sL.ERRORcouldNotFindPage + '

url: ' + url); } } + else if(error.status == 410 && streamObject.name == 'notice') { + showErrorMessage(window.sL.ERRORnoticeRemoved); + } else { showErrorMessage(window.sL.ERRORsomethingWentWrong + '

\ url: ' + url + '

\ diff --git a/locale/ar.json b/locale/ar.json index 646420e..a9ccb29 100644 --- a/locale/ar.json +++ b/locale/ar.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/ast.json b/locale/ast.json index 7656a43..5e74903 100644 --- a/locale/ast.json +++ b/locale/ast.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/ca.json b/locale/ca.json index df6320d..c24d3dd 100644 --- a/locale/ca.json +++ b/locale/ca.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/de.json b/locale/de.json index 621b065..963ddc8 100644 --- a/locale/de.json +++ b/locale/de.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/en.json b/locale/en.json index 6410881..9aff8bb 100644 --- a/locale/en.json +++ b/locale/en.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/eo.json b/locale/eo.json index 689f0aa..02730f2 100644 --- a/locale/eo.json +++ b/locale/eo.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/es.json b/locale/es.json index 859da44..b9886a6 100644 --- a/locale/es.json +++ b/locale/es.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/es_ahorita.json b/locale/es_ahorita.json index 6e36149..fc45a3a 100644 --- a/locale/es_ahorita.json +++ b/locale/es_ahorita.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/eu.json b/locale/eu.json index ff71c4b..9f186a9 100644 --- a/locale/eu.json +++ b/locale/eu.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/fa.json b/locale/fa.json index e41fb09..3dc2c0b 100644 --- a/locale/fa.json +++ b/locale/fa.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/fi.json b/locale/fi.json index c0a19a9..587aa6d 100644 --- a/locale/fi.json +++ b/locale/fi.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/fr.json b/locale/fr.json index 029ac69..1c703e1 100644 --- a/locale/fr.json +++ b/locale/fr.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/gl.json b/locale/gl.json index e1b1a81..7651a6e 100644 --- a/locale/gl.json +++ b/locale/gl.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/he.json b/locale/he.json index 7075aaf..485042d 100644 --- a/locale/he.json +++ b/locale/he.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/io.json b/locale/io.json index 458f369..bf6c070 100644 --- a/locale/io.json +++ b/locale/io.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"Vu mustas esar identifikita por vidar ica diskuto-fluo.", "ERRORcouldNotFindUserWithNickname":"Onu ne povis trovar uzero kun la uzer-nomo \"{nickname}\" en ica servilo.", "ERRORcouldNotFindGroupWithNickname":"Onu ne povis trovar grupo kun la group-nomo \"{nickname}\" en ica servilo.", - "ERRORcouldNotFindPage":"Onu ne povis trovar ica pagino." + "ERRORcouldNotFindPage":"Onu ne povis trovar ica pagino.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/it.json b/locale/it.json index 8983946..535faf4 100644 --- a/locale/it.json +++ b/locale/it.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/no.json b/locale/no.json index 9d05f5c..9758ca8 100644 --- a/locale/no.json +++ b/locale/no.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/pt_br.json b/locale/pt_br.json index e399f30..277b4e6 100644 --- a/locale/pt_br.json +++ b/locale/pt_br.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/sv.json b/locale/sv.json index 6938738..a37bf5f 100644 --- a/locale/sv.json +++ b/locale/sv.json @@ -136,5 +136,6 @@ "ERRORmustBeLoggedIn":"Du måste vara inloggad för att kunna se det här flödet.", "ERRORcouldNotFindUserWithNickname":"Det finns ingen användare med namet \"{nickname}\" på den här servern.", "ERRORcouldNotFindGroupWithNickname":"Det finns ingen grupp med namnet \"{nickname}\" på den här servern.", - "ERRORcouldNotFindPage":"Sidan hittades inte." + "ERRORcouldNotFindPage":"Sidan hittades inte.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/zh_cn.json b/locale/zh_cn.json index 077edd0..c3721ab 100644 --- a/locale/zh_cn.json +++ b/locale/zh_cn.json @@ -135,5 +135,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." } diff --git a/locale/zh_tw.json b/locale/zh_tw.json index 9e9af4d..843df04 100644 --- a/locale/zh_tw.json +++ b/locale/zh_tw.json @@ -135,5 +135,6 @@ "ERRORmustBeLoggedIn":"You must be logged in to view this stream.", "ERRORcouldNotFindUserWithNickname":"Could not find a user with nickname \"{nickname}\" on this server", "ERRORcouldNotFindGroupWithNickname":"Could not find a group with nickname \"{nickname}\" on this server", - "ERRORcouldNotFindPage":"Could not find that page." + "ERRORcouldNotFindPage":"Could not find that page.", + "ERRORnoticeRemoved": "This notice has been removed." }