Browse Source

update translations

Markus-Rost 5 years ago
parent
commit
3136b7a309
3 changed files with 31 additions and 29 deletions
  1. 8 8
      bot.js
  2. 19 19
      i18n/pl.json
  3. 4 2
      i18n/zh.json

+ 8 - 8
bot.js

@@ -3,13 +3,18 @@ const util = require('util');
 util.inspect.defaultOptions = {compact:false,breakLength:Infinity};
 
 var isDebug = ( process.argv[2] === 'debug' );
-global.shardId = null;
 var ready = {
 	patreons: false,
 	voice: false,
 	allSites: true
 }
 
+global.shardId = null;
+process.on( 'message', message => {
+	if ( !message.shard ) return;
+	shardId = message.shard.id;
+} );
+
 const Discord = require('discord.js');
 const got = require('got').extend( {
 	throwHttpErrors: false,
@@ -2159,8 +2164,8 @@ function cmd_verification(lang, msg, args, line, wiki) {
 			if ( showCommands ) verification_text += '\n`' + prefix + ' verification ' + row.configid + ' usergroup ' + lang.verification.new_usergroup + '`\n';
 			verification_text += '\n' + lang.verification.accountage + ' `' + accountage + '` ' + lang.verification.indays;
 			if ( showCommands ) verification_text += '\n`' + prefix + ' verification ' + row.configid + ' accountage ' + lang.verification.new_accountage + '`\n';
-			verification_text += '\n' + lang.verification.rename + ' *`' + ( rename ? lang.verification.enabled : lang.verification.disabled ) + '`* ' + lang.verification.toggle;
-			if ( showCommands ) verification_text += '\n`' + prefix + ' verification ' + row.configid + ' rename`\n';
+			verification_text += '\n' + lang.verification.rename + ' *`' + ( rename ? lang.verification.enabled : lang.verification.disabled ) + '`*';
+			if ( showCommands ) verification_text += ' ' + lang.verification.toggle + '\n`' + prefix + ' verification ' + row.configid + ' rename`\n';
 			if ( !hideNotice && rename && !msg.guild.me.permissions.has('MANAGE_NICKNAMES') ) {
 				verification_text += '\n\n' + lang.verification.rename_no_permission.replaceSave( '%s', msg.guild.me.toString() );
 			}
@@ -6255,11 +6260,6 @@ function removeSettings() {
 }
 
 
-process.on( 'message', message => {
-	if ( !message.shard ) return;
-	shardId = message.shard.id;
-} );
-
 client.on( 'error', error => log_error(error, true) );
 client.on( 'warn', warning => log_warn(warning, false) );
 

+ 19 - 19
i18n/pl.json

@@ -99,11 +99,11 @@
 		"and": "oraz",
 		"accountage": "Wiek konta:",
 		"indays": "(w dniach)",
-		"rename": "Change nickname:",
-		"enabled": "enabled",
-		"disabled": "disabled",
-		"toggle": "(toggle)",
-		"rename_no_permission": "**%s is missing the `Manage Nicknames` permission to force wiki usernames!**",
+		"rename": "Zmień nazwę użytkownika:",
+		"enabled": "włączone",
+		"disabled": "wyłączone",
+		"toggle": "(przełącz)",
+		"rename_no_permission": "**%s wymaga uprawnienia `Zarządzanie pseudonimami` do zmiany nazw użytkowników na wiki!**",
 		"role_too_high": "**Rola %1$s jest wyżej niż najwyższa rola %2$s, dlatego nie będzie możliwe jej ustawienie!**",
 		"channel_max": "podano zbyt dużo kanałów.",
 		"channel_missing": "podany kanał nie istnieje.",
@@ -126,7 +126,7 @@
 		"footer": "Weryfikacja konta wiki",
 		"failed_gblock": "**Sprawdzenie globalnych blokad nie powiodło się!**",
 		"failed_roles": "**Dodawanie ról nie powiodło się!**",
-		"failed_rename": "**Changing the nickname failed!**",
+		"failed_rename": "**Zmiana nazwy użytkownika nie powiodła się!**",
 		"audit_reason": "Zweryfikowano jako \"%s\"",
 		"user_missing": "Użytkownik wiki \"%s\" nie istnieje.",
 		"user_missing_reply": "konto zalinkowanego użytkownika wiki \"%s\" nie istnieje.",
@@ -142,7 +142,7 @@
 		"user_matches_reply": "Twoja nazwa użytkownika Discord pokrywa się z nazwą użytkownika z wiki \"%s\", lecz nie kwalifikuje na żadną rolę.",
 		"user_verified": "Pomyślnie zweryfikowano użytkownika Discord %1$s jako użytkownika wiki %2$s.",
 		"user_verified_reply": "pomyślnie zweryfikowano Ciebie jako użytkownika wiki \"%s\".",
-		"user_renamed": "Their Discord nickname has been changed to their wiki username.",
+		"user_renamed": "Nazwa użytkownika Discord została zmieniona.",
 		"discord": "Użytkownik Discord:",
 		"wiki": "Użytkownik Wiki:",
 		"empty": "*puste*",
@@ -152,7 +152,7 @@
 		"help_guide": "Podążaj za [tym poradnikiem](%s) w celu dodania nazwy użytkownika Discord na profil wiki.",
 		"help_gamepedia": "https://help-pl.gamepedia.com/Discord",
 		"help_fandom": "https://community.fandom.com/wiki/Special:VerifyUser",
-		"help_subpage": "Please add your Discord tag (%s) to your Discord subpage on the wiki:"
+		"help_subpage": "Dodaj swoją nazwę użytkownika Discord (%s) do podstrony Discord na wiki:"
 	},
 	"overview": {
 		"inaccurate": "Statystyki mogą być niedokładne",
@@ -386,17 +386,17 @@
 			{ "cmd": "settings inline toggle", "desc": "Włączę/wyłącze linkowanie z użyciem składni wiki.", "hide": true, "admin": true },
 			{ "cmd": "settings wiki <wiki>", "desc": "Zmienię domyślną wiki tego serwera.", "hide": true, "admin": true },
 			{ "cmd": "settings channel", "desc": "Utworzę ustawienia specjalne dla danego kanału.", "hide": true, "admin": true },
-			{ "cmd": "verify <wiki username>", "desc": "Use this command to verify your Discord account with your wiki account and get roles matching your wiki account.", "hide": true },
-			{ "cmd": "verification", "desc": "I will change the wiki verifications used by the `@prefix verify` command.", "admin": true, "pause": true },
-			{ "cmd": "help verification", "desc": "I will explain in more detail how the verification command works.", "unsearchable": true, "admin": true },
-			{ "cmd": "verification add <role>", "desc": "I will add a new wiki verification. Accepts a `|` separated list.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> channel <new channel>", "desc": "I will update the channel for the wiki verification. Accepts a `|` separated list.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> role <new role>", "desc": "I will update the role for the wiki verification. Accepts a `|` separated list.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> editcount <new edit count>", "desc": "I will update the minimal edit count for the wiki verification.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> usergroup <new user group>", "desc": "I will update the user group for the wiki verification. Accepts a `|` separated list.\n\t• Provide `AND` as the first list entry to make all provided user groups required.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> accountage <new account age>", "desc": "I will update the minimal account age (in days) for the wiki verification.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> rename", "desc": "I will change if the users Discord nickname should be changed to their wiki username for the wiki verification.", "hide": true, "admin": true },
-			{ "cmd": "verification <id> delete", "desc": "I will delete the wiki verification.", "hide": true, "admin": true },
+			{ "cmd": "verify <nazwa użytkownika na wiki>", "desc": "Użyj tej komendy do weryfikacji konta Discord kontem na wiki, oraz zdobycia ról odpowiednich dla Twojego konta na wiki.", "hide": true },
+			{ "cmd": "verification", "desc": "Zmienię weryfikację używaną przez komendę `@prefix verify`.", "admin": true, "pause": true },
+			{ "cmd": "help verification", "desc": "Szczegółowo wyjaśnię działanie komendy verify.", "unsearchable": true, "admin": true },
+			{ "cmd": "verification add <rola>", "desc": "Dodam nową weryfikację konta na wiki. Lista ról może być sparowana znakiem `|`.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> channel <nowy kanał>", "desc": "Zmienię kanał dla weryfikacji. Lista kanałów może być sparowana znakiem `|`.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> role <nowa rola>", "desc": "Zmienię dodawane role dla weryfikacji. Lista ról może być sparowana znakiem `|`.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> editcount <nowa ilość edycji>", "desc": "Zmienię minimalną wymaganą ilość edycji dla weryfikacji.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> usergroup <nowa grupa użytkowników>", "desc": "Zmienię grupy użytkowników wymagane dla weryfikacji. Lista grup może być separowana znakiem `|`.\n\t• Użyj `AND` jako pierwszy wpis w liście grup aby wszystkie podane grupy użytkowników były wymagane do weryfikacji.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> accountage <nowy wiek konta>", "desc": "Zmienię minimalny wiek konta (w dniach) dla weryfikacji wiki.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> rename", "desc": "Dopasuję nazwę użytkownika na Discordzie do nazwy użytkownika na wiki.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> delete", "desc": "Usunę weryfikację.", "hide": true, "admin": true },
 			{ "cmd": "voice", "desc": "Nadaję każdej osobie w kanale głosowym specjalną rolę.", "admin": true, "pause": true },
 			{ "cmd": "pause @mention", "desc": "Od teraz będę ignorował większość komend na tym serwerze z wyjątkiem paru, administracyjnych komend.", "admin": true },
 			{ "cmd": "pause @mention", "desc": "Ponownie będę odpowiadał na wszystkie komendy na tym serwerze.", "unsearchable": true, "hide": true, "pause": true },

+ 4 - 2
i18n/zh.json

@@ -9,6 +9,7 @@
 		"🎲": "random",
 		"页面": "page",
 		"搜索": "search",
+		"验证": "verify",
 		"discussions": "discussion"
 	},
 	"prefix": "此伺服器的命令前缀是 `%s`。你可以使用 `%s settings prefix` 更改前缀。关于全部命令,请见 `%s help`。",
@@ -346,8 +347,9 @@
 			{ "cmd": "settings inline toggle", "desc": "我将更改本伺服器的行内指令启用情况。", "hide": true, "admin": true },
 			{ "cmd": "settings wiki <wiki>", "desc": "我将更改本伺服器的默认wiki。", "hide": true, "admin": true },
 			{ "cmd": "settings channel", "desc": "我将更改本伺服器的当前频道的覆盖设置。", "hide": true, "admin": true },
+			{ "cmd": "验证 <wiki用户名>", "desc": "使用此命令以验证您的Discord账户和您的wiki账户,并获取您的wiki账户对应的身份组。", "hide": true },
 			{ "cmd": "verify <wiki用户名>", "desc": "使用此命令以验证您的Discord账户和您的wiki账户,并获取您的wiki账户对应的身份组。", "hide": true },
-			{ "cmd": "verification", "desc": "我将更改由 `@prefix verify` 触发的wiki验证方式命令。", "admin": true, "pause": true },
+			{ "cmd": "verification", "desc": "我将更改由 `@prefix 验证` 触发的wiki验证方式命令。", "admin": true, "pause": true },
 			{ "cmd": "help verification", "desc": "我将详细解释验证命令如何工作。", "unsearchable": true, "admin": true },
 			{ "cmd": "verification add <身份组>", "desc": "我将添加一个新的验证方式。可用 `|` 来分割多个身份组组。", "hide": true, "admin": true },
 			{ "cmd": "verification <id> channel <新频道>", "desc": "我将更改适用于本验证方式的频道。可用 `|` 来分割多个频道。", "hide": true, "admin": true },
@@ -355,7 +357,7 @@
 			{ "cmd": "verification <id> editcount <新编辑数>", "desc": "我将更改验证方式的最小编辑数。", "hide": true, "admin": true },
 			{ "cmd": "verification <id> usergroup <新wiki用户组>", "desc": "我将更改此验证方式的wiki用户组。可用 `|` 来分割多个用户组。\n\t• 以 `AND` 关键词作为开头可限制必须拥有下列全部用户组。", "hide": true, "admin": true },
 			{ "cmd": "verification <id> accountage <新账户注册时长>", "desc": "我将更改此验证方式的最小注册时长(以天为计数)。", "hide": true, "admin": true },
-			{ "cmd": "verification <id> rename", "desc": "I will change if the users Discord nickname should be changed to their wiki username for the wiki verification.", "hide": true, "admin": true },
+			{ "cmd": "verification <id> rename", "desc": "在验证时,若需要,我将会将用户的Discord昵称改为wiki用户名。", "hide": true, "admin": true },
 			{ "cmd": "verification <id> delete", "desc": "我将删除此验证方式。", "hide": true, "admin": true },
 			{ "cmd": "voice", "desc": "我将尝试给予每个在这个语音频道的用户一个特定的身份组。", "admin": true, "pause": true },
 			{ "cmd": "pause @mention", "desc": "我将屏蔽少数管理指令外的全部指令", "admin": true },