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
2022-12-05 11:36:01 +01:00
* @ version 2.4 . 1
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 = ( _ => {
2022-09-01 14:40:11 +02:00
const changeLog = {
2022-12-05 11:36:01 +01:00
"fixed" : {
"Banners" : "work again"
}
2020-09-19 20:49:33 +02:00
} ;
2020-10-29 17:51:46 +01:00
2022-02-05 21:14:17 +01:00
return ! window . BDFDB _Global || ( ! window . BDFDB _Global . loaded && ! window . BDFDB _Global . started ) ? class {
2022-09-01 14:55:22 +02:00
constructor ( meta ) { for ( let key in meta ) this [ key ] = meta [ key ] ; }
getName ( ) { return this . name ; }
getAuthor ( ) { return this . author ; }
getVersion ( ) { return this . version ; }
getDescription ( ) { return ` The Library Plugin needed for ${ this . name } is missing. Open the Plugin Settings to download it. \n \n ${ this . description } ` ; }
2021-02-01 17:13:13 +01:00
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 ;
2022-09-01 14:55:22 +02:00
BdApi . showConfirmationModal ( "Library Missing" , ` The Library Plugin needed for ${ this . 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
} ) ;
}
2022-09-01 14:55:22 +02:00
if ( ! window . BDFDB _Global . pluginQueue . includes ( this . name ) ) window . BDFDB _Global . pluginQueue . push ( this . 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" ) ;
2022-09-01 14:55:22 +02: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 ${ this . 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" } ,
2022-11-30 13:19:59 +01:00
invites : { value : true , description : "Server Invites" } ,
2021-05-07 14:23:52 +02:00
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
2022-11-30 13:19:59 +01:00
this . modulePatches = {
before : [
2022-12-05 11:36:01 +01:00
"ChannelsList" ,
2022-11-30 13:19:59 +01:00
"GuildHeader" ,
"GuildIconWrapper" ,
"GuildItem" ,
"InviteGuildName" ,
"QuickSwitchChannelResult" ,
"QuickSwitchGuildResult"
] ,
after : [
"BlobMask" ,
"DefaultChannelEmptyMessage" ,
"GuildHeader" ,
"GuildIcon" ,
"GuildIconWrapper" ,
"GuildItem" ,
"UserProfileMutualGuilds" ,
"RecentsChannelHeader"
]
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
2022-08-29 13:46:12 +02:00
onStart ( ) {
2020-11-19 16:51:14 +01:00
BDFDB . PatchUtils . patch ( this , BDFDB . LibraryModules . IconUtils , "getGuildBannerURL" , { instead : e => {
2022-09-27 14:48:10 +02:00
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( e . methodArguments [ 0 ] . id ) ;
2020-02-04 08:20:40 +01:00
if ( guild ) {
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
2022-08-29 13:46:12 +02:00
BDFDB . PatchUtils . patch ( this , BDFDB . LibraryModules . QuerySearchUtils , "queryGuilds" , { after : e => {
if ( ! e . methodArguments [ 0 ] . query ) return ;
2022-09-27 20:05:55 +02:00
for ( let id in changedGuilds ) if ( changedGuilds [ id ] && changedGuilds [ id ] . name && changedGuilds [ id ] . name . toLocaleLowerCase ( ) . indexOf ( e . methodArguments [ 0 ] . query . toLocaleLowerCase ( ) ) > - 1 && ! e . returnValue . find ( n => n . record && n . record . id == id && n . type == BDFDB . DiscordConstants . AutocompleterResultTypes . GUILD ) ) {
2022-09-27 14:48:10 +02:00
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( id ) ;
2022-08-29 13:46:12 +02:00
if ( guild ) e . returnValue . push ( {
comparator : guild . name ,
record : guild ,
score : 30000 ,
sortable : guild . name . toLocaleLowerCase ( ) ,
2022-09-27 20:05:55 +02:00
type : BDFDB . DiscordConstants . AutocompleterResultTypes . GUILD
2022-08-29 13:46:12 +02:00
} ) ;
}
} } ) ;
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" ) ;
2022-10-10 15:53:50 +02:00
BDFDB . DiscordUtils . rerenderAll ( ) ;
2020-09-19 20:49:33 +02:00
}
onGuildContextMenu ( e ) {
2022-11-30 13:19:59 +01:00
if ( ! e . instance . props . guild ) return ;
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 , {
label : this . labels . context _localserversettings ,
id : BDFDB . ContextMenuUtils . createItemId ( this . name , "settings-submenu" ) ,
children : BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuGroup , {
children : [
BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuItem , {
label : this . labels . submenu _serversettings ,
id : BDFDB . ContextMenuUtils . createItemId ( this . name , "settings-change" ) ,
action : _ => this . openGuildSettingsModal ( e . instance . props . guild . id )
} ) ,
BDFDB . ContextMenuUtils . createItem ( BDFDB . LibraryComponents . MenuItems . MenuItem , {
label : this . labels . submenu _resetsettings ,
id : BDFDB . ContextMenuUtils . createItemId ( this . name , "settings-reset" ) ,
color : BDFDB . DiscordConstants . MenuItemColors . DANGER ,
disabled : ! changedGuilds [ e . instance . props . guild . id ] ,
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-02-04 08:20:40 +01:00
} )
2022-11-30 13:19:59 +01:00
} )
} ) ) ;
2020-02-04 08:20:40 +01:00
}
2019-09-04 12:34:02 +02:00
2021-11-03 11:42:50 +01:00
processGuildItem ( e ) {
2022-11-30 13:19:59 +01:00
if ( ! this . settings . places . guildList || ! BDFDB . GuildUtils . is ( e . instance . props . guild ) || ! e . instance . props . guild . joinedAt ) return ;
if ( ! e . returnvalue ) e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
else {
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 ) {
2022-11-30 13:19:59 +01:00
if ( ! this . settings . places . guildList ) return ;
let [ children , index ] = BDFDB . ReactUtils . findParent ( e . returnvalue , { name : "NavItem" } ) ;
if ( index == - 1 || ! children [ index ] . props . to || ! children [ index ] . props . to . pathname ) return ;
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( ( children [ index ] . props . to . pathname . split ( "/channels/" ) [ 1 ] || "" ) . split ( "/" ) [ 0 ] ) ;
if ( ! guild || ! changedGuilds [ guild . id ] ) return ;
if ( changedGuilds [ guild . id ] . shortName ) children [ index ] . props . name = changedGuilds [ guild . id ] . shortName . split ( "" ) . join ( " " ) ;
else if ( changedGuilds [ guild . id ] . name && changedGuilds [ guild . id ] . ignoreCustomName ) children [ index ] . props . name = guild . name ;
2019-12-01 18:25:43 +01:00
}
2020-09-19 20:49:33 +02:00
2022-11-30 13:19:59 +01:00
processGuildIcon ( e ) {
this . processGuildIconWrapper ( e ) ;
2020-02-04 08:20:40 +01:00
}
2020-09-19 20:49:33 +02:00
2022-11-30 13:19:59 +01:00
processGuildIconWrapper ( e ) {
if ( ! BDFDB . GuildUtils . is ( e . instance . props . guild ) || ! changedGuilds [ e . instance . props . guild . id ] || ! e . instance . props . guild . joinedAt ) return ;
let change = true ;
if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . guildfolderguildicon ) > - 1 ) change = this . settings . places . guildList ;
else if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . listavatar ) > - 1 ) change = this . settings . places . mutualGuilds ;
2022-11-30 22:41:51 +01:00
if ( change ) e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2021-05-07 14:23:52 +02:00
}
2019-12-01 18:25:43 +01:00
2022-11-30 13:19:59 +01:00
processUserProfileMutualGuilds ( e ) {
if ( ! this . settings . places . mutualGuilds || ! e . returnvalue . props . children || ! e . returnvalue . props . children . length ) return ;
for ( let row of e . returnvalue . props . 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
2022-08-29 13:46:12 +02:00
processQuickSwitchGuildResult ( e ) {
2022-11-30 13:19:59 +01:00
if ( this . settings . places . quickSwitcher && e . instance . props . guild ) e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2019-12-30 11:34:44 +01:00
}
2020-09-19 20:49:33 +02:00
processQuickSwitchChannelResult ( e ) {
2022-11-30 13:19:59 +01:00
if ( this . settings . places . quickSwitcher && e . instance . props . channel && e . instance . props . channel . guild _id ) e . instance . props . children . props . children = this . getGuildData ( e . instance . props . channel . guild _id ) . name ;
2020-01-02 11:39:22 +01:00
}
2020-09-19 20:49:33 +02:00
processRecentsChannelHeader ( e ) {
2022-11-30 13:19:59 +01:00
if ( ! this . settings . places . recentMentions || ! e . instance . props . channel || ! e . instance . props . channel . guild _id || ! changedGuilds [ e . instance . props . channel . guild _id ] || ! changedGuilds [ e . instance . props . channel . guild _id ] . name ) return ;
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( e . instance . props . channel . guild _id ) ;
if ( ! guild ) return ;
let guildName = BDFDB . ReactUtils . findChild ( e . returnvalue , { props : [ [ "className" , BDFDB . disCN . recentmentionsguildname ] ] } ) ;
if ( guildName && typeof guildName . props . children == "string" ) guildName . props . children = guildName . props . children . replace ( guild . name , changedGuilds [ e . instance . props . channel . guild _id ] . name ) ;
2019-04-26 14:57:08 +02:00
}
2020-09-19 20:49:33 +02:00
2022-12-05 11:36:01 +01:00
processChannelsList ( e ) {
if ( ! this . settings . places . guildHeader || ! e . instance . props . guild || ! changedGuilds [ e . instance . props . guild . id ] ) return ;
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
if ( e . instance . props . guild . banner && ! e . instance . props . guildBanner ) e . instance . props . guildBanner = e . instance . props . guild . banner ;
2019-04-26 14:57:08 +02:00
}
2020-09-19 20:49:33 +02:00
processGuildHeader ( e ) {
2022-12-05 11:36:01 +01:00
if ( ! this . settings . places . guildHeader || ! e . instance . props . guild || ! changedGuilds [ e . instance . props . guild . id ] ) return ;
2022-11-30 13:19:59 +01:00
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2022-12-05 11:36:01 +01:00
if ( e . instance . props . guild . banner && ! e . instance . props . guildBanner ) {
e . instance . props . bannerVisible = true ;
e . instance . props . guildBanner = e . instance . props . guild . banner ;
}
2022-11-30 13:19:59 +01:00
let oldName = ( BDFDB . LibraryStores . GuildStore . getGuild ( e . instance . props . guild . id ) || { } ) . name ;
if ( e . returnvalue && this . settings . general . addOriginalTooltip && oldName != e . instance . props . guild . name ) {
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 ) {
2022-11-30 13:19:59 +01:00
if ( this . settings . places . invites && e . instance . props . guild && e . instance . props . guild . joinedAt ) e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2020-01-02 11:39:22 +01:00
}
2020-09-19 20:49:33 +02:00
2022-11-30 13:19:59 +01:00
processDefaultChannelEmptyMessage ( e ) {
if ( ! this . settings . places . chat || ! e . instance . props . channel || ! changedGuilds [ e . instance . props . channel . guild _id ] || ! changedGuilds [ e . instance . props . channel . guild _id ] . name ) return ;
let name = ( BDFDB . LibraryStores . GuildStore . getGuild ( e . instance . props . channel . guild _id ) || { } ) . name ;
let guildName = name && BDFDB . ReactUtils . findChild ( e . returnvalue , { props : [ [ "className" , BDFDB . disCN . defaultchannelwelcometitle ] ] } ) ;
if ( guildName ) for ( let child of guildName . props . children ) if ( child && child . props && child . props . children && child . props . children [ 0 ] == name ) child . props . children [ 0 ] = changedGuilds [ e . instance . props . channel . guild _id ] . name ;
2020-10-29 17:51:46 +01:00
}
2020-09-19 20:49:33 +02:00
getGuildData ( guildId , change = true ) {
2022-09-27 14:48:10 +02:00
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( guildId ) ;
2020-09-19 20:49:33 +02:00
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 ;
2022-09-27 11:53:04 +02:00
newGuildObject . acronym = data . shortName && data . shortName . replace ( /\s/g , "" ) || BDFDB . StringUtils . getAcronym ( ! data . ignoreCustomName && data . name || nativeObject . name ) ;
2020-09-19 20:49:33 +02:00
if ( data . removeIcon ) {
newGuildObject . icon = null ;
2021-11-03 11:42:50 +01:00
newGuildObject . getIconURL = _ => { return null ; } ;
2020-09-19 20:49:33 +02:00
}
else if ( data . url ) {
newGuildObject . icon = data . url ;
2021-11-03 11:42:50 +01:00
newGuildObject . getIconURL = _ => { return data . url ; } ;
2020-09-19 20:49:33 +02:00
}
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
}
2019-09-04 12:34:02 +02:00
2020-09-19 20:49:33 +02:00
openGuildSettingsModal ( guildId ) {
2022-09-27 14:48:10 +02:00
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( guildId ) ;
2020-09-19 20:49:33 +02:00
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 ) {
2022-09-27 11:53:04 +02:00
acronymInput . props . placeholder = value && BDFDB . StringUtils . getAcronym ( value ) || guild . acronym ;
2021-01-29 19:48:09 +01:00
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 ; } ,
2022-09-27 11:53:04 +02:00
placeholder : ! data . ignoreCustomName && data . name && BDFDB . StringUtils . getAcronym ( data . name ) || guild . acronym ,
2021-01-29 19:48:09 +01:00
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 ,
2022-11-22 01:30:30 +01:00
tag : BDFDB . LibraryComponents . FormComponents . FormTags . H5 ,
2020-09-19 20:49:33 +02:00
value : data . ignoreCustomName ,
2021-01-29 19:48:09 +01:00
onChange : value => {
newData . ignoreCustomName = value ;
2022-09-27 11:53:04 +02:00
acronymInput . props . placeholder = ! value && newData . name && BDFDB . StringUtils . getAcronym ( newData . name ) || guild . acronym ;
2021-01-29 19:48:09 +01:00
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 ,
2022-11-22 01:30:30 +01:00
tag : BDFDB . LibraryComponents . FormComponents . FormTags . H5 ,
2022-08-29 13:46:12 +02:00
children : BDFDB . LanguageUtils . LibraryStrings . 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 ,
2022-11-22 01:30:30 +01:00
tag : BDFDB . LibraryComponents . FormComponents . FormTags . H5 ,
2020-09-19 20:49:33 +02:00
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 ;
2022-11-30 22:41:51 +01:00
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 ) => {
2022-11-30 22:41:51 +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 ,
2022-11-22 01:30:30 +01:00
tag : BDFDB . LibraryComponents . FormComponents . FormTags . H5 ,
2022-08-29 13:46:12 +02:00
children : BDFDB . LanguageUtils . LibraryStrings . 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 ,
2022-11-22 01:30:30 +01:00
tag : BDFDB . LibraryComponents . FormComponents . FormTags . H5 ,
2020-09-19 20:49:33 +02:00
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 ;
2022-11-30 22:41:51 +01:00
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 ) => {
2022-11-30 22:41:51 +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 _colorpicker3 ,
2020-09-19 20:49:33 +02:00
className : BDFDB . disCN . marginbottom20 ,
children : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
color : data . color3 ,
2022-11-30 22:41:51 +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 ,
2022-11-30 22:41:51 +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 ) ;
}
2022-12-01 21:38:21 +01:00
else if ( url . indexOf ( "data:" ) == 0 ) {
instance . props . success = true ;
delete instance . props . errorMessage ;
callback ( url ) ;
}
2021-01-29 19:48:09 +01:00
else instance . checkTimeout = BDFDB . TimeUtils . timeout ( _ => {
2022-01-11 18:13:34 +01:00
BDFDB . LibraryRequires . request ( url , { agentOptions : { rejectUnauthorized : false } } , ( error , response , result ) => {
2021-01-29 19:48:09 +01:00
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 || { } ;
2022-09-27 14:48:10 +02:00
let guild = BDFDB . LibraryStores . GuildStore . getGuild ( id ) ;
2020-09-19 20:49:33 +02:00
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 _guildname : "Име на локален сървър" ,
modal _header : "Настройки на локалния сървър" ,
modal _ignorecustomname : "Използвайте оригиналното име на сървъра за съкращението на сървъра" ,
modal _invalidurl : "Невалиден адрес" ,
modal _tabheader1 : "Сървър" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Цвят на подсказка" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "Lokalt servernavn" ,
modal _header : "Lokale serverindstillinger" ,
modal _ignorecustomname : "Brug det originale servernavn til serverakronymet" ,
modal _invalidurl : "Ugyldig URL" ,
modal _tabheader1 : "Server" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Tooltipfarbe" ,
2020-12-21 19:56:36 +01:00
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 : "Είστε βέβαιοι ότι θέλετε ν α επαναφέρετε όλους τους διακομιστές;" ,
2023-04-19 10:39:58 +02:00
context _localserversettings : "Ρυθμίσεις διακομιστή (τοπικά)" ,
2020-12-21 19:56:36 +01:00
modal _colorpicker1 : "Χρώμα εικονιδίου" ,
modal _colorpicker2 : "Χρώμα γραμματοσειράς" ,
modal _colorpicker3 : "Χρώμα επεξήγησης εργαλείου" ,
modal _colorpicker4 : "Χρώμα γραμματοσειράς" ,
modal _guildacronym : "Τοπικό αρκτικόλεξο διακομιστή" ,
modal _guildname : "Τοπικό όνομα διακομιστή" ,
2023-04-19 10:39:58 +02:00
modal _header : "Ρυθμίσεις διακομιστή (τοπικά)" ,
2020-12-21 19:56:36 +01:00
modal _ignorecustomname : "Χρησιμοποιήστε το αρχικό όνομα διακομιστή γ ι α το αρκτικόλεξο διακομιστή" ,
modal _invalidurl : "Μη έγκυρη διεύθυνση URL" ,
2023-04-19 10:39:58 +02:00
modal _tabheader1 : "Διακομιστής" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Χρώμα επεξήγησης εργαλείου" ,
2020-12-21 19:56:36 +01:00
submenu _resetsettings : "Επαναφορά διακομιστή" ,
2023-04-19 10:39:58 +02:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Color de información sobre herramientas" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Työkaluvihjeen väri" ,
2020-12-21 19:56:36 +01:00
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" ,
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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Couleur de l'info-bulle" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Boja opisa" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Tooltip Color" ,
2020-12-22 20:38:51 +01:00
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" ,
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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Colore della descrizione comando" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "ローカルサーバー名" ,
modal _header : "ローカルサーバー設定" ,
modal _ignorecustomname : "サーバーの頭字語には元のサーバー名を使用します" ,
modal _invalidurl : "無効なURL" ,
modal _tabheader1 : "サーバ" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "ツールチップの色" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "로컬 서버 이름" ,
modal _header : "로컬 서버 설정" ,
modal _ignorecustomname : "서버 약어에 원래 서버 이름 사용" ,
modal _invalidurl : "잘못된 URL" ,
modal _tabheader1 : "섬기는 사람" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "툴팁 색상" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "Vietinio serverio pavadinimas" ,
modal _header : "Vietinio serverio nustatymai" ,
modal _ignorecustomname : "Serverio akronimui naudokite originalų serverio pavadinimą" ,
modal _invalidurl : "Neteisingas URL" ,
modal _tabheader1 : "Serveris" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Patarimo spalva" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "Lokale servernaam" ,
modal _header : "Lokale serverinstellingen" ,
modal _ignorecustomname : "Gebruik de oorspronkelijke servernaam voor het serveracroniem" ,
modal _invalidurl : "Ongeldige URL" ,
modal _tabheader1 : "Server" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Tooltipkleur" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "Lokalt servernavn" ,
modal _header : "Lokale serverinnstillinger" ,
modal _ignorecustomname : "Bruk det originale servernavnet for serverakronymet" ,
modal _invalidurl : "Ugyldig URL" ,
modal _tabheader1 : "Server" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Kolor etykiety narzędzi" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Cor da dica de ferramenta" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Culoare sfat" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "Имя локального сервера" ,
modal _header : "Настройки локального сервера" ,
modal _ignorecustomname : "Используйте исходное имя сервера для аббревиатуры сервера" ,
modal _invalidurl : "Неверная ссылка" ,
modal _tabheader1 : "Сервер" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Цвет всплывающей подсказки" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Verktygstipsfärg" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "ชื่อเซิร์ฟเวอร์ภายใน" ,
modal _header : "การตั้งค่าเซิร์ฟเวอร์ภายใน" ,
modal _ignorecustomname : "ใช้ชื่อเซิร์ฟเวอร์เดิมสำหรับตัวย่อเซิร์ฟเวอร์" ,
modal _invalidurl : "URL ไม่ถูกต้อง" ,
modal _tabheader1 : "เซิร์ฟเวอร์" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "เคล็ดลับเครื่องมือสี" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Araç İpucu Rengi" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "Назва локального сервера" ,
modal _header : "Налаштування локального сервера" ,
modal _ignorecustomname : "Використовуйте оригінальне ім’я сервера для абревіатури сервера" ,
modal _invalidurl : "Недійсна URL-адреса" ,
modal _tabheader1 : "Сервер" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Колір підказки" ,
2020-12-21 19:56:36 +01:00
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 _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ụ" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Màu chú giải công cụ" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "本地服务器名称" ,
modal _header : "本地服务器设置" ,
modal _ignorecustomname : "使用原始服务器名称作为服务器首字母缩写词" ,
modal _invalidurl : "无效的网址" ,
modal _tabheader1 : "服务器" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "工具提示颜色" ,
2020-12-21 19:56:36 +01:00
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 _guildname : "本地服務器名稱" ,
modal _header : "本地服務器設置" ,
modal _ignorecustomname : "使用原始服務器名稱作為服務器首字母縮寫詞" ,
modal _invalidurl : "無效的網址" ,
modal _tabheader1 : "服務器" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "工具提示顏色" ,
2020-12-21 19:56:36 +01:00
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 _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" ,
2022-11-30 22:41:51 +01:00
modal _tabheader2 : "Tooltip Color" ,
2020-12-21 19:56:36 +01:00
submenu _resetsettings : "Reset Server" ,
submenu _serversettings : "Change Settings"
2020-09-19 20:49:33 +02:00
} ;
}
}
} ;
2022-09-01 14:40:11 +02:00
} ) ( window . BDFDB _Global . PluginUtils . buildPlugin ( changeLog ) ) ;
2023-04-19 10:39:58 +02:00
} ) ( ) ;