Sfoglia il codice sorgente

small fixes, enable hindi

Markus-Rost 4 anni fa
parent
commit
3beaf99820
7 ha cambiato i file con 23 aggiunte e 20 eliminazioni
  1. 0 1
      cmds/verify.js
  2. 2 2
      functions/global_block.js
  3. 4 0
      i18n/allLangs.json
  4. 8 8
      i18n/hi.json
  5. 2 2
      i18n/pt-br.json
  6. 6 6
      i18n/ru.json
  7. 1 1
      i18n/th.json

+ 0 - 1
cmds/verify.js

@@ -1,7 +1,6 @@
 const htmlparser = require('htmlparser2');
 const cheerio = require('cheerio');
 const {MessageEmbed} = require('discord.js');
-const {timeoptions} = require('../util/default.json');
 const toTitle = require('../util/wiki.js').toTitle;
 var db = require('../util/database.js');
 

+ 2 - 2
functions/global_block.js

@@ -81,7 +81,7 @@ function global_block(lang, msg, username, text, embed, wiki, spoiler, gender) {
 		msg.edit( spoiler + text + spoiler, {embed,allowedMentions:{parse:[]}} ).catch(log_error);
 	} );
 	else if ( wiki.isGamepedia() ) Promise.all([
-		got.get( 'https://help.gamepedia.com/Special:GlobalBlockList/' + encodeURIComponent( username ) + '?uselang=qqx', {
+		got.get( 'https://wikisandbox.gamepedia.com/Special:GlobalBlockList/' + encodeURIComponent( username ) + '?uselang=qqx', {
 			responseType: 'text'
 		} ).then( response => {
 			var body = response.body;
@@ -120,7 +120,7 @@ function global_block(lang, msg, username, text, embed, wiki, spoiler, gender) {
 		}, error => {
 			console.log( '- Error while getting the global block: ' + error );
 		} ),
-		( isUser ? got.get( 'https://help.gamepedia.com/UserProfile:' + encodeURIComponent( username ), {
+		( isUser ? got.get( 'https://wikisandbox.gamepedia.com/UserProfile:' + encodeURIComponent( username ), {
 			responseType: 'text'
 		} ).then( gresponse => {
 			var gbody = gresponse.body;

+ 4 - 0
i18n/allLangs.json

@@ -4,6 +4,7 @@
 			"en": "English",
 			"de": "Deutsch",
 			"fr": "Français",
+			"hi": "हिन्दी",
 			"nl": "Nederlands",
 			"pl": "Polski",
 			"pt-br": "Português do Brasil",
@@ -22,6 +23,9 @@
 			"fr": "fr",
 			"french": "fr",
 			"français": "fr",
+			"hi": "hi",
+			"hindi": "hi",
+			"हिन्दी": "hi",
 			"nl": "nl",
 			"dutch": "nl",
 			"nederlands": "nl",

+ 8 - 8
i18n/hi.json

@@ -42,7 +42,7 @@
         ],
         "help": [
             "सहायता",
-            " मदद ",
+            "मदद",
             " ",
             " ",
             " "
@@ -77,8 +77,8 @@
         ],
         "random": [
             "रैंडम",
-            "🎲",
-            " बेतरतीब ",
+            "बेतरतीब",
+            " ",
             " ",
             " "
         ],
@@ -98,7 +98,7 @@
         ],
         "user": [
             "यूज़र",
-            " सदस्य ",
+            "सदस्य",
             " ",
             " ",
             " "
@@ -314,7 +314,7 @@
                 "desc": "अगर मैं सक्रीय होता हूँ, मैं जवाब दूँगा। अन्यथा नहीं।"
             },
             "user": {
-                "cmd": "User:<यूज़रनेम>",
+                "cmd": "सदस्य:<यूज़रनेम>",
                 "desc": "मैं सदस्य के बारे में कुछ जानकारी दिखाऊँगा।"
             },
             "verification": {
@@ -543,9 +543,9 @@
             "मानो या न मानो, मैं ज़िंदा हूँ।",
             "मैंने विज्ञान पढ़ा था और मैं अभी भी ज़िंदा हूँ।",
             "मैं ज़िंदा हूँ और यह ज़िन्दगी कितनी सुहानी है।",
-            " हाँ जी, काम तो मैं अभी भी करता हूँ। ",
-            " अरे वाह, मैं अभी भी ज़िंदा हूँ! ",
-            " मैं ज़िंदा हूँ। क्या हुक्म है, मेरे आका? ",
+            "हाँ जी, काम तो मैं अभी भी करता हूँ।",
+            "अरे वाह, मैं अभी भी ज़िंदा हूँ!",
+            "मैं ज़िंदा हूँ। क्या हुक्म है, मेरे आका?",
             " ",
             " ",
             " ",

+ 2 - 2
i18n/pt-br.json

@@ -49,14 +49,14 @@
         ],
         "info": [
             "informação",
-            " informações ",
+            "informações",
             " ",
             " ",
             " "
         ],
         "invite": [
             "convite",
-            " convidar ",
+            "convidar",
             " ",
             " ",
             " "

+ 6 - 6
i18n/ru.json

@@ -28,7 +28,7 @@
         ],
         "diff": [
             "разн",
-            " разница ",
+            "разница",
             " ",
             " ",
             " "
@@ -49,7 +49,7 @@
         ],
         "info": [
             "инфо",
-            " информация ",
+            "информация",
             " ",
             " ",
             " "
@@ -98,14 +98,14 @@
         ],
         "user": [
             "участник",
-            " пользователь ",
-            " участница ",
-            " пользовательница ",
+            "пользователь",
+            "участница",
+            "пользовательница",
             " "
         ],
         "verify": [
             "верификация",
-            " проверить ",
+            "проверить",
             " ",
             " ",
             " "

+ 1 - 1
i18n/th.json

@@ -14,7 +14,7 @@
     "aliases": {
         "bug": [
             "บัก",
-            " บัค ",
+            "บัค",
             " ",
             " ",
             " "