2020-10-20 23:25:34 +02:00
/ * *
* @ name EditServers
2021-03-05 13:26:41 +01:00
* @ author DevilBro
2020-10-20 23:25:34 +02:00
* @ authorId 278543574059057154
2021-06-12 17:16:39 +02:00
* @ version 2.3 . 3
2021-03-05 13:26:41 +01:00
* @ description Allows you to locally edit Servers
2020-10-20 23:25:34 +02:00
* @ invite Jx3TjNS
2020-11-19 16:45:36 +01:00
* @ donate https : //www.paypal.me/MircoWittrien
* @ patreon https : //www.patreon.com/MircoWittrien
2021-03-09 15:10:55 +01:00
* @ website https : //mwittrien.github.io/
* @ source https : //github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EditServers/
2021-03-10 09:17:37 +01:00
* @ updateUrl https : //mwittrien.github.io/BetterDiscordAddons/Plugins/EditServers/EditServers.plugin.js
2020-10-20 23:25:34 +02:00
* /
2018-10-11 10:21:26 +02:00
2020-09-19 20:49:33 +02:00
module . exports = ( _ => {
2020-10-09 21:09:35 +02:00
const config = {
2020-09-19 20:49:33 +02:00
"info" : {
"name" : "EditServers" ,
"author" : "DevilBro" ,
2021-06-12 17:16:39 +02:00
"version" : "2.3.3" ,
2021-03-04 12:15:46 +01:00
"description" : "Allows you to locally edit Servers"
2021-06-12 17:16:39 +02:00
} ,
"changeLog" : {
"fixed" : {
"Invite Icon" : "Fixed Icon being squashed for non squarish icons"
}
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
} ;
2020-10-29 17:51:46 +01:00
2021-06-15 13:42:02 +02:00
return ( window . Lightcord || window . LightCord ) ? class {
getName ( ) { return config . info . name ; }
getAuthor ( ) { return config . info . author ; }
getVersion ( ) { return config . info . version ; }
getDescription ( ) { return "Do not use LightCord!" ; }
load ( ) { BdApi . alert ( "Attention!" , "By using LightCord you are risking your Discord Account, due to using a 3rd Party Client. Switch to an official Discord Client (https://discord.com/) with the proper BD Injection (https://betterdiscord.app/)" ) ; }
start ( ) { }
stop ( ) { }
} : ! window . BDFDB _Global || ( ! window . BDFDB _Global . loaded && ! window . BDFDB _Global . started ) ? class {
2021-01-06 12:38:36 +01:00
getName ( ) { return config . info . name ; }
getAuthor ( ) { return config . info . author ; }
getVersion ( ) { return config . info . version ; }
2021-02-01 17:13:13 +01:00
getDescription ( ) { return ` The Library Plugin needed for ${ config . info . name } is missing. Open the Plugin Settings to download it. \n \n ${ config . info . description } ` ; }
downloadLibrary ( ) {
require ( "request" ) . get ( "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js" , ( e , r , b ) => {
2021-03-05 13:14:18 +01:00
if ( ! e && b && r . statusCode == 200 ) require ( "fs" ) . writeFile ( require ( "path" ) . join ( BdApi . Plugins . folder , "0BDFDB.plugin.js" ) , b , _ => BdApi . showToast ( "Finished downloading BDFDB Library" , { type : "success" } ) ) ;
2021-03-06 14:59:48 +01:00
else BdApi . alert ( "Error" , "Could not download BDFDB Library Plugin. Try again later or download it manually from GitHub: https://mwittrien.github.io/downloader/?library" ) ;
2021-02-01 17:13:13 +01:00
} ) ;
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
load ( ) {
2020-11-19 16:51:14 +01:00
if ( ! window . BDFDB _Global || ! Array . isArray ( window . BDFDB _Global . pluginQueue ) ) window . BDFDB _Global = Object . assign ( { } , window . BDFDB _Global , { pluginQueue : [ ] } ) ;
2020-09-19 20:49:33 +02:00
if ( ! window . BDFDB _Global . downloadModal ) {
window . BDFDB _Global . downloadModal = true ;
2021-01-14 16:14:44 +01:00
BdApi . showConfirmationModal ( "Library Missing" , ` The Library Plugin needed for ${ config . info . name } is missing. Please click "Download Now" to install it. ` , {
2020-09-19 20:49:33 +02:00
confirmText : "Download Now" ,
cancelText : "Cancel" ,
onCancel : _ => { delete window . BDFDB _Global . downloadModal ; } ,
2020-09-20 08:15:13 +02:00
onConfirm : _ => {
delete window . BDFDB _Global . downloadModal ;
2021-02-01 17:13:13 +01:00
this . downloadLibrary ( ) ;
2020-09-20 08:15:13 +02:00
}
2020-09-19 20:49:33 +02:00
} ) ;
}
if ( ! window . BDFDB _Global . pluginQueue . includes ( config . info . name ) ) window . BDFDB _Global . pluginQueue . push ( config . info . name ) ;
2020-10-09 21:09:35 +02:00
}
2021-01-06 12:38:36 +01:00
start ( ) { this . load ( ) ; }
stop ( ) { }
getSettingsPanel ( ) {
2020-11-28 23:12:09 +01:00
let template = document . createElement ( "template" ) ;
2021-01-14 16:14:44 +01:00
template . innerHTML = ` <div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${ config . info . name } is missing. \n Please click <a style="font-weight: 500;">Download Now</a> to install it.</div> ` ;
2021-02-01 17:13:13 +01:00
template . content . firstElementChild . querySelector ( "a" ) . addEventListener ( "click" , this . downloadLibrary ) ;
2020-11-28 23:12:09 +01:00
return template . content . firstElementChild ;
}
2020-10-09 21:09:35 +02:00
} : ( ( [ Plugin , BDFDB ] ) => {
2021-05-07 14:23:52 +02:00
var changedGuilds = { } ;
2020-09-19 20:49:33 +02:00
2020-10-09 21:09:35 +02:00
return class EditServers extends Plugin {
2021-01-06 12:38:36 +01:00
onLoad ( ) {
2020-09-19 20:49:33 +02:00
this . defaults = {
2021-05-07 14:23:52 +02:00
general : {
addOriginalTooltip : { value : true , description : "Hovering over a changed Server Header shows the original Name as Tooltip" } ,
} ,
places : {
guildList : { value : true , description : "Server List" } ,
guildHeader : { value : true , description : "Server Header" } ,
guildInvites : { value : true , description : "Server Invites" } ,
chat : { value : true , description : "Chat (Welcome Message, etc.)" } ,
mutualGuilds : { value : true , description : "Mutual Servers" } ,
recentMentions : { value : true , description : "Recent Mentions Popout" } ,
quickSwitcher : { value : true , description : "Quick Switcher" }
2020-09-19 20:49:33 +02:00
}
} ;
2020-02-04 08:20:40 +01:00
2020-09-19 20:49:33 +02:00
this . patchedModules = {
before : {
Guild : "render" ,
GuildIconWrapper : "render" ,
2021-06-09 21:43:27 +02:00
MutualGuilds : "default" ,
2020-09-19 20:49:33 +02:00
QuickSwitcher : "render" ,
QuickSwitchChannelResult : "render" ,
GuildSidebar : "render" ,
GuildHeader : "render" ,
InviteGuildName : "GuildName"
} ,
after : {
RecentsChannelHeader : "default" ,
Guild : "render" ,
BlobMask : "render" ,
GuildIconWrapper : "render" ,
GuildIcon : "render" ,
2021-05-07 14:23:52 +02:00
NavItem : "default" ,
2020-10-29 17:51:46 +01:00
GuildHeader : "render" ,
WelcomeArea : "default"
2020-09-19 20:49:33 +02:00
}
} ;
this . patchPriority = 7 ;
2021-06-12 17:16:39 +02:00
this . css = `
$ { BDFDB . dotCN . inviteguildicon } {
background - size : cover ;
2021-06-30 15:11:47 +02:00
object - fit : cover ;
2021-06-12 17:16:39 +02:00
}
` ;
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
2021-06-12 17:16:39 +02:00
onStart ( ) {
2020-11-19 16:51:14 +01:00
BDFDB . PatchUtils . patch ( this , BDFDB . LibraryModules . IconUtils , "getGuildBannerURL" , { instead : e => {
2020-02-04 08:20:40 +01:00
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( e . methodArguments [ 0 ] . id ) ;
if ( guild ) {
if ( e . methodArguments [ 0 ] . id == "410787888507256842" ) return guild . banner ;
2020-06-08 20:55:34 +02:00
let data = changedGuilds [ guild . id ] ;
2020-02-04 08:20:40 +01:00
if ( data && data . banner && ! data . removeBanner ) return data . banner ;
}
return e . callOriginalMethod ( ) ;
} } ) ;
2019-12-01 18:25:43 +01:00
2020-09-11 19:31:36 +02:00
BDFDB . PatchUtils . patch ( this , BDFDB . LibraryComponents . GuildComponents . Guild . prototype , "render" , {
2020-11-19 16:51:14 +01:00
before : e => { this . processGuild ( { instance : e . thisObject , returnvalue : e . returnValue , methodname : "render" } ) ; } ,
after : e => { this . processGuild ( { instance : e . thisObject , returnvalue : e . returnValue , methodname : "render" } ) ; }
2020-02-04 08:20:40 +01:00
} ) ;
2020-06-08 20:55:34 +02:00
this . forceUpdateAll ( ) ;
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStop ( ) {
2020-06-08 20:55:34 +02:00
this . forceUpdateAll ( ) ;
2020-09-19 20:49:33 +02:00
}
2019-10-22 11:37:23 +02:00
2020-09-19 20:49:33 +02:00
getSettingsPanel ( collapseStates = { } ) {
2021-05-07 14:23:52 +02:00
let settingsPanel ;
return settingsPanel = BDFDB . PluginUtils . createSettingsPanel ( this , {
collapseStates : collapseStates ,
children : _ => {
let settingsItems = [ ] ;
settingsItems . push ( Object . keys ( this . defaults . general ) . map ( key => BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
type : "Switch" ,
plugin : this ,
keys : [ "general" , key ] ,
label : this . defaults . general [ key ] . description ,
value : this . settings . general [ key ]
} ) ) ) ;
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsPanelList , {
title : "Change Servers in:" ,
children : Object . keys ( this . defaults . places ) . map ( key => BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
type : "Switch" ,
plugin : this ,
keys : [ "places" , key ] ,
label : this . defaults . places [ key ] . description ,
value : this . settings . places [ key ]
} ) )
} ) ) ;
settingsItems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
type : "Button" ,
color : BDFDB . LibraryComponents . Button . Colors . RED ,
label : "Reset all Servers" ,
onClick : _ => BDFDB . ModalUtils . confirm ( this , this . labels . confirm _resetall , _ => {
BDFDB . DataUtils . remove ( this , "servers" ) ;
this . forceUpdateAll ( ) ; ;
} ) ,
children : BDFDB . LanguageUtils . LanguageStrings . RESET
2021-05-10 09:10:56 +02:00
} ) ) ;
2021-05-10 03:35:43 +02:00
return settingsItems ;
2021-05-07 14:23:52 +02:00
}
} ) ;
2019-03-14 14:06:14 +01:00
}
2018-10-11 10:21:26 +02:00
2021-01-06 12:38:36 +01:00
onSettingsClosed ( ) {
2020-09-19 20:49:33 +02:00
if ( this . SettingsUpdated ) {
delete this . SettingsUpdated ;
this . forceUpdateAll ( ) ;
}
}
2020-02-04 08:20:40 +01:00
2021-01-06 12:38:36 +01:00
forceUpdateAll ( ) {
2020-09-19 20:49:33 +02:00
changedGuilds = BDFDB . DataUtils . load ( this , "servers" ) ;
BDFDB . PatchUtils . forceAllUpdates ( this ) ;
}
onGuildContextMenu ( e ) {
if ( e . instance . props . guild ) {
let [ children , index ] = BDFDB . ContextMenuUtils . findItem ( e . returnvalue , { id : "devmode-copy-id" , group : true } ) ;
children . splice ( index > - 1 ? index : children . length , 0 , BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuGroup , {
children : BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuItem , {
2020-12-21 19:56:36 +01:00
label : this . labels . context _localserversettings ,
2020-09-19 20:49:33 +02:00
id : BDFDB . ContextMenuUtils . createItemId ( this . name , "settings-submenu" ) ,
children : BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuGroup , {
children : [
BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuItem , {
2020-12-21 19:56:36 +01:00
label : this . labels . submenu _serversettings ,
2020-09-19 20:49:33 +02:00
id : BDFDB . ContextMenuUtils . createItemId ( this . name , "settings-change" ) ,
2021-05-07 14:23:52 +02:00
action : _ => this . openGuildSettingsModal ( e . instance . props . guild . id )
2020-09-19 20:49:33 +02:00
} ) ,
BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuItem , {
2020-12-21 19:56:36 +01:00
label : this . labels . submenu _resetsettings ,
2020-09-19 20:49:33 +02:00
id : BDFDB . ContextMenuUtils . createItemId ( this . name , "settings-reset" ) ,
2020-12-22 20:38:51 +01:00
color : BDFDB . LibraryComponents . MenuItems . Colors . DANGER ,
2020-09-19 20:49:33 +02:00
disabled : ! changedGuilds [ e . instance . props . guild . id ] ,
2020-12-22 20:38:51 +01:00
action : event => {
let remove = _ => {
BDFDB . DataUtils . remove ( this , "servers" , e . instance . props . guild . id ) ;
this . forceUpdateAll ( true ) ;
} ;
if ( event . shiftKey ) remove ( ) ;
else BDFDB . ModalUtils . confirm ( this , this . labels . confirm _reset , remove ) ;
2020-09-19 20:49:33 +02:00
}
} )
]
} )
2020-02-04 08:20:40 +01:00
} )
2020-09-19 20:49:33 +02:00
} ) ) ;
}
2020-02-04 08:20:40 +01:00
}
2019-09-04 12:34:02 +02:00
2020-09-19 20:49:33 +02:00
processGuild ( e ) {
2021-05-07 14:23:52 +02:00
if ( BDFDB . GuildUtils . is ( e . instance . props . guild ) && e . instance . props . guild . joinedAt && this . settings . places . guildList ) {
2020-09-19 20:49:33 +02:00
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
if ( e . returnvalue ) {
let data = changedGuilds [ e . instance . props . guild . id ] ;
if ( data && ( data . color3 || data . color4 ) ) {
let [ children , index ] = BDFDB . ReactUtils . findParent ( e . returnvalue , { name : [ "GuildTooltip" , "BDFDB_TooltipContainer" ] } ) ;
if ( index > - 1 ) children [ index ] = BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TooltipContainer , {
tooltipConfig : {
type : "right" ,
guild : e . instance . props . guild ,
list : true ,
offset : 12 ,
backgroundColor : data . color3 ,
fontColor : data . color4
} ,
children : children [ index ] . props . children
} ) ;
}
2020-02-04 08:20:40 +01:00
}
2019-12-01 18:25:43 +01:00
}
}
2019-09-04 12:34:02 +02:00
2020-09-19 20:49:33 +02:00
processBlobMask ( e ) {
2021-05-07 14:23:52 +02:00
if ( this . settings . places . guildList ) {
2020-09-19 20:49:33 +02:00
let [ children , index ] = BDFDB . ReactUtils . findParent ( e . returnvalue , { name : "NavItem" } ) ;
if ( index > - 1 && children [ index ] . props . to && children [ index ] . props . to . pathname ) {
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( ( children [ index ] . props . to . pathname . split ( "/channels/" ) [ 1 ] || "" ) . split ( "/" ) [ 0 ] ) ;
if ( guild ) {
let data = changedGuilds [ guild . id ] ;
if ( data ) {
if ( data . shortName ) children [ index ] . props . name = data . shortName . split ( "" ) . join ( " " ) ;
else if ( data . name && data . ignoreCustomName ) children [ index ] . props . name = guild . name ;
}
2020-02-04 08:20:40 +01:00
}
2019-12-02 14:16:56 +01:00
}
}
2019-12-01 18:25:43 +01:00
}
2020-09-19 20:49:33 +02:00
processGuildIconWrapper ( e ) {
2020-09-23 09:01:08 +02:00
if ( BDFDB . GuildUtils . is ( e . instance . props . guild ) && e . instance . props . guild . joinedAt ) {
2021-05-07 14:23:52 +02:00
if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . guildfolderguildicon ) > - 1 ) e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id , this . settings . places . guildList ) ;
else if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . listavatar ) > - 1 ) e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id , this . settings . places . mutualGuilds ) ;
2020-09-19 20:49:33 +02:00
else e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
}
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
processGuildIcon ( e ) {
2020-09-23 09:01:08 +02:00
if ( BDFDB . GuildUtils . is ( e . instance . props . guild ) && e . instance . props . guild . joinedAt && e . instance . props . style && ( ! e . instance . props . style . backgroundImage || e . instance . props . style . backgroundImage == "none" ) ) {
2020-09-19 20:49:33 +02:00
let data = changedGuilds [ e . instance . props . guild . id ] ;
if ( data ) {
2021-05-07 14:23:52 +02:00
if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . guildfolderguildicon ) > - 1 ) this . changeGuildIcon ( e , data , this . settings . places . guildList ) ;
else if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . listavatar ) > - 1 || BDFDB . ReactUtils . findConstructor ( e . instance , "MutualGuild" , { up : true } ) ) this . changeGuildIcon ( e , data , this . settings . places . mutualGuilds ) ;
2020-09-19 20:49:33 +02:00
else this . changeGuildIcon ( e , data ) ;
}
2020-02-04 08:20:40 +01:00
}
2019-12-01 18:25:43 +01:00
}
2021-05-07 14:23:52 +02:00
processNavItem ( e ) {
if ( this . settings . places . guildList ) {
let pathname = BDFDB . ObjectUtils . get ( e . instance , "props.to.pathname" ) ;
let data = pathname && changedGuilds [ ( pathname . split ( "/channels/" ) [ 1 ] || "" ) . split ( "/" ) [ 0 ] ] ;
if ( data ) {
let guildAcronym = BDFDB . ReactUtils . findChild ( e . returnvalue , { props : [ [ "className" , BDFDB . disCN . guildiconacronym ] ] } ) ;
if ( guildAcronym ) {
let fontGradient = BDFDB . ObjectUtils . is ( data . color2 ) ;
guildAcronym . props . style = Object . assign ( { } , guildAcronym . props . style , {
background : BDFDB . ObjectUtils . is ( data . color1 ) ? BDFDB . ColorUtils . createGradient ( data . color1 ) : BDFDB . ColorUtils . convert ( data . color1 , "RGBA" ) ,
color : ! fontGradient && BDFDB . ColorUtils . convert ( data . color2 , "RGBA" )
} ) ;
if ( fontGradient ) guildAcronym . props . children = BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextGradientElement , {
gradient : BDFDB . ColorUtils . createGradient ( data . color2 ) ,
children : guildAcronym . props . children
} ) ;
}
}
}
}
2019-12-01 18:25:43 +01:00
2020-09-19 20:49:33 +02:00
processMutualGuilds ( e ) {
2021-06-09 21:43:27 +02:00
if ( this . settings . places . mutualGuilds ) {
let [ children , index ] = BDFDB . ReactUtils . findParent ( e . returnvalue , { name : "GuildRow" } ) ;
if ( index > - 1 ) for ( let row of children ) if ( row && row . props && row . props . guild ) row . props . guild = this . getGuildData ( row . props . guild . id ) ;
}
2020-09-19 20:49:33 +02:00
}
2020-02-04 08:20:40 +01:00
2020-09-19 20:49:33 +02:00
processQuickSwitcher ( e ) {
2021-05-07 14:23:52 +02:00
if ( this . settings . places . quickSwitcher ) for ( let i in e . instance . props . results ) if ( e . instance . props . results [ i ] . type == "GUILD" ) e . instance . props . results [ i ] . record = this . getGuildData ( e . instance . props . results [ i ] . record . id ) ;
2019-12-30 11:34:44 +01:00
}
2020-09-19 20:49:33 +02:00
processQuickSwitchChannelResult ( e ) {
2021-05-07 14:23:52 +02:00
if ( e . instance . props . channel && e . instance . props . channel . guild _id && this . settings . places . quickSwitcher ) {
2020-09-19 20:49:33 +02:00
e . instance . props . children . props . children = this . getGuildData ( e . instance . props . channel . guild _id ) . name ;
2020-02-04 08:20:40 +01:00
}
2020-01-02 11:39:22 +01:00
}
2020-09-19 20:49:33 +02:00
processRecentsChannelHeader ( e ) {
2021-05-07 14:23:52 +02:00
if ( this . settings . places . recentMentions && BDFDB . ArrayUtils . is ( e . returnvalue . props . children ) ) {
2020-09-19 20:49:33 +02:00
for ( let child of e . returnvalue . props . children ) if ( child && child . props && child . props . channel && child . type . displayName == "ChannelName" ) {
let oldType = child . type ;
child . type = ( ... args ) => {
let instance = oldType ( ... args ) ;
2020-11-19 16:51:14 +01:00
let guildName = BDFDB . ReactUtils . findChild ( instance , { props : [ [ "className" , BDFDB . disCN . recentmentionsguildname ] ] } ) ;
2020-09-19 20:49:33 +02:00
if ( guildName ) guildName . props . children = ( this . getGuildData ( e . instance . props . channel . guild _id ) || { } ) . name || guildName . props . children ;
return instance ;
} ;
child . type . displayName = oldType . displayName ;
}
2019-12-01 18:25:43 +01:00
}
2019-04-26 14:57:08 +02:00
}
2020-09-19 20:49:33 +02:00
processGuildSidebar ( e ) {
if ( e . instance . props . guild ) {
let data = changedGuilds [ e . instance . props . guild . id ] ;
if ( data ) {
if ( data . removeBanner ) e . instance . props . guild = new BDFDB . DiscordObjects . Guild ( Object . assign ( { } , e . instance . props . guild , { banner : null } ) ) ;
else if ( data . banner ) e . instance . props . guild = new BDFDB . DiscordObjects . Guild ( Object . assign ( { } , e . instance . props . guild , { banner : data . banner } ) ) ;
}
2020-02-04 08:20:40 +01:00
}
2019-04-26 14:57:08 +02:00
}
2020-09-19 20:49:33 +02:00
processGuildHeader ( e ) {
2021-05-07 14:23:52 +02:00
if ( e . instance . props . guild && this . settings . places . guildHeader ) {
2020-09-19 20:49:33 +02:00
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
let oldName = ( BDFDB . LibraryModules . GuildStore . getGuild ( e . instance . props . guild . id ) || { } ) . name ;
2021-05-07 14:23:52 +02:00
if ( e . returnvalue && this . settings . general . addOriginalTooltip && oldName != e . instance . props . guild . name ) {
2020-09-19 20:49:33 +02:00
e . returnvalue . props . children [ 0 ] = BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TooltipContainer , {
text : oldName ,
children : e . returnvalue . props . children [ 0 ] ,
tooltipConfig : { type : "right" }
} ) ;
}
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
}
processInviteGuildName ( e ) {
2021-05-07 14:23:52 +02:00
if ( e . instance . props . guild && e . instance . props . guild . joinedAt && this . settings . places . guildInvites ) {
2020-09-19 20:49:33 +02:00
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2020-02-04 08:20:40 +01:00
}
2020-01-02 11:39:22 +01:00
}
2020-09-19 20:49:33 +02:00
2020-10-29 17:51:46 +01:00
processWelcomeArea ( e ) {
2021-05-07 14:23:52 +02:00
if ( e . instance . props . channel && this . settings . places . chat ) {
2020-10-29 17:51:46 +01:00
let name = ( BDFDB . LibraryModules . GuildStore . getGuild ( e . instance . props . channel . guild _id ) || { } ) . name ;
2020-11-19 16:51:14 +01:00
let guildName = name && BDFDB . ReactUtils . findChild ( e . returnvalue , { props : [ [ "className" , "titleName-3-Lp3Z" ] ] } ) ;
2020-10-29 17:51:46 +01:00
if ( guildName && guildName . props && BDFDB . ArrayUtils . is ( guildName . props . children ) ) {
for ( let child of guildName . props . children ) if ( child && child . props && BDFDB . ArrayUtils . is ( child . props . children ) && child . props . children [ 0 ] == name ) {
child . props . children = [ ( this . getGuildData ( e . instance . props . channel . guild _id ) || { } ) . name || name ] ;
break ;
}
}
}
}
2020-09-19 20:49:33 +02:00
getGuildData ( guildId , change = true ) {
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( guildId ) ;
if ( ! guild ) return new BDFDB . DiscordObjects . Guild ( { } ) ;
let data = change && changedGuilds [ guild . id ] ;
if ( data ) {
let newGuildObject = { } , nativeObject = new BDFDB . DiscordObjects . Guild ( guild ) ;
for ( let key in nativeObject ) newGuildObject [ key ] = nativeObject [ key ] ;
newGuildObject . name = data . name || nativeObject . name ;
newGuildObject . acronym = data . shortName && data . shortName . replace ( /\s/g , "" ) || BDFDB . LibraryModules . StringUtils . getAcronym ( ! data . ignoreCustomName && data . name || nativeObject . name ) ;
if ( data . removeIcon ) {
newGuildObject . icon = null ;
newGuildObject . getIconURL = _ => { return null ; } ;
}
else if ( data . url ) {
newGuildObject . icon = data . url ;
newGuildObject . getIconURL = _ => { return data . url ; } ;
}
if ( data . removeBanner ) newGuildObject . banner = null ;
else if ( data . banner ) newGuildObject . banner = data . banner ;
return newGuildObject ;
}
return new BDFDB . DiscordObjects . Guild ( guild ) ;
2020-02-04 08:20:40 +01:00
}
2020-06-08 20:55:34 +02:00
2020-09-19 20:49:33 +02:00
changeGuildIcon ( e , data , change = true ) {
if ( change ) {
let fontGradient = BDFDB . ObjectUtils . is ( data . color2 ) ;
e . returnvalue . props . style = Object . assign ( { } , e . returnvalue . props . style , {
background : BDFDB . ObjectUtils . is ( data . color1 ) ? BDFDB . ColorUtils . createGradient ( data . color1 ) : BDFDB . ColorUtils . convert ( data . color1 , "RGBA" ) ,
color : ! fontGradient && BDFDB . ColorUtils . convert ( data . color2 , "RGBA" )
} ) ;
if ( fontGradient ) e . returnvalue . props . children [ 0 ] = BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextGradientElement , {
gradient : BDFDB . ColorUtils . createGradient ( data . color2 ) ,
children : e . returnvalue . props . children [ 0 ]
} ) ;
}
}
2019-09-04 12:34:02 +02:00
2020-09-19 20:49:33 +02:00
openGuildSettingsModal ( guildId ) {
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( guildId ) ;
if ( ! guild ) return ;
let data = changedGuilds [ guild . id ] || { } ;
2021-01-29 19:48:09 +01:00
let newData = Object . assign ( { } , data ) ;
2020-09-19 20:49:33 +02:00
2021-01-29 19:48:09 +01:00
let nameInput , acronymInput , iconInput , bannerInput ;
2020-09-19 20:49:33 +02:00
BDFDB . ModalUtils . open ( this , {
size : "MEDIUM" ,
2020-12-21 19:56:36 +01:00
header : this . labels . modal _header ,
2021-01-23 18:50:24 +01:00
subHeader : guild . name ,
2020-09-19 20:49:33 +02:00
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ModalComponents . ModalTabContent , {
2020-12-21 19:56:36 +01:00
tab : this . labels . modal _tabheader1 ,
2020-09-19 20:49:33 +02:00
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2020-12-21 19:56:36 +01:00
title : this . labels . modal _guildname ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom20 ,
children : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
value : data . name ,
placeholder : guild . name ,
autoFocus : true ,
2021-01-29 19:48:09 +01:00
ref : instance => { if ( instance ) nameInput = instance ; } ,
onChange : value => {
newData . name = value ;
if ( ! newData . ignoreCustomName ) {
acronymInput . props . placeholder = value && BDFDB . LibraryModules . StringUtils . getAcronym ( value ) || guild . acronym ;
BDFDB . ReactUtils . forceUpdate ( acronymInput ) ;
2020-09-19 20:49:33 +02:00
}
2020-02-17 13:16:17 +01:00
}
} )
2020-09-19 20:49:33 +02:00
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2020-12-21 19:56:36 +01:00
title : this . labels . modal _guildacronym ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom8 ,
children :
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
value : data . shortName ,
2021-01-29 19:48:09 +01:00
ref : instance => { if ( instance ) acronymInput = instance ; } ,
placeholder : ! data . ignoreCustomName && data . name && BDFDB . LibraryModules . StringUtils . getAcronym ( data . name ) || guild . acronym ,
onChange : value => { newData . shortName = value ; }
2020-02-04 08:20:40 +01:00
} )
2020-09-19 20:49:33 +02:00
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
type : "Switch" ,
2021-01-29 19:48:09 +01:00
className : BDFDB . disCN . marginbottom20 ,
2020-12-21 19:56:36 +01:00
label : this . labels . modal _ignorecustomname ,
2020-09-19 20:49:33 +02:00
tag : BDFDB . LibraryComponents . FormComponents . FormTitle . Tags . H5 ,
value : data . ignoreCustomName ,
2021-01-29 19:48:09 +01:00
onChange : value => {
newData . ignoreCustomName = value ;
acronymInput . props . placeholder = ! value && newData . name && BDFDB . LibraryModules . StringUtils . getAcronym ( newData . name ) || guild . acronym ;
BDFDB . ReactUtils . forceUpdate ( acronymInput ) ;
2020-09-19 20:49:33 +02:00
}
} ) ,
BDFDB . ReactUtils . createElement ( "div" , {
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex , {
className : BDFDB . disCN . marginbottom8 ,
align : BDFDB . LibraryComponents . Flex . Align . CENTER ,
direction : BDFDB . LibraryComponents . Flex . Direction . HORIZONTAL ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormTitle , {
className : BDFDB . disCN . marginreset ,
tag : BDFDB . LibraryComponents . FormComponents . FormTitle . Tags . H5 ,
2020-12-21 19:56:36 +01:00
children : this . labels . modal _guildicon
2020-09-19 20:49:33 +02:00
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
type : "Switch" ,
2020-10-14 21:08:41 +02:00
margin : 0 ,
2020-09-19 20:49:33 +02:00
grow : 0 ,
label : BDFDB . LanguageUtils . LanguageStrings . REMOVE ,
tag : BDFDB . LibraryComponents . FormComponents . FormTitle . Tags . H5 ,
value : data . removeIcon ,
2021-01-29 19:48:09 +01:00
onChange : value => {
newData . removeIcon = value ;
if ( value ) {
delete iconInput . props . success ;
delete iconInput . props . errorMessage ;
iconInput . props . disabled = true ;
BDFDB . ReactUtils . forceUpdate ( iconInput ) ;
}
else {
iconInput . props . disabled = false ;
this . checkUrl ( iconInput . props . value , iconInput ) . then ( returnValue => {
newData . url = returnValue ;
} ) ;
2020-09-19 20:49:33 +02:00
}
}
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
success : ! data . removeIcon && data . url ,
maxLength : 100000000000000000000 ,
value : data . url ,
placeholder : BDFDB . GuildUtils . getIcon ( guild . id ) ,
disabled : data . removeIcon ,
2021-01-29 19:48:09 +01:00
ref : instance => { if ( instance ) iconInput = instance ; } ,
2020-09-19 20:49:33 +02:00
onChange : ( value , instance ) => {
2021-01-29 19:48:09 +01:00
this . checkUrl ( value , instance ) . then ( returnValue => {
newData . url = returnValue ;
} ) ;
2020-09-19 20:49:33 +02:00
}
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( "div" , {
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Flex , {
className : BDFDB . disCN . marginbottom8 ,
align : BDFDB . LibraryComponents . Flex . Align . CENTER ,
direction : BDFDB . LibraryComponents . Flex . Direction . HORIZONTAL ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormTitle , {
className : BDFDB . disCN . marginreset ,
tag : BDFDB . LibraryComponents . FormComponents . FormTitle . Tags . H5 ,
2020-12-21 19:56:36 +01:00
children : this . labels . modal _guildbanner
2020-09-19 20:49:33 +02:00
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
type : "Switch" ,
2020-10-14 21:08:41 +02:00
margin : 0 ,
2020-09-19 20:49:33 +02:00
grow : 0 ,
label : BDFDB . LanguageUtils . LanguageStrings . REMOVE ,
tag : BDFDB . LibraryComponents . FormComponents . FormTitle . Tags . H5 ,
value : data . removeBanner && guild . id != "410787888507256842" ,
disabled : guild . id == "410787888507256842" ,
2021-01-29 19:48:09 +01:00
onChange : value => {
newData . removeBanner = value ;
if ( value ) {
delete bannerInput . props . success ;
delete bannerInput . props . errorMessage ;
bannerInput . props . disabled = true ;
BDFDB . ReactUtils . forceUpdate ( bannerInput ) ;
}
else {
bannerInput . props . disabled = false ;
this . checkUrl ( bannerInput . props . value , bannerInput ) . then ( returnValue => {
newData . url = returnValue ;
} ) ;
2020-09-19 20:49:33 +02:00
}
}
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
success : ! data . removeBanner && data . banner ,
maxLength : 100000000000000000000 ,
value : data . banner ,
placeholder : BDFDB . GuildUtils . getBanner ( guild . id ) ,
disabled : data . removeBanner || guild . id == "410787888507256842" ,
2021-01-29 19:48:09 +01:00
ref : instance => { if ( instance ) bannerInput = instance ; } ,
2020-09-19 20:49:33 +02:00
onChange : ( value , instance ) => {
2021-01-29 19:48:09 +01:00
this . checkUrl ( value , instance ) . then ( returnValue => {
newData . banner = returnValue ;
} ) ;
2020-09-19 20:49:33 +02:00
}
} )
]
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ModalComponents . ModalTabContent , {
2020-12-21 19:56:36 +01:00
tab : this . labels . modal _tabheader2 ,
2020-09-19 20:49:33 +02:00
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2020-12-21 19:56:36 +01:00
title : this . labels . modal _colorpicker1 ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
color : data . color1 ,
2021-01-29 20:04:13 +01:00
onColorChange : value => { newData . color1 = value ; }
2020-09-19 20:49:33 +02:00
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2020-12-21 19:56:36 +01:00
title : this . labels . modal _colorpicker2 ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
color : data . color2 ,
2021-01-29 20:04:13 +01:00
onColorChange : value => { newData . color2 = value ; }
2020-09-19 20:49:33 +02:00
} )
]
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ModalComponents . ModalTabContent , {
2020-12-21 19:56:36 +01:00
tab : this . labels . modal _tabheader3 ,
2020-09-19 20:49:33 +02:00
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2020-12-21 19:56:36 +01:00
title : this . labels . modal _colorpicker3 ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
color : data . color3 ,
2021-01-29 20:04:13 +01:00
onColorChange : value => { newData . color3 = value ; }
2020-09-19 20:49:33 +02:00
} )
]
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2020-12-21 19:56:36 +01:00
title : this . labels . modal _colorpicker4 ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
color : data . color4 ,
2021-01-29 20:04:13 +01:00
onColorChange : value => { newData . color4 = value ; }
2020-09-19 20:49:33 +02:00
} )
]
} )
]
} )
] ,
buttons : [ {
contents : BDFDB . LanguageUtils . LanguageStrings . SAVE ,
color : "BRAND" ,
close : true ,
2021-01-29 19:48:09 +01:00
onClick : _ => {
newData . url = ! newData . removeIcon ? newData . url : "" ;
newData . removeBanner = newData . removeBanner && guild . id != "410787888507256842" ;
newData . banner = ! newData . removeBanner ? newData . banner : "" ;
2019-01-26 22:45:19 +01:00
2020-09-19 20:49:33 +02:00
let changed = false ;
2021-01-29 19:48:09 +01:00
if ( Object . keys ( newData ) . every ( key => newData [ key ] == null || newData [ key ] == false ) && ( changed = true ) ) {
BDFDB . DataUtils . remove ( this , "servers" , guild . id ) ;
}
else if ( ! BDFDB . equals ( newData , data ) && ( changed = true ) ) {
BDFDB . DataUtils . save ( newData , this , "servers" , guild . id ) ;
}
if ( changed ) this . forceUpdateAll ( ) ;
2020-09-19 20:49:33 +02:00
}
} ]
} ) ;
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
checkUrl ( url , instance ) {
2021-01-29 19:48:09 +01:00
return new Promise ( callback => {
BDFDB . TimeUtils . clear ( instance . checkTimeout ) ;
url = url && url . trim ( ) ;
if ( ! url || instance . props . disabled ) {
delete instance . props . success ;
delete instance . props . errorMessage ;
callback ( "" ) ;
BDFDB . ReactUtils . forceUpdate ( instance ) ;
}
else instance . checkTimeout = BDFDB . TimeUtils . timeout ( _ => {
BDFDB . LibraryRequires . request ( url , ( error , response , result ) => {
delete instance . checkTimeout ;
if ( instance . props . disabled ) {
delete instance . props . success ;
delete instance . props . errorMessage ;
callback ( "" ) ;
}
else if ( response && response . headers [ "content-type" ] && response . headers [ "content-type" ] . indexOf ( "image" ) != - 1 ) {
instance . props . success = true ;
delete instance . props . errorMessage ;
callback ( url ) ;
}
else {
delete instance . props . success ;
instance . props . errorMessage = this . labels . modal _invalidurl ;
callback ( "" ) ;
}
BDFDB . ReactUtils . forceUpdate ( instance ) ;
} ) ;
} , 1000 ) ;
} ) ;
2020-09-19 20:49:33 +02:00
}
2019-09-04 12:34:02 +02:00
2020-09-19 20:49:33 +02:00
setBanner ( id , data ) {
data = data || { } ;
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( id ) ;
if ( ! guild ) return ;
if ( guild . EditServersCachedBanner === undefined ) guild . EditServersCachedBanner = guild . banner ;
guild . banner = data . removeBanner ? null : ( data . banner || guild . EditServersCachedBanner ) ;
2020-02-04 08:20:40 +01:00
}
2020-07-26 17:02:25 +02:00
2021-01-06 12:38:36 +01:00
setLabelsByLanguage ( ) {
2020-09-19 20:49:33 +02:00
switch ( BDFDB . LanguageUtils . getLanguage ( ) . id ) {
2020-12-21 19:56:36 +01:00
case "bg" : // Bulgarian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Наистина ли искате да нулирате този сървър?" ,
confirm _resetall : "Наистина ли искате да нулирате всички сървъри?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Настройки на локалния сървър" ,
modal _colorpicker1 : "Цвят на иконата" ,
modal _colorpicker2 : "Цвят на шрифта" ,
modal _colorpicker3 : "Цвят на подсказка" ,
modal _colorpicker4 : "Цвят на шрифта" ,
modal _guildacronym : "Локален сървър Акроним" ,
modal _guildbanner : "Банер" ,
modal _guildicon : "Икона" ,
modal _guildname : "Име на локален сървър" ,
modal _header : "Настройки на локалния сървър" ,
modal _ignorecustomname : "Използвайте оригиналното име на сървъра за съкращението на сървъра" ,
modal _invalidurl : "Невалиден адрес" ,
modal _tabheader1 : "Сървър" ,
modal _tabheader2 : "Цвят на иконата" ,
modal _tabheader3 : "Цвят на подсказка" ,
submenu _resetsettings : "Нулиране на сървъра" ,
submenu _serversettings : "Промяна на настройките"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "da" : // Danish
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Er du sikker på, at du vil nulstille denne server?" ,
confirm _resetall : "Er du sikker på, at du vil nulstille alle servere?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Lokale serverindstillinger" ,
modal _colorpicker1 : "Ikonfarve" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker2 : "Skrift farve" ,
modal _colorpicker3 : "Værktøjstip farve" ,
modal _colorpicker4 : "Skrift farve" ,
modal _guildacronym : "Lokal server akronym" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Banner" ,
modal _guildicon : "Ikon" ,
modal _guildname : "Lokalt servernavn" ,
modal _header : "Lokale serverindstillinger" ,
modal _ignorecustomname : "Brug det originale servernavn til serverakronymet" ,
modal _invalidurl : "Ugyldig URL" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Ikonfarve" ,
2020-12-22 20:38:51 +01:00
modal _tabheader3 : "Værktøjstip farve" ,
2020-12-21 19:56:36 +01:00
submenu _resetsettings : "Nulstil server" ,
submenu _serversettings : "Ændre indstillinger"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "de" : // German
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Möchtest du diesen Server wirklich zurücksetzen?" ,
confirm _resetall : "Möchtest du wirklich alle Server zurücksetzen?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Lokale Servereinstellungen" ,
modal _colorpicker1 : "Symbolfarbe" ,
modal _colorpicker2 : "Schriftfarbe" ,
modal _colorpicker3 : "Tooltipfarbe" ,
modal _colorpicker4 : "Schriftfarbe" ,
modal _guildacronym : "Lokales Serverakronym" ,
modal _guildbanner : "Banner" ,
modal _guildicon : "Symbol" ,
modal _guildname : "Lokaler Servername" ,
modal _header : "Lokale Servereinstellungen" ,
2020-12-22 20:38:51 +01:00
modal _ignorecustomname : "Verwenden Sie den ursprünglichen Servernamen für das Serverakronym" ,
2020-12-21 19:56:36 +01:00
modal _invalidurl : "Ungültige URL" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Symbolfarbe" ,
modal _tabheader3 : "Tooltipfarbe" ,
submenu _resetsettings : "Server zurücksetzen" ,
submenu _serversettings : "Einstellungen ändern"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "el" : // Greek
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Είστε βέβαιοι ότι θέλετε ν α επαναφέρετε αυτόν τον διακομιστή;" ,
confirm _resetall : "Είστε βέβαιοι ότι θέλετε ν α επαναφέρετε όλους τους διακομιστές;" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Ρυθμίσεις τοπικού διακομιστή" ,
modal _colorpicker1 : "Χρώμα εικονιδίου" ,
modal _colorpicker2 : "Χρώμα γραμματοσειράς" ,
modal _colorpicker3 : "Χρώμα επεξήγησης εργαλείου" ,
modal _colorpicker4 : "Χρώμα γραμματοσειράς" ,
modal _guildacronym : "Τοπικό αρκτικόλεξο διακομιστή" ,
modal _guildbanner : "Πανό" ,
modal _guildicon : "Εικόνισμα" ,
modal _guildname : "Τοπικό όνομα διακομιστή" ,
modal _header : "Ρυθμίσεις τοπικού διακομιστή" ,
modal _ignorecustomname : "Χρησιμοποιήστε το αρχικό όνομα διακομιστή γ ι α το αρκτικόλεξο διακομιστή" ,
modal _invalidurl : "Μη έγκυρη διεύθυνση URL" ,
modal _tabheader1 : "Υπηρέτης" ,
modal _tabheader2 : "Χρώμα εικονιδίου" ,
modal _tabheader3 : "Χρώμα επεξήγησης εργαλείου" ,
submenu _resetsettings : "Επαναφορά διακομιστή" ,
submenu _serversettings : "Αλλαξε ρυθμίσεις"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "es" : // Spanish
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "¿Está seguro de que desea restablecer este servidor?" ,
confirm _resetall : "¿Está seguro de que desea restablecer todos los servidores?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Configuración del servidor local" ,
modal _colorpicker1 : "Color del icono" ,
modal _colorpicker2 : "Color de fuente" ,
modal _colorpicker3 : "Color de información sobre herramientas" ,
modal _colorpicker4 : "Color de fuente" ,
modal _guildacronym : "Acrónimo del servidor local" ,
modal _guildbanner : "Bandera" ,
modal _guildicon : "Icono" ,
modal _guildname : "Nombre del servidor local" ,
modal _header : "Configuración del servidor local" ,
modal _ignorecustomname : "Utilice el nombre del servidor original para el acrónimo del servidor" ,
modal _invalidurl : "URL invalida" ,
modal _tabheader1 : "Servidor" ,
modal _tabheader2 : "Color del icono" ,
modal _tabheader3 : "Color de información sobre herramientas" ,
submenu _resetsettings : "Restablecer servidor" ,
submenu _serversettings : "Cambiar ajustes"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "fi" : // Finnish
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Haluatko varmasti nollata tämän palvelimen?" ,
confirm _resetall : "Haluatko varmasti nollata kaikki palvelimet?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Paikallisen palvelimen asetukset" ,
modal _colorpicker1 : "Kuvakkeen väri" ,
modal _colorpicker2 : "Fontin väri" ,
modal _colorpicker3 : "Työkaluvihjeen väri" ,
modal _colorpicker4 : "Fontin väri" ,
modal _guildacronym : "Paikallisen palvelimen lyhenne" ,
modal _guildbanner : "Banneri" ,
modal _guildicon : "Kuvake" ,
modal _guildname : "Paikallisen palvelimen nimi" ,
modal _header : "Paikallisen palvelimen asetukset" ,
modal _ignorecustomname : "Käytä palvelimen lyhenteessä alkuperäistä palvelimen nimeä" ,
modal _invalidurl : "Virheellinen URL" ,
modal _tabheader1 : "Palvelin" ,
modal _tabheader2 : "Kuvakkeen väri" ,
modal _tabheader3 : "Työkaluvihjeen väri" ,
submenu _resetsettings : "Nollaa palvelin" ,
submenu _serversettings : "Vaihda asetuksia"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "fr" : // French
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Êtes-vous sûr de vouloir réinitialiser ce serveur?" ,
confirm _resetall : "Voulez-vous vraiment réinitialiser tous les serveurs?" ,
context _localserversettings : "Paramètres locaux du serveur" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker1 : "Couleur de l'icône" ,
modal _colorpicker2 : "Couleur de la police" ,
modal _colorpicker3 : "Couleur de l'info-bulle" ,
modal _colorpicker4 : "Couleur de la police" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "Acronyme local du serveur" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Bannière" ,
modal _guildicon : "Icône" ,
2020-12-22 20:38:51 +01:00
modal _guildname : "Nom local du serveur" ,
modal _header : "Paramètres locaux du serveur" ,
2020-12-21 19:56:36 +01:00
modal _ignorecustomname : "Utilisez le nom de serveur d'origine pour l'acronyme de serveur" ,
modal _invalidurl : "URL invalide" ,
modal _tabheader1 : "Serveur" ,
modal _tabheader2 : "Couleur de l'icône" ,
modal _tabheader3 : "Couleur de l'info-bulle" ,
submenu _resetsettings : "Réinitialiser le serveur" ,
submenu _serversettings : "Modifier les paramètres"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "hr" : // Croatian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Jeste li sigurni da želite resetirati ovaj poslužitelj?" ,
confirm _resetall : "Jeste li sigurni da želite resetirati sve poslužitelje?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Postavke lokalnog poslužitelja" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker1 : "Ikona Boja" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker2 : "Boja fonta" ,
modal _colorpicker3 : "Boja opisa" ,
modal _colorpicker4 : "Boja fonta" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "Lokalni poslužitelj kratica" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Natpis" ,
modal _guildicon : "Ikona" ,
modal _guildname : "Naziv lokalnog poslužitelja" ,
modal _header : "Postavke lokalnog poslužitelja" ,
modal _ignorecustomname : "Koristite izvorno ime poslužitelja za kraticu poslužitelja" ,
modal _invalidurl : "Neispravna poveznica" ,
modal _tabheader1 : "Poslužitelj" ,
2020-12-22 20:38:51 +01:00
modal _tabheader2 : "Ikona Boja" ,
2020-12-21 19:56:36 +01:00
modal _tabheader3 : "Boja opisa" ,
submenu _resetsettings : "Resetiraj poslužitelj" ,
submenu _serversettings : "Promijeniti postavke"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "hu" : // Hungarian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Biztosan visszaállítja ezt a szervert?" ,
confirm _resetall : "Biztosan visszaállítja az összes szervert?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Helyi kiszolgáló beállításai" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker1 : "Ikon színe" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker2 : "Betű szín" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker3 : "Tooltip Color" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker4 : "Betű szín" ,
modal _guildacronym : "Helyi szerver betűszó" ,
modal _guildbanner : "Transzparens" ,
modal _guildicon : "Ikon" ,
modal _guildname : "Helyi kiszolgáló neve" ,
modal _header : "Helyi kiszolgáló beállításai" ,
modal _ignorecustomname : "A kiszolgáló rövidítéshez használja az eredeti kiszolgáló nevet" ,
modal _invalidurl : "Érvénytelen URL" ,
modal _tabheader1 : "Szerver" ,
2020-12-22 20:38:51 +01:00
modal _tabheader2 : "Ikon színe" ,
modal _tabheader3 : "Tooltip Color" ,
submenu _resetsettings : "Reset Server" ,
2020-12-21 19:56:36 +01:00
submenu _serversettings : "Beállítások megváltoztatása"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "it" : // Italian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Sei sicuro di voler reimpostare questo server?" ,
confirm _resetall : "Sei sicuro di voler ripristinare tutti i server?" ,
context _localserversettings : "Impostazioni locale del server" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker1 : "Colore dell'icona" ,
modal _colorpicker2 : "Colore del carattere" ,
modal _colorpicker3 : "Colore della descrizione comando" ,
modal _colorpicker4 : "Colore del carattere" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "Acronimo locale del server" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Banner" ,
modal _guildicon : "Icona" ,
2020-12-22 20:38:51 +01:00
modal _guildname : "Nome locale server" ,
modal _header : "Impostazioni locale del server" ,
2020-12-21 19:56:36 +01:00
modal _ignorecustomname : "Utilizzare il nome del server originale per l'acronimo del server" ,
modal _invalidurl : "URL non valido" ,
modal _tabheader1 : "Server" ,
2020-12-22 20:38:51 +01:00
modal _tabheader2 : "Colore dell'icona" ,
2020-12-21 19:56:36 +01:00
modal _tabheader3 : "Colore della descrizione comando" ,
submenu _resetsettings : "Reimposta server" ,
submenu _serversettings : "Cambia impostazioni"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ja" : // Japanese
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "このサーバーをリセットしてもよろしいですか?" ,
confirm _resetall : "すべてのサーバーをリセットしてもよろしいですか?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "ローカルサーバー設定" ,
modal _colorpicker1 : "アイコンの色" ,
modal _colorpicker2 : "フォントの色" ,
modal _colorpicker3 : "ツールチップの色" ,
modal _colorpicker4 : "フォントの色" ,
modal _guildacronym : "ローカルサーバーの頭字語" ,
modal _guildbanner : "バナー" ,
modal _guildicon : "アイコン" ,
modal _guildname : "ローカルサーバー名" ,
modal _header : "ローカルサーバー設定" ,
modal _ignorecustomname : "サーバーの頭字語には元のサーバー名を使用します" ,
modal _invalidurl : "無効なURL" ,
modal _tabheader1 : "サーバ" ,
modal _tabheader2 : "アイコンの色" ,
modal _tabheader3 : "ツールチップの色" ,
submenu _resetsettings : "サーバーのリセット" ,
submenu _serversettings : "設定を変更する"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ko" : // Korean
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "이 서버를 재설정 하시겠습니까?" ,
confirm _resetall : "모든 서버를 재설정 하시겠습니까?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "로컬 서버 설정" ,
modal _colorpicker1 : "아이콘 색상" ,
modal _colorpicker2 : "글자 색" ,
modal _colorpicker3 : "툴팁 색상" ,
modal _colorpicker4 : "글자 색" ,
modal _guildacronym : "로컬 서버 약어" ,
modal _guildbanner : "배너" ,
modal _guildicon : "상" ,
modal _guildname : "로컬 서버 이름" ,
modal _header : "로컬 서버 설정" ,
modal _ignorecustomname : "서버 약어에 원래 서버 이름 사용" ,
modal _invalidurl : "잘못된 URL" ,
modal _tabheader1 : "섬기는 사람" ,
modal _tabheader2 : "아이콘 색상" ,
modal _tabheader3 : "툴팁 색상" ,
submenu _resetsettings : "서버 재설정" ,
submenu _serversettings : "설정 변경"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "lt" : // Lithuanian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Ar tikrai norite iš naujo nustatyti šį serverį?" ,
confirm _resetall : "Ar tikrai norite iš naujo nustatyti visus serverius?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Vietinio serverio nustatymai" ,
modal _colorpicker1 : "Piktogramos spalva" ,
modal _colorpicker2 : "Šrifto spalva" ,
modal _colorpicker3 : "Patarimo spalva" ,
modal _colorpicker4 : "Šrifto spalva" ,
modal _guildacronym : "Vietinio serverio santrumpa" ,
modal _guildbanner : "Reklamjuostė" ,
modal _guildicon : "Piktograma" ,
modal _guildname : "Vietinio serverio pavadinimas" ,
modal _header : "Vietinio serverio nustatymai" ,
modal _ignorecustomname : "Serverio akronimui naudokite originalų serverio pavadinimą" ,
modal _invalidurl : "Neteisingas URL" ,
modal _tabheader1 : "Serveris" ,
modal _tabheader2 : "Piktogramos spalva" ,
modal _tabheader3 : "Patarimo spalva" ,
submenu _resetsettings : "Iš naujo nustatyti serverį" ,
submenu _serversettings : "Pakeisti nustatymus"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "nl" : // Dutch
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Weet u zeker dat u deze server opnieuw wilt instellen?" ,
confirm _resetall : "Weet u zeker dat u alle servers wilt resetten?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Lokale serverinstellingen" ,
modal _colorpicker1 : "Icoonkleur" ,
modal _colorpicker2 : "Letterkleur" ,
modal _colorpicker3 : "Tooltipkleur" ,
modal _colorpicker4 : "Letterkleur" ,
modal _guildacronym : "Lokale serveracroniem" ,
modal _guildbanner : "Banner" ,
modal _guildicon : "Icoon" ,
modal _guildname : "Lokale servernaam" ,
modal _header : "Lokale serverinstellingen" ,
modal _ignorecustomname : "Gebruik de oorspronkelijke servernaam voor het serveracroniem" ,
modal _invalidurl : "Ongeldige URL" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Icoonkleur" ,
modal _tabheader3 : "Tooltipkleur" ,
submenu _resetsettings : "Reset server" ,
submenu _serversettings : "Instellingen veranderen"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "no" : // Norwegian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Er du sikker på at du vil tilbakestille denne serveren?" ,
confirm _resetall : "Er du sikker på at du vil tilbakestille alle serverne?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Lokale serverinnstillinger" ,
modal _colorpicker1 : "Ikonfarge" ,
modal _colorpicker2 : "Skriftfarge" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker3 : "Verktøytipsfarge" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker4 : "Skriftfarge" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "Lokal serverakronymet" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Banner" ,
modal _guildicon : "Ikon" ,
modal _guildname : "Lokalt servernavn" ,
modal _header : "Lokale serverinnstillinger" ,
modal _ignorecustomname : "Bruk det originale servernavnet for serverakronymet" ,
modal _invalidurl : "Ugyldig URL" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Ikonfarge" ,
2020-12-22 20:38:51 +01:00
modal _tabheader3 : "Verktøytipsfarge" ,
2020-12-21 19:56:36 +01:00
submenu _resetsettings : "Tilbakestill server" ,
submenu _serversettings : "Endre innstillinger"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "pl" : // Polish
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Czy na pewno chcesz zresetować ten serwer?" ,
confirm _resetall : "Czy na pewno chcesz zresetować wszystkie serwery?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Ustawienia serwera lokalnego" ,
modal _colorpicker1 : "Kolor ikony" ,
modal _colorpicker2 : "Kolor czcionki" ,
modal _colorpicker3 : "Kolor etykiety narzędzi" ,
modal _colorpicker4 : "Kolor czcionki" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "Akronim lokalnego serwera" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Transparent" ,
modal _guildicon : "Ikona" ,
modal _guildname : "Nazwa serwera lokalnego" ,
modal _header : "Ustawienia serwera lokalnego" ,
modal _ignorecustomname : "Użyj oryginalnej nazwy serwera dla akronimu serwera" ,
modal _invalidurl : "Nieprawidłowy URL" ,
modal _tabheader1 : "Serwer" ,
modal _tabheader2 : "Kolor ikony" ,
modal _tabheader3 : "Kolor etykiety narzędzi" ,
submenu _resetsettings : "Zresetuj serwer" ,
submenu _serversettings : "Zmień ustawienia"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "pt-BR" : // Portuguese (Brazil)
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Tem certeza que deseja redefinir este servidor?" ,
confirm _resetall : "Tem certeza de que deseja redefinir todos os servidores?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Configurações do servidor local" ,
modal _colorpicker1 : "Cor do ícone" ,
modal _colorpicker2 : "Cor da fonte" ,
modal _colorpicker3 : "Cor da dica de ferramenta" ,
modal _colorpicker4 : "Cor da fonte" ,
modal _guildacronym : "Acrônimo de servidor local" ,
modal _guildbanner : "Bandeira" ,
modal _guildicon : "Ícone" ,
modal _guildname : "Nome do servidor local" ,
modal _header : "Configurações do servidor local" ,
modal _ignorecustomname : "Use o nome do servidor original para o acrônimo do servidor" ,
modal _invalidurl : "URL inválida" ,
modal _tabheader1 : "Servidor" ,
modal _tabheader2 : "Cor do ícone" ,
modal _tabheader3 : "Cor da dica de ferramenta" ,
submenu _resetsettings : "Reiniciar Servidor" ,
submenu _serversettings : "Mudar configurações"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ro" : // Romanian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Sigur doriți să resetați acest server?" ,
confirm _resetall : "Sigur doriți să resetați toate serverele?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Setări locale ale serverului" ,
modal _colorpicker1 : "Culoare pictogramă" ,
modal _colorpicker2 : "Culoarea fontului" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker3 : "Culoare sfat de instrumente" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker4 : "Culoarea fontului" ,
modal _guildacronym : "Acronim de server local" ,
modal _guildbanner : "Banner" ,
modal _guildicon : "Pictogramă" ,
modal _guildname : "Numele serverului local" ,
modal _header : "Setări locale ale serverului" ,
modal _ignorecustomname : "Utilizați numele serverului original pentru acronimul serverului" ,
modal _invalidurl : "URL invalid" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Culoare pictogramă" ,
modal _tabheader3 : "Culoare sfat" ,
submenu _resetsettings : "Resetați serverul" ,
submenu _serversettings : "Schimbă setările"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ru" : // Russian
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Вы уверены, что хотите сбросить этот сервер?" ,
confirm _resetall : "Вы уверены, что хотите сбросить все серверы?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Настройки локального сервера" ,
modal _colorpicker1 : "Цвет значка" ,
modal _colorpicker2 : "Цвет шрифта" ,
modal _colorpicker3 : "Цвет всплывающей подсказки" ,
modal _colorpicker4 : "Цвет шрифта" ,
modal _guildacronym : "Акроним локального сервера" ,
modal _guildbanner : "Баннер" ,
modal _guildicon : "Икона" ,
modal _guildname : "Имя локального сервера" ,
modal _header : "Настройки локального сервера" ,
modal _ignorecustomname : "Используйте исходное имя сервера для аббревиатуры сервера" ,
modal _invalidurl : "Неверная ссылка" ,
modal _tabheader1 : "Сервер" ,
modal _tabheader2 : "Цвет значка" ,
modal _tabheader3 : "Цвет всплывающей подсказки" ,
submenu _resetsettings : "Сбросить сервер" ,
submenu _serversettings : "Изменить настройки"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "sv" : // Swedish
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Är du säker på att du vill återställa den här servern?" ,
confirm _resetall : "Är du säker på att du vill återställa alla servrar?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Lokala serverinställningar" ,
modal _colorpicker1 : "Ikonfärg" ,
modal _colorpicker2 : "Fontfärg" ,
modal _colorpicker3 : "Verktygstipsfärg" ,
modal _colorpicker4 : "Fontfärg" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "Lokal servernakronym" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "Baner" ,
modal _guildicon : "Ikon" ,
modal _guildname : "Lokalt servernamn" ,
modal _header : "Lokala serverinställningar" ,
2020-12-22 20:38:51 +01:00
modal _ignorecustomname : "Använd det ursprungliga servernamnet för servernakronym" ,
2020-12-21 19:56:36 +01:00
modal _invalidurl : "Ogiltig URL" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Ikonfärg" ,
modal _tabheader3 : "Verktygstipsfärg" ,
submenu _resetsettings : "Återställ server" ,
submenu _serversettings : "Ändra inställningar"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "th" : // Thai
2020-09-19 20:49:33 +02:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "แน่ใจไหมว่าต้องการรีเซ็ตเซิร์ฟเวอร์นี้" ,
confirm _resetall : "แน่ใจไหมว่าต้องการรีเซ็ตเซิร์ฟเวอร์ทั้งหมด" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "การตั้งค่าเซิร์ฟเวอร์ภายใน" ,
modal _colorpicker1 : "ไอคอนสี" ,
modal _colorpicker2 : "สีตัวอักษร" ,
2020-12-22 20:38:51 +01:00
modal _colorpicker3 : "เคล็ดลับเครื่องมือสี" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker4 : "สีตัวอักษร" ,
modal _guildacronym : "ตัวย่อเซิร์ฟเวอร์ภายใน" ,
modal _guildbanner : "แบนเนอร์" ,
modal _guildicon : "ไอคอน" ,
modal _guildname : "ชื่อเซิร์ฟเวอร์ภายใน" ,
modal _header : "การตั้งค่าเซิร์ฟเวอร์ภายใน" ,
modal _ignorecustomname : "ใช้ชื่อเซิร์ฟเวอร์เดิมสำหรับตัวย่อเซิร์ฟเวอร์" ,
modal _invalidurl : "URL ไม่ถูกต้อง" ,
modal _tabheader1 : "เซิร์ฟเวอร์" ,
modal _tabheader2 : "ไอคอนสี" ,
modal _tabheader3 : "เคล็ดลับเครื่องมือสี" ,
submenu _resetsettings : "รีเซ็ตเซิร์ฟเวอร์" ,
submenu _serversettings : "เปลี่ยนการตั้งค่า"
} ;
case "tr" : // Turkish
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Bu Sunucuyu sı fı rlamak istediğinizden emin misiniz?" ,
confirm _resetall : "Tüm Sunucuları sı fı rlamak istediğinizden emin misiniz?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Yerel Sunucu Ayarları " ,
modal _colorpicker1 : "Simge Rengi" ,
modal _colorpicker2 : "Yazı rengi" ,
modal _colorpicker3 : "Araç İpucu Rengi" ,
modal _colorpicker4 : "Yazı rengi" ,
modal _guildacronym : "Yerel Sunucu Kı saltması " ,
modal _guildbanner : "Afiş" ,
modal _guildicon : "Simge" ,
modal _guildname : "Yerel Sunucu Adı " ,
modal _header : "Yerel Sunucu Ayarları " ,
modal _ignorecustomname : "Sunucu Kı saltması için orijinal Sunucu Adı nı kullanı n" ,
modal _invalidurl : "Geçersiz URL" ,
modal _tabheader1 : "Sunucu" ,
modal _tabheader2 : "Simge Rengi" ,
modal _tabheader3 : "Araç İpucu Rengi" ,
submenu _resetsettings : "Sunucuyu Sı fı rla" ,
submenu _serversettings : "Ayarları değiştir"
} ;
case "uk" : // Ukrainian
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Справді скинути цей сервер?" ,
confirm _resetall : "Ви впевнені, що хочете скинути всі сервери?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Налаштування локального сервера" ,
modal _colorpicker1 : "Значок Колір" ,
modal _colorpicker2 : "Колір шрифту" ,
modal _colorpicker3 : "Колір підказки" ,
modal _colorpicker4 : "Колір шрифту" ,
modal _guildacronym : "Акронім локального сервера" ,
modal _guildbanner : "Банер" ,
modal _guildicon : "Піктограма" ,
modal _guildname : "Назва локального сервера" ,
modal _header : "Налаштування локального сервера" ,
modal _ignorecustomname : "Використовуйте оригінальне ім’я сервера для абревіатури сервера" ,
modal _invalidurl : "Недійсна URL-адреса" ,
modal _tabheader1 : "Сервер" ,
modal _tabheader2 : "Значок Колір" ,
modal _tabheader3 : "Колір підказки" ,
submenu _resetsettings : "Скинути сервер" ,
submenu _serversettings : "Змінити налаштування"
} ;
case "vi" : // Vietnamese
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Bạn có chắc chắn muốn đặt lại Máy chủ này không?" ,
confirm _resetall : "Bạn có chắc chắn muốn đặt lại tất cả Máy chủ không?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Cài đặt máy chủ cục bộ" ,
modal _colorpicker1 : "Màu biểu tượng" ,
modal _colorpicker2 : "Màu phông chữ" ,
modal _colorpicker3 : "Màu chú giải công cụ" ,
modal _colorpicker4 : "Màu phông chữ" ,
modal _guildacronym : "Từ viết tắt của máy chủ cục bộ" ,
modal _guildbanner : "Ảnh bìa" ,
modal _guildicon : "Biểu tượng" ,
modal _guildname : "Tên máy chủ cục bộ" ,
modal _header : "Cài đặt máy chủ cục bộ" ,
modal _ignorecustomname : "Sử dụng tên máy chủ ban đầu cho từ viết tắt máy chủ" ,
modal _invalidurl : "URL không hợp lệ" ,
modal _tabheader1 : "Người phục vụ" ,
modal _tabheader2 : "Màu biểu tượng" ,
modal _tabheader3 : "Màu chú giải công cụ" ,
submenu _resetsettings : "Đặt lại máy chủ" ,
submenu _serversettings : "Thay đổi cài đặt"
} ;
2021-01-15 17:54:22 +01:00
case "zh-CN" : // Chinese (China)
2020-12-21 19:56:36 +01:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "您确定要重置此服务器吗?" ,
confirm _resetall : "您确定要重置所有服务器吗?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "本地服务器设置" ,
modal _colorpicker1 : "图标颜色" ,
modal _colorpicker2 : "字体颜色" ,
modal _colorpicker3 : "工具提示颜色" ,
modal _colorpicker4 : "字体颜色" ,
modal _guildacronym : "本地服务器缩写" ,
modal _guildbanner : "旗帜" ,
modal _guildicon : "图标" ,
modal _guildname : "本地服务器名称" ,
modal _header : "本地服务器设置" ,
modal _ignorecustomname : "使用原始服务器名称作为服务器首字母缩写词" ,
modal _invalidurl : "无效的网址" ,
modal _tabheader1 : "服务器" ,
modal _tabheader2 : "图标颜色" ,
modal _tabheader3 : "工具提示颜色" ,
submenu _resetsettings : "重置服务器" ,
submenu _serversettings : "更改设置"
} ;
2021-01-15 17:54:22 +01:00
case "zh-TW" : // Chinese (Taiwan)
2020-12-21 19:56:36 +01:00
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "您確定要重置此服務器嗎?" ,
confirm _resetall : "您確定要重置所有服務器嗎?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "本地服務器設置" ,
modal _colorpicker1 : "圖標顏色" ,
modal _colorpicker2 : "字體顏色" ,
modal _colorpicker3 : "工具提示顏色" ,
modal _colorpicker4 : "字體顏色" ,
2020-12-22 20:38:51 +01:00
modal _guildacronym : "本地服務器縮寫" ,
2020-12-21 19:56:36 +01:00
modal _guildbanner : "旗幟" ,
modal _guildicon : "圖標" ,
modal _guildname : "本地服務器名稱" ,
modal _header : "本地服務器設置" ,
modal _ignorecustomname : "使用原始服務器名稱作為服務器首字母縮寫詞" ,
modal _invalidurl : "無效的網址" ,
modal _tabheader1 : "服務器" ,
modal _tabheader2 : "圖標顏色" ,
modal _tabheader3 : "工具提示顏色" ,
submenu _resetsettings : "重置服務器" ,
submenu _serversettings : "更改設置"
} ;
default : // English
return {
2020-12-22 20:38:51 +01:00
confirm _reset : "Are you sure you want to reset this Server?" ,
confirm _resetall : "Are you sure you want to reset all Servers?" ,
2020-12-21 19:56:36 +01:00
context _localserversettings : "Local Server Settings" ,
modal _colorpicker1 : "Icon Color" ,
modal _colorpicker2 : "Font Color" ,
modal _colorpicker3 : "Tooltip Color" ,
modal _colorpicker4 : "Font Color" ,
modal _guildacronym : "Local Server Acronym" ,
modal _guildbanner : "Banner" ,
modal _guildicon : "Icon" ,
modal _guildname : "Local Server Name" ,
modal _header : "Local Server Settings" ,
modal _ignorecustomname : "Use the original Server Name for the Server Acronym" ,
modal _invalidurl : "Invalid URL" ,
modal _tabheader1 : "Server" ,
modal _tabheader2 : "Icon Color" ,
modal _tabheader3 : "Tooltip Color" ,
submenu _resetsettings : "Reset Server" ,
submenu _serversettings : "Change Settings"
2020-09-19 20:49:33 +02:00
} ;
}
}
} ;
2020-10-09 21:09:35 +02:00
} ) ( window . BDFDB _Global . PluginUtils . buildPlugin ( config ) ) ;
2020-12-15 17:38:45 +01:00
} ) ( ) ;