Преглед на файлове

Fix undefined message issue

Markus-Rost преди 6 години
родител
ревизия
25ec91c787
променени са 8 файла, в които са добавени 16 реда и са изтрити 1 реда
  1. 2 0
      i18n/de.json
  2. 2 0
      i18n/en.json
  3. 2 0
      i18n/fr.json
  4. 2 0
      i18n/nl.json
  5. 2 0
      i18n/pl.json
  6. 2 0
      i18n/pt.json
  7. 2 0
      i18n/tr.json
  8. 2 1
      main.js

+ 2 - 0
i18n/de.json

@@ -119,6 +119,8 @@
 		}
 	},
 	"search": {
+		"page": "seite",
+		"search": "suche",
 		"infopage": "Nicht das richtige Ergebnis? Nutze %s für einen direkten Link.",
 		"infosearch": "Nicht das richtige Ergebnis? Nutze %1$s für einen direkten Link oder %2$s für eine Liste mit allen Treffern.",
 		"category": {

+ 2 - 0
i18n/en.json

@@ -114,6 +114,8 @@
 		}
 	},
 	"search": {
+		"page": "page",
+		"search": "search",
 		"infopage": "Not the correct result? Use %s for a direct link.",
 		"infosearch": "Not the correct result? Use %1$s for a direct link or %2$s for a list of all hits.",
 		"category": {

+ 2 - 0
i18n/fr.json

@@ -117,6 +117,8 @@
 		}
 	},
 	"search": {
+		"page": "page",
+		"search": "chercher",
 		"infopage": "Pas le bon résultat ? Utilisez %s pour un lien direct.",
 		"infosearch": "Pas le bon résultat ? Utilisez %1$s pour un lien direct ou %2$s pour une liste de toutes les correspondances.",
 		"category": {

+ 2 - 0
i18n/nl.json

@@ -117,6 +117,8 @@
 		}
 	},
 	"search": {
+		"page": "pagina",
+		"search": "zoeken",
 		"infopage": "Niet het gewenste resultaat? Gebruik %s voor een rechtstreekse link.",
 		"infosearch": "Niet het gewenste resultaat? Gebruik %1$s voor een rechtstreekse link of %2$s voor een lijst van alle overeenkomsten.",
 		"category": {

+ 2 - 0
i18n/pl.json

@@ -118,6 +118,8 @@
 		}
 	},
 	"search": {
+		"page": "strona",
+		"search": "szukaj",
 		"infopage": "Nie to czego szukałeś? Użyj %s dla bezpośredniego linku.",
 		"infosearch": "Nie to czego szukałeś? Użyj %1$s dla bezpośredniego linku lub %2$s dla listy wszystkich wyników.",
 		"category": {

+ 2 - 0
i18n/pt.json

@@ -124,6 +124,8 @@
 		}
 	},
 	"search": {
+		"page": "página",
+		"search": "pesquisar",
 		"infopage": "Não é o resultado correto? Use %s para um link direto.",
 		"infosearch": "Não é o resultado correto? Use %1$s para um link direto ou %2$s para uma lista de todos os acessos.",
 		"category": {

+ 2 - 0
i18n/tr.json

@@ -119,6 +119,8 @@
 		}
 	},
 	"search": {
+		"page": "sayfa",
+		"search": "arama",
 		"infopage": "Doğru sonucu alamadın mı? Doğrudan bir bağlantı için %s kullan.",
 		"infosearch": "Doğru sonucu alamadın mı? Doğrudan bir bağlantı için %1$s, tüm isabetlerin listesi için %2$s kullan.",
 		"category": {

+ 2 - 1
main.js

@@ -69,8 +69,9 @@ function getSettings() {
 	} );
 }
 
-function setStatus() {
+function setStatus(hardreset) {
 	if ( settings === defaultSettings ) client.user.setStatus('invisible').catch(log_error);
+	else if ( hardreset === true ) client.user.setStatus('invisible').then(setStatus, log_error);
 	else {
 		client.user.setStatus('online').catch(log_error);
 		client.user.setActivity( process.env.prefix + ' help' ).catch(log_error);