2019-09-20 22:32:52 +02:00
//META{"name":"EditServers","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EditServers","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/EditServers/EditServers.plugin.js"}*//
2018-10-11 10:21:26 +02:00
class EditServers {
2019-01-17 23:48:29 +01:00
getName ( ) { return "EditServers" ; }
2019-12-02 20:09:59 +01:00
getVersion ( ) { return "2.1.5" ; }
2019-12-01 18:25:43 +01:00
2019-01-17 23:48:29 +01:00
getAuthor ( ) { return "DevilBro" ; }
getDescription ( ) { return "Allows you to change the icon, name and color of servers." ; }
2019-01-26 22:45:19 +01:00
2019-09-04 12:34:02 +02:00
constructor ( ) {
2019-06-06 19:08:09 +02:00
this . changelog = {
2019-12-02 14:16:56 +01:00
"improved" : [ [ "Serveracronyms" , "You can now choose to use the native serveracronym for servers without icons even if you set a local custom servername" ] , [ "New Library Structure & React" , "Restructured my Library and switched to React rendering instead of DOM manipulation" ] ]
2019-09-04 12:34:02 +02:00
} ;
2019-11-14 17:56:26 +01:00
this . patchedModules = {
2019-12-01 18:25:43 +01:00
before : {
Guild : "render" ,
GuildIconWrapper : "render" ,
MutualGuilds : "render" ,
FriendRow : "render" ,
QuickSwitcher : "render" ,
QuickSwitchChannelResult : "render" ,
GuildSidebar : "render" ,
GuildHeader : "render"
} ,
2019-11-14 17:56:26 +01:00
after : {
2019-12-01 18:25:43 +01:00
Guild : "render" ,
BlobMask : "render" ,
GuildIconWrapper : "render" ,
GuildIcon : "render" ,
GuildHeader : "render"
2019-11-14 17:56:26 +01:00
}
2019-01-06 23:37:28 +01:00
} ;
2019-09-04 12:34:02 +02:00
}
2018-10-11 10:21:26 +02:00
2019-09-04 12:34:02 +02:00
initConstructor ( ) {
2019-02-13 11:15:00 +01:00
this . defaults = {
settings : {
2019-02-13 19:57:35 +01:00
addOriginalTooltip : { value : true , inner : false , description : "Hovering over a changed Server Header shows the original Name as Tooltip" } ,
changeInGuildList : { value : true , inner : true , description : "Server List" } ,
changeInMutualGuilds : { value : true , inner : true , description : "Mutual Servers" } ,
2019-12-01 18:25:43 +01:00
changeInQuickSwitcher : { value : true , inner : true , description : "Quick Switcher" } ,
changeInGuildHeader : { value : true , inner : true , description : "Server Header" }
2019-02-13 11:15:00 +01:00
}
} ;
2018-10-11 10:21:26 +02:00
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
getSettingsPanel ( ) {
2019-01-22 11:28:32 +01:00
if ( ! global . BDFDB || typeof BDFDB != "object" || ! BDFDB . loaded || ! this . started ) return ;
2019-10-22 23:04:35 +02:00
let settings = BDFDB . DataUtils . get ( this , "settings" ) ;
2019-11-05 08:30:31 +01:00
let settingsitems = [ ] , inneritems = [ ] ;
2019-10-17 11:36:34 +02:00
2019-11-01 22:47:23 +01:00
for ( let key in settings ) ( ! this . defaults . settings [ key ] . inner ? settingsitems : inneritems ) . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsSaveItem , {
2019-10-17 11:36:34 +02:00
className : BDFDB . disCN . marginbottom8 ,
2019-11-01 22:47:23 +01:00
type : "Switch" ,
2019-10-17 11:36:34 +02:00
plugin : this ,
keys : [ "settings" , key ] ,
label : this . defaults . settings [ key ] . description ,
value : settings [ key ]
} ) ) ;
2019-10-22 18:55:25 +02:00
settingsitems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsPanelInner , {
2019-10-17 18:54:51 +02:00
title : "Change Servers in:" ,
2019-11-05 08:56:21 +01:00
first : settingsitems . length == 0 ,
2019-10-17 18:54:51 +02:00
children : inneritems
2019-10-17 11:36:34 +02:00
} ) ) ;
2019-10-22 18:55:25 +02:00
settingsitems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
2019-10-21 12:11:46 +02:00
type : "Button" ,
2019-10-17 11:36:34 +02:00
className : BDFDB . disCN . marginbottom8 ,
color : BDFDB . LibraryComponents . Button . Colors . RED ,
label : "Reset all Servers" ,
onClick : _ => {
2019-12-01 18:25:43 +01:00
BDFDB . ModalUtils . confirm ( this , "Are you sure you want to reset all Servers?" , ( ) => {
2019-10-22 19:49:57 +02:00
BDFDB . DataUtils . remove ( this , "servers" ) ;
2019-12-01 18:25:43 +01:00
BDFDB . ModuleUtils . forceAllUpdates ( this ) ; ;
2019-10-17 11:36:34 +02:00
} ) ;
} ,
2019-10-19 11:41:39 +02:00
children : BDFDB . LanguageUtils . LanguageStrings . RESET
2019-10-17 11:36:34 +02:00
} ) ) ;
2019-10-22 18:55:25 +02:00
return BDFDB . PluginUtils . createSettingsPanel ( this , settingsitems ) ;
2018-10-11 10:21:26 +02:00
}
//legacy
load ( ) { }
start ( ) {
2019-02-04 09:13:15 +01:00
if ( ! global . BDFDB ) global . BDFDB = { myPlugins : { } } ;
if ( global . BDFDB && global . BDFDB . myPlugins && typeof global . BDFDB . myPlugins == "object" ) global . BDFDB . myPlugins [ this . getName ( ) ] = this ;
2019-05-26 13:55:26 +02:00
var libraryScript = document . querySelector ( 'head script#BDFDBLibraryScript' ) ;
if ( ! libraryScript || ( performance . now ( ) - libraryScript . getAttribute ( "date" ) ) > 600000 ) {
2018-10-11 10:21:26 +02:00
if ( libraryScript ) libraryScript . remove ( ) ;
libraryScript = document . createElement ( "script" ) ;
2019-05-26 13:55:26 +02:00
libraryScript . setAttribute ( "id" , "BDFDBLibraryScript" ) ;
2018-10-11 10:21:26 +02:00
libraryScript . setAttribute ( "type" , "text/javascript" ) ;
2019-10-18 10:56:41 +02:00
libraryScript . setAttribute ( "src" , "https://mwittrien.github.io/BetterDiscordAddons/Plugins/BDFDB.min.js" ) ;
2019-01-17 23:48:29 +01:00
libraryScript . setAttribute ( "date" , performance . now ( ) ) ;
2019-05-26 13:55:26 +02:00
libraryScript . addEventListener ( "load" , ( ) => { this . initialize ( ) ; } ) ;
2018-10-11 10:21:26 +02:00
document . head . appendChild ( libraryScript ) ;
2019-05-26 13:55:26 +02:00
}
else if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) this . initialize ( ) ;
2019-11-01 10:27:07 +01:00
this . startTimeout = setTimeout ( ( ) => {
try { return this . initialize ( ) ; }
catch ( err ) { console . error ( ` %c[ ${ this . getName ( ) } ]%c ` , "color: #3a71c1; font-weight: 700;" , "" , "Fatal Error: Could not initiate plugin! " + err ) ; }
} , 30000 ) ;
2018-10-11 10:21:26 +02:00
}
initialize ( ) {
2019-01-17 23:48:29 +01:00
if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) {
2019-01-22 11:05:54 +01:00
if ( this . started ) return ;
2019-10-22 18:55:25 +02:00
BDFDB . PluginUtils . init ( this ) ;
2019-01-26 22:45:19 +01:00
2019-12-01 18:25:43 +01:00
BDFDB . ModuleUtils . patch ( this , BDFDB . LibraryModules . IconUtils , "getGuildBannerURL" , { instead : e => {
2019-09-11 12:14:43 +02:00
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( e . methodArguments [ 0 ] . id ) ;
2019-03-14 14:06:14 +01:00
if ( guild ) {
if ( e . methodArguments [ 0 ] . id == "410787888507256842" ) return guild . banner ;
2019-10-22 20:16:05 +02:00
let data = BDFDB . DataUtils . load ( this , "servers" , guild . id ) ;
2019-03-14 14:06:14 +01:00
if ( data && data . banner && ! data . removeBanner ) return data . banner ;
}
return e . callOriginalMethod ( ) ;
} } ) ;
2019-12-01 18:25:43 +01:00
BDFDB . ModuleUtils . patch ( this , BDFDB . LibraryComponents . GuildComponents . Guild . prototype , "render" , {
before : e => { this . processGuild ( { instance : e . thisObject , returnvalue : e . returnValue , methodname : "render" } ) ; } ,
after : e => { this . processGuild ( { instance : e . thisObject , returnvalue : e . returnValue , methodname : "render" } ) ; }
} ) ;
BDFDB . ModuleUtils . patch ( this , BDFDB . LibraryComponents . Connectors . Link . prototype , "render" , {
after : e => {
if ( e . thisObject . props . className && e . thisObject . props . className . indexOf ( BDFDB . disCN . guildiconwrapper ) > - 1 ) this . processGuildAcronym ( { instance : e . thisObject , returnvalue : e . returnValue , methodname : "render" } ) ;
}
} ) ;
2019-10-17 11:36:34 +02:00
2019-12-01 18:25:43 +01:00
BDFDB . ModuleUtils . forceAllUpdates ( this ) ; ;
2018-10-11 10:21:26 +02:00
}
2019-11-01 10:14:50 +01:00
else console . error ( ` %c[ ${ this . getName ( ) } ]%c ` , "color: #3a71c1; font-weight: 700;" , "" , "Fatal Error: Could not load BD functions!" ) ;
2018-10-11 10:21:26 +02:00
}
stop ( ) {
2019-01-17 23:48:29 +01:00
if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) {
2019-10-22 11:37:23 +02:00
this . stopping = true ;
2019-10-22 19:49:57 +02:00
let data = BDFDB . DataUtils . load ( this , "servers" ) ;
BDFDB . DataUtils . remove ( this , "servers" ) ;
2019-12-01 18:25:43 +01:00
try { BDFDB . ModuleUtils . forceAllUpdates ( this ) ; ; } catch ( err ) { }
2019-10-22 19:49:57 +02:00
BDFDB . DataUtils . save ( data , this , "servers" ) ;
2019-09-04 12:34:02 +02:00
2019-10-22 18:55:25 +02:00
for ( let guildobj of BDFDB . GuildUtils . getAll ( ) ) if ( guildobj . instance ) {
2019-05-20 13:50:57 +02:00
delete guildobj . instance . props . guild . EditServersCachedBanner ;
2019-03-14 14:06:14 +01:00
}
2019-01-26 22:45:19 +01:00
2019-10-22 18:55:25 +02:00
BDFDB . PluginUtils . clear ( this ) ;
2018-10-11 10:21:26 +02:00
}
}
// begin of own functions
2019-09-11 12:14:43 +02:00
2019-12-01 18:25:43 +01:00
onGuildContextMenu ( e ) {
if ( e . instance . props . guild ) {
let [ children , index ] = BDFDB . ReactUtils . findChildren ( e . returnvalue , { name : [ "FluxContainer(MessageDeveloperModeGroup)" , "DeveloperModeGroup" ] } ) ;
2019-12-05 09:10:14 +01:00
children . splice ( index > - 1 ? index : children . length , 0 , BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ContextMenuItems . Group , {
2019-09-11 12:14:43 +02:00
children : [
2019-12-05 09:10:14 +01:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ContextMenuItems . Sub , {
2019-09-11 12:14:43 +02:00
label : this . labels . context _localserversettings _text ,
2019-12-05 09:10:14 +01:00
render : [ BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ContextMenuItems . Group , {
2019-09-11 12:14:43 +02:00
children : [
2019-12-05 09:10:14 +01:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ContextMenuItems . Item , {
2019-09-11 12:14:43 +02:00
label : this . labels . submenu _serversettings _text ,
2019-11-21 11:38:04 +01:00
action : _ => {
2019-12-01 18:25:43 +01:00
BDFDB . ContextMenuUtils . close ( e . instance ) ;
2019-12-02 14:16:56 +01:00
this . showServerSettings ( e . instance . props . guild . id ) ;
2019-09-11 12:14:43 +02:00
}
} ) ,
2019-12-05 09:10:14 +01:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ContextMenuItems . Item , {
2019-09-11 12:14:43 +02:00
label : this . labels . submenu _resetsettings _text ,
2019-12-01 18:25:43 +01:00
disabled : ! BDFDB . DataUtils . load ( this , "servers" , e . instance . props . guild . id ) ,
2019-11-21 11:38:04 +01:00
action : _ => {
2019-12-01 18:25:43 +01:00
BDFDB . ContextMenuUtils . close ( e . instance ) ;
BDFDB . DataUtils . remove ( this , "servers" , e . instance . props . guild . id ) ;
BDFDB . ModuleUtils . forceAllUpdates ( this ) ; ;
2019-09-11 12:14:43 +02:00
}
} )
]
} ) ]
} )
]
2019-12-01 18:25:43 +01:00
} ) ) ;
2018-10-11 10:21:26 +02:00
}
}
2019-09-04 12:34:02 +02:00
2019-12-01 18:25:43 +01:00
processGuild ( e ) {
if ( e . instance . props . guild && BDFDB . DataUtils . get ( this , "settings" , "changeInGuildList" ) ) {
2019-12-02 14:16:56 +01:00
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2019-12-01 18:25:43 +01:00
if ( e . returnvalue ) {
let data = BDFDB . DataUtils . load ( this , "servers" , e . instance . props . guild . id ) ;
2019-12-02 13:07:58 +01:00
if ( data && ( data . color3 || data . color4 ) ) {
2019-12-01 18:25:43 +01:00
let [ children , index ] = BDFDB . ReactUtils . findChildren ( 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 ,
backgroundColor : data . color3 ,
fontColor : data . color4
} ,
children : children [ index ] . props . children
} ) ;
}
}
2019-04-26 14:57:08 +02:00
}
}
2019-09-04 12:34:02 +02:00
2019-12-01 18:25:43 +01:00
processBlobMask ( e ) {
if ( BDFDB . DataUtils . get ( this , "settings" , "changeInGuildList" ) ) {
let [ children , index ] = BDFDB . ReactUtils . findChildren ( e . returnvalue , { name : "NavItem" } ) ;
2019-12-02 14:16:56 +01:00
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 = BDFDB . DataUtils . load ( this , "servers" , 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 ;
}
}
2019-12-01 18:25:43 +01:00
}
2019-04-26 14:57:08 +02:00
}
}
2019-12-01 18:25:43 +01:00
processGuildAcronym ( e ) {
if ( typeof e . returnvalue . props . children == "function" && BDFDB . DataUtils . get ( this , "settings" , "changeInGuildList" ) ) {
let data = BDFDB . DataUtils . load ( this , "servers" , ( e . instance . props . to . pathname . split ( "/channels/" ) [ 1 ] || "" ) . split ( "/" ) [ 0 ] ) ;
if ( data ) {
let renderChildren = e . returnvalue . props . children ;
e . returnvalue . props . children = ( ... args ) => {
let renderedChildren = renderChildren ( ... args ) ;
let [ children , index ] = BDFDB . ReactUtils . findChildren ( renderedChildren , { props : [ [ "className" , BDFDB . disCN . guildiconacronym ] ] } ) ;
if ( index > - 1 ) {
let fontGradient = BDFDB . ObjectUtils . is ( data . color2 ) ;
children [ index ] . props . style = Object . assign ( { } , children [ index ] . 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 ) children [ index ] . props . children = BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextGradientElement , {
gradient : BDFDB . ColorUtils . createGradient ( data . color2 ) ,
children : children [ index ] . props . children
} ) ;
}
return renderedChildren ;
} ;
}
}
}
processGuildIconWrapper ( e ) {
if ( e . instance . props . guild ) {
let settings = BDFDB . DataUtils . get ( this , "settings" ) ;
2019-12-02 14:16:56 +01: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 , settings . changeInGuildList ) ;
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 , settings . changeInMutualGuilds ) ;
else e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2019-12-01 18:25:43 +01:00
}
}
processGuildIcon ( e ) {
if ( e . instance . props . guild && e . instance . props . style && ( ! e . instance . props . style . backgroundImage || e . instance . props . style . backgroundImage == "none" ) ) {
let data = BDFDB . DataUtils . load ( this , "servers" , e . instance . props . guild . id ) ;
if ( data ) {
let settings = BDFDB . DataUtils . get ( this , "settings" ) ;
if ( e . instance . props . className && e . instance . props . className . indexOf ( BDFDB . disCN . guildfolderguildicon ) > - 1 ) this . changeGuildIcon ( e , data , settings . changeInGuildList ) ;
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 , settings . changeInMutualGuilds ) ;
else this . changeGuildIcon ( e , data ) ;
}
2019-04-26 14:57:08 +02:00
}
}
2019-12-01 18:25:43 +01:00
processMutualGuilds ( e ) {
2019-12-02 14:16:56 +01:00
if ( BDFDB . DataUtils . get ( this , "settings" , "changeInMutualGuilds" ) ) for ( let i in e . instance . props . mutualGuilds ) e . instance . props . mutualGuilds [ i ] . guild = this . getGuildData ( e . instance . props . mutualGuilds [ i ] . guild . id ) ;
2019-12-01 18:25:43 +01:00
}
processFriendRow ( e ) {
2019-12-02 14:16:56 +01:00
if ( BDFDB . DataUtils . get ( this , "settings" , "changeInMutualGuilds" ) ) for ( let i in e . instance . props . mutualGuilds ) e . instance . props . mutualGuilds [ i ] = this . getGuildData ( e . instance . props . mutualGuilds [ i ] . id ) ;
2019-12-01 18:25:43 +01:00
}
processQuickSwitcher ( e ) {
2019-12-02 14:16:56 +01:00
if ( BDFDB . DataUtils . get ( this , "settings" , "changeInQuickSwitcher" ) ) 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-01 18:25:43 +01:00
}
processQuickSwitchChannelResult ( e ) {
if ( e . instance . props . channel && e . instance . props . channel . guild _id && BDFDB . DataUtils . get ( this , "settings" , "changeInQuickSwitcher" ) ) {
2019-12-02 14:16:56 +01:00
e . instance . props . children . props . children = this . getGuildData ( e . instance . props . channel . guild _id ) . name ;
2019-12-01 18:25:43 +01:00
}
}
processGuildSidebar ( e ) {
if ( e . instance . props . guild ) {
let data = BDFDB . DataUtils . load ( this , "servers" , e . instance . props . guild . id ) ;
if ( data && data . removeBanner ) e . instance . props . guild = new BDFDB . DiscordObjects . Guild ( Object . assign ( { } , e . instance . props . guild , { banner : null } ) ) ;
}
}
processGuildHeader ( e ) {
if ( e . instance . props . guild ) {
let settings = BDFDB . DataUtils . get ( this , "settings" ) ;
if ( settings . changeInGuildHeader ) {
2019-12-02 14:16:56 +01:00
e . instance . props . guild = this . getGuildData ( e . instance . props . guild . id ) ;
2019-12-01 18:25:43 +01:00
let oldName = ( BDFDB . LibraryModules . GuildStore . getGuild ( e . instance . props . guild . id ) || { } ) . name ;
if ( e . returnvalue && settings . 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" }
} ) ;
}
2019-04-26 14:57:08 +02:00
}
}
2019-12-01 18:25:43 +01:00
}
2019-12-02 14:16:56 +01:00
getGuildData ( guildId , change = true ) {
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( guildId ) ;
2019-12-02 20:09:59 +01:00
if ( ! guild ) return new BDFDB . DiscordObjects . Guild ( { } ) ;
2019-12-01 18:25:43 +01:00
let data = change && BDFDB . DataUtils . load ( this , "servers" , 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 ;
2019-12-02 14:16:56 +01:00
newGuildObject . acronym = data . shortName && data . shortName . replace ( /\s/g , "" ) || BDFDB . LibraryModules . StringUtils . getAcronym ( ! data . ignoreCustomName && data . name || nativeObject . name ) ;
2019-12-01 18:25:43 +01:00
if ( data . removeIcon ) {
newGuildObject . icon = null ;
newGuildObject . getIconURL = _ => { return null ; } ;
2019-04-26 14:57:08 +02:00
}
2019-12-01 18:25:43 +01:00
else if ( data . url ) newGuildObject . getIconURL = _ => { return data . url ; } ;
if ( data . removeBanner ) newGuildObject . banner = null ;
return newGuildObject ;
2019-04-26 14:57:08 +02:00
}
2019-12-02 14:16:56 +01:00
return new BDFDB . DiscordObjects . Guild ( guild ) ;
2019-04-26 14:57:08 +02:00
}
2019-10-17 11:36:34 +02:00
2019-12-01 18:25:43 +01: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-10-17 11:36:34 +02:00
}
2019-09-04 12:34:02 +02:00
2019-12-02 14:16:56 +01:00
showServerSettings ( guildId ) {
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( guildId ) ;
if ( ! guild ) return ;
2019-12-01 18:25:43 +01:00
let data = BDFDB . DataUtils . load ( this , "servers" , guild . id ) || { } ;
2019-10-17 11:36:34 +02:00
2019-12-02 14:16:56 +01:00
let currentIgnoreCustomNameState = data . ignoreCustomName ;
2019-10-30 13:27:14 +01:00
BDFDB . ModalUtils . open ( this , {
2019-10-17 11:36:34 +02:00
size : "MEDIUM" ,
header : this . labels . modal _header _text ,
2019-12-01 18:25:43 +01:00
subheader : guild . name ,
2019-10-17 11:36:34 +02:00
children : [
2019-10-24 10:48:18 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ModalComponents . ModalTabContent , {
2019-10-17 11:36:34 +02:00
tab : this . labels . modal _tabheader1 _text ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _guildname _text ,
2019-12-02 14:16:56 +01:00
className : BDFDB . disCN . marginbottom8 ,
2019-10-17 11:36:34 +02:00
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
2019-12-01 18:25:43 +01:00
inputClassName : "input-guildname" ,
2019-10-17 11:36:34 +02:00
value : data . name ,
2019-12-01 18:25:43 +01:00
placeholder : guild . name ,
2019-12-02 14:16:56 +01:00
autoFocus : true ,
onChange : ( value , instance ) => {
if ( ! currentIgnoreCustomNameState ) {
let acronyminputins = BDFDB . ReactUtils . findOwner ( instance . _reactInternalFiber . return . return . return , { props : [ [ "inputId" , "GUILDACRONYM" ] ] } ) ;
if ( acronyminputins ) {
acronyminputins . props . placeholder = value && BDFDB . LibraryModules . StringUtils . getAcronym ( value ) || guild . acronym ;
BDFDB . ReactUtils . forceUpdate ( acronyminputins ) ;
}
}
}
2019-10-17 11:36:34 +02:00
} )
]
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _guildacronym _text ,
2019-12-02 14:16:56 +01:00
className : BDFDB . disCN . marginbottom4 ,
2019-10-17 11:36:34 +02:00
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
2019-12-01 18:25:43 +01:00
inputClassName : "input-guildacronym" ,
2019-12-02 14:16:56 +01:00
inputId : "GUILDACRONYM" ,
2019-10-17 11:36:34 +02:00
value : data . shortName ,
2019-12-02 14:16:56 +01:00
placeholder : ! data . ignoreCustomName && data . name && BDFDB . LibraryModules . StringUtils . getAcronym ( data . name ) || guild . acronym
2019-10-17 11:36:34 +02:00
} )
]
} ) ,
2019-12-02 14:16:56 +01:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
type : "Switch" ,
className : BDFDB . disCN . marginbottom8 + " input-ignorecustomname" ,
label : this . labels . modal _ignorecustomname _text ,
value : data . ignoreCustomName ,
onChange : ( value , instance ) => {
currentIgnoreCustomNameState = value ;
let acronyminputins = BDFDB . ReactUtils . findOwner ( instance . _reactInternalFiber . return , { props : [ [ "inputId" , "GUILDACRONYM" ] ] } ) ;
if ( acronyminputins ) {
acronyminputins . props . placeholder = ! value && data . name && BDFDB . LibraryModules . StringUtils . getAcronym ( data . name ) || guild . acronym ;
BDFDB . ReactUtils . forceUpdate ( acronyminputins ) ;
}
}
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _guildicon _text ,
2019-12-02 14:16:56 +01:00
className : BDFDB . disCN . marginbottom4 ,
2019-10-17 11:36:34 +02:00
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
2019-12-01 18:25:43 +01:00
inputClassName : "input-guildicon" ,
2019-10-21 12:59:51 +02:00
inputId : "GUILDICON" ,
2019-12-01 18:25:43 +01:00
success : ! data . removeIcon && data . url ,
2019-10-17 11:36:34 +02:00
value : data . url ,
2019-12-01 18:25:43 +01:00
placeholder : BDFDB . GuildUtils . getIcon ( guild . id ) ,
2019-10-17 11:36:34 +02:00
disabled : data . removeIcon ,
onChange : ( value , instance ) => {
this . checkUrl ( value , instance ) ;
}
} )
]
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
2019-10-17 11:36:34 +02:00
type : "Switch" ,
2019-12-02 14:16:56 +01:00
className : BDFDB . disCN . marginbottom8 + " input-removeicon" ,
2019-10-17 11:36:34 +02:00
label : this . labels . modal _removeicon _text ,
value : data . removeIcon ,
onChange : ( value , instance ) => {
2019-10-21 12:59:51 +02:00
let iconinputins = BDFDB . ReactUtils . findOwner ( instance . _reactInternalFiber . return , { props : [ [ "inputId" , "GUILDICON" ] ] } ) ;
2019-10-17 11:36:34 +02:00
if ( iconinputins ) {
2019-12-01 18:25:43 +01:00
delete iconinputins . props . success ;
delete iconinputins . props . errorMessage ;
2019-10-17 11:36:34 +02:00
iconinputins . props . disabled = value ;
2019-12-02 14:16:56 +01:00
BDFDB . ReactUtils . forceUpdate ( iconinputins ) ;
2019-10-17 11:36:34 +02:00
}
}
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _guildbanner _text ,
2019-12-02 14:16:56 +01:00
className : BDFDB . disCN . marginbottom4 ,
2019-10-17 11:36:34 +02:00
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextInput , {
2019-12-01 18:25:43 +01:00
inputClassName : "input-guildbanner" ,
2019-10-21 12:59:51 +02:00
inputId : "GUILDBANNER" ,
2019-12-01 18:25:43 +01:00
success : ! data . removeBanner && data . banner ,
2019-10-17 11:36:34 +02:00
value : data . banner ,
2019-12-01 18:25:43 +01:00
placeholder : BDFDB . GuildUtils . getBanner ( guild . id ) ,
disabled : data . removeBanner || guild . id == "410787888507256842" ,
2019-10-17 11:36:34 +02:00
onChange : ( value , instance ) => {
this . checkUrl ( value , instance ) ;
}
} )
]
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
2019-10-17 11:36:34 +02:00
type : "Switch" ,
className : BDFDB . disCN . marginbottom20 + " input-removebanner" ,
label : this . labels . modal _removebanner _text ,
value : data . removeBanner ,
2019-12-01 18:25:43 +01:00
disabled : guild . id == "410787888507256842" ,
2019-10-17 11:36:34 +02:00
onChange : ( value , instance ) => {
2019-10-21 12:59:51 +02:00
let bannerinputins = BDFDB . ReactUtils . findOwner ( instance . _reactInternalFiber . return , { props : [ [ "inputId" , "GUILDBANNER" ] ] } ) ;
2019-10-17 11:36:34 +02:00
if ( bannerinputins ) {
2019-12-01 18:25:43 +01:00
delete bannerinputins . props . success ;
delete bannerinputins . props . errorMessage ;
2019-10-17 11:36:34 +02:00
bannerinputins . props . disabled = value ;
2019-12-02 14:16:56 +01:00
BDFDB . ReactUtils . forceUpdate ( bannerinputins ) ;
2019-10-17 11:36:34 +02:00
}
}
} )
]
} ) ,
2019-10-24 10:48:18 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ModalComponents . ModalTabContent , {
2019-10-17 11:36:34 +02:00
tab : this . labels . modal _tabheader2 _text ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _colorpicker1 _text ,
className : BDFDB . disCN . marginbottom20 ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
2019-10-17 11:36:34 +02:00
color : data . color1 ,
number : 1
} )
]
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _colorpicker2 _text ,
className : BDFDB . disCN . marginbottom20 ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
2019-10-17 11:36:34 +02:00
color : data . color2 ,
number : 2
} )
]
} )
]
} ) ,
2019-10-24 10:48:18 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ModalComponents . ModalTabContent , {
2019-10-17 11:36:34 +02:00
tab : this . labels . modal _tabheader3 _text ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _colorpicker3 _text ,
className : BDFDB . disCN . marginbottom20 ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
2019-10-17 11:36:34 +02:00
color : data . color3 ,
number : 3
} )
]
} ) ,
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormItem , {
2019-10-17 11:36:34 +02:00
title : this . labels . modal _colorpicker4 _text ,
className : BDFDB . disCN . marginbottom20 ,
children : [
2019-10-22 18:55:25 +02:00
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ColorSwatches , {
2019-10-17 11:36:34 +02:00
color : data . color4 ,
number : 4
} )
]
} )
]
} )
] ,
buttons : [ {
2019-10-19 11:41:39 +02:00
contents : BDFDB . LanguageUtils . LanguageStrings . SAVE ,
2019-10-17 11:36:34 +02:00
color : "BRAND" ,
close : true ,
click : modal => {
let olddata = Object . assign ( { } , data ) ;
2019-12-01 18:25:43 +01:00
let guildnameinput = modal . querySelector ( ".input-guildname" ) ;
let guildacronyminput = modal . querySelector ( ".input-guildacronym" ) ;
2019-12-02 14:16:56 +01:00
let ignorecustomnameinput = modal . querySelector ( ".input-ignorecustomname " + BDFDB . dotCN . switchinner ) ;
2019-12-01 18:25:43 +01:00
let guildiconinput = modal . querySelector ( ".input-guildicon" ) ;
2019-10-17 11:36:34 +02:00
let removeiconinput = modal . querySelector ( ".input-removeicon " + BDFDB . dotCN . switchinner ) ;
2019-12-01 18:25:43 +01:00
let guildbannerinput = modal . querySelector ( ".input-guildbanner" ) ;
2019-10-17 11:36:34 +02:00
let removebannerinput = modal . querySelector ( ".input-removebanner " + BDFDB . dotCN . switchinner ) ;
data . name = guildnameinput . value . trim ( ) || null ;
data . shortName = guildacronyminput . value . trim ( ) || null ;
2019-12-02 14:16:56 +01:00
data . ignoreCustomName = ignorecustomnameinput . checked ;
2019-10-23 11:10:01 +02:00
data . url = ( ! data . removeIcon && BDFDB . DOMUtils . containsClass ( guildiconinput , BDFDB . disCN . inputsuccess ) ? guildiconinput . value . trim ( ) : null ) || null ;
2019-10-17 11:36:34 +02:00
data . removeIcon = removeiconinput . checked ;
2019-10-23 11:10:01 +02:00
data . banner = ( ! data . removeBanner && BDFDB . DOMUtils . containsClass ( guildbannerinput , BDFDB . disCN . inputsuccess ) ? guildbannerinput . value . trim ( ) : null ) || null ;
2019-12-01 18:25:43 +01:00
data . removeBanner = removebannerinput . checked && guild . id != "410787888507256842" ;
2019-03-14 14:06:14 +01:00
2019-10-23 11:10:01 +02:00
data . color1 = BDFDB . ColorUtils . getSwatchColor ( modal , 1 ) ;
data . color2 = BDFDB . ColorUtils . getSwatchColor ( modal , 2 ) ;
data . color3 = BDFDB . ColorUtils . getSwatchColor ( modal , 3 ) ;
data . color4 = BDFDB . ColorUtils . getSwatchColor ( modal , 4 ) ;
2019-01-26 22:45:19 +01:00
2019-10-17 11:36:34 +02:00
let changed = false ;
2019-12-01 18:25:43 +01:00
if ( Object . keys ( data ) . every ( key => ! data [ key ] ) && ( changed = true ) ) BDFDB . DataUtils . remove ( this , "servers" , guild . id ) ;
else if ( ! BDFDB . equals ( olddata , data ) && ( changed = true ) ) BDFDB . DataUtils . save ( data , this , "servers" , guild . id ) ;
if ( changed ) BDFDB . ModuleUtils . forceAllUpdates ( this ) ; ;
2019-10-17 11:36:34 +02:00
}
} ]
2019-01-17 23:48:29 +01:00
} ) ;
2018-10-11 10:21:26 +02:00
}
2019-10-17 11:36:34 +02:00
checkUrl ( url , instance ) {
2019-11-01 11:09:32 +01:00
BDFDB . TimeUtils . clear ( instance . checkTimeout ) ;
2019-10-17 11:36:34 +02:00
if ( url == null || ! url . trim ( ) ) {
2019-12-01 18:25:43 +01:00
delete instance . props . success ;
delete instance . props . errorMessage ;
2019-10-17 11:36:34 +02:00
instance . forceUpdate ( ) ;
2018-10-11 10:21:26 +02:00
}
2019-11-01 11:09:32 +01:00
else instance . checkTimeout = BDFDB . TimeUtils . timeout ( ( ) => {
2019-10-17 11:36:34 +02:00
BDFDB . LibraryRequires . request ( url . trim ( ) , ( error , response , result ) => {
2018-10-11 10:21:26 +02:00
if ( response && response . headers [ "content-type" ] && response . headers [ "content-type" ] . indexOf ( "image" ) != - 1 ) {
2019-12-01 18:25:43 +01:00
instance . props . success = true ;
delete instance . props . errorMessage ;
2018-10-11 10:21:26 +02:00
}
else {
2019-12-01 18:25:43 +01:00
delete instance . props . success ;
instance . props . errorMessage = this . labels . modal _invalidurl _text ;
2018-10-11 10:21:26 +02:00
}
2019-10-17 11:36:34 +02:00
delete instance . checkTimeout ;
instance . forceUpdate ( ) ;
2018-10-11 10:21:26 +02:00
} ) ;
2019-10-17 11:36:34 +02:00
} , 1000 ) ;
2018-10-11 10:21:26 +02:00
}
2019-01-26 22:45:19 +01:00
2019-05-20 13:50:57 +02:00
setBanner ( id , data ) {
2019-03-14 14:06:14 +01:00
data = data || { } ;
2019-09-11 12:14:43 +02:00
let guild = BDFDB . LibraryModules . GuildStore . getGuild ( id ) ;
2019-03-14 14:06:14 +01:00
if ( ! guild ) return ;
2019-05-20 13:50:57 +02:00
if ( guild . EditServersCachedBanner === undefined ) guild . EditServersCachedBanner = guild . banner ;
guild . banner = data . removeBanner ? null : ( data . banner || guild . EditServersCachedBanner ) ;
2019-03-14 14:06:14 +01:00
}
2019-09-04 12:34:02 +02:00
2018-10-11 10:21:26 +02:00
setLabelsByLanguage ( ) {
2019-10-22 19:38:25 +02:00
switch ( BDFDB . LanguageUtils . getLanguage ( ) . id ) {
2018-10-11 10:21:26 +02:00
case "hr" : //croatian
return {
context _localserversettings _text : "Lokalne postavke poslužitelja" ,
submenu _serversettings _text : "Promijeni postavke" ,
submenu _resetsettings _text : "Ponovno postavite poslužitelj" ,
modal _header _text : "Lokalne postavke poslužitelja" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Naziv lokalnog poslužitelja" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Akronim lokalnog poslužitelja" ,
modal _ignorecustomname _text : "Koristite izvorno ime poslužitelja za akronim poslužitelja" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikona" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Ukloni ikonu" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Baner" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Uklonite baner" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Poslužitelja" ,
modal _tabheader2 _text : "Boja ikona" ,
modal _tabheader3 _text : "Boja tooltip" ,
modal _colorpicker1 _text : "Boja ikona" ,
modal _colorpicker2 _text : "Boja fonta" ,
modal _colorpicker3 _text : "Boja tooltip" ,
modal _colorpicker4 _text : "Boja fonta" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Nevažeći URL"
2018-10-11 10:21:26 +02:00
} ;
case "da" : //danish
return {
context _localserversettings _text : "Lokal serverindstillinger" ,
submenu _serversettings _text : "Skift indstillinger" ,
submenu _resetsettings _text : "Nulstil server" ,
modal _header _text : "Lokal serverindstillinger" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Lokalt servernavn" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Lokalt serverakronym" ,
modal _ignorecustomname _text : "Brug det originale servernavn til serverens akronym" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikon" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Fjern ikon" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banner" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Fjern banner" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Ikonfarve" ,
modal _tabheader3 _text : "Tooltipfarve" ,
modal _colorpicker1 _text : "Ikonfarve" ,
modal _colorpicker2 _text : "Skriftfarve" ,
modal _colorpicker3 _text : "Tooltipfarve" ,
modal _colorpicker4 _text : "Skriftfarve" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Ugyldig URL"
2018-10-11 10:21:26 +02:00
} ;
case "de" : //german
return {
context _localserversettings _text : "Lokale Servereinstellungen" ,
submenu _serversettings _text : "Einstellungen ändern" ,
submenu _resetsettings _text : "Server zurücksetzen" ,
modal _header _text : "Lokale Servereinstellungen" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Lokaler Servername" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Lokale Serverkürzel" ,
modal _ignorecustomname _text : "Benutze den ursprünglichen Servernamen für das Serverkürzel" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icon" ,
2019-03-14 14:06:14 +01:00
modal _removeicon _text : "Icon entfernen" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banner" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Banner entfernen" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Iconfarbe" ,
modal _tabheader3 _text : "Tooltipfarbe" ,
modal _colorpicker1 _text : "Iconfarbe" ,
modal _colorpicker2 _text : "Schriftfarbe" ,
modal _colorpicker3 _text : "Tooltipfarbe" ,
modal _colorpicker4 _text : "Schriftfarbe" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Ungültige URL"
2018-10-11 10:21:26 +02:00
} ;
case "es" : //spanish
return {
context _localserversettings _text : "Ajustes local de servidor" ,
submenu _serversettings _text : "Cambiar ajustes" ,
submenu _resetsettings _text : "Restablecer servidor" ,
modal _header _text : "Ajustes local de servidor" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Nombre local del servidor" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Acrónimo local del servidor" ,
modal _ignorecustomname _text : "Use el nombre del servidor original para el acrónimo del servidor" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icono" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Eliminar icono" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Bandera" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Eliminar bandera" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Servidor" ,
modal _tabheader2 _text : "Color del icono" ,
modal _tabheader3 _text : "Color de tooltip" ,
modal _colorpicker1 _text : "Color del icono" ,
modal _colorpicker2 _text : "Color de fuente" ,
modal _colorpicker3 _text : "Color de tooltip" ,
modal _colorpicker4 _text : "Color de fuente" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "URL inválida"
2018-10-11 10:21:26 +02:00
} ;
case "fr" : //french
return {
context _localserversettings _text : "Paramètres locale du serveur" ,
submenu _serversettings _text : "Modifier les paramètres" ,
submenu _resetsettings _text : "Réinitialiser le serveur" ,
modal _header _text : "Paramètres locale du serveur" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Nom local du serveur" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Acronyme local de serveur" ,
modal _ignorecustomname _text : "Utilisez le nom de serveur d'origine pour l'acronyme de serveur" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icône" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Supprimer l'icône" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Bannière" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Supprimer la bannière" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Serveur" ,
modal _tabheader2 _text : "Couleur de l'icône" ,
modal _tabheader3 _text : "Couleur de tooltip" ,
modal _colorpicker1 _text : "Couleur de l'icône" ,
modal _colorpicker2 _text : "Couleur de la police" ,
modal _colorpicker3 _text : "Couleur de tooltip" ,
modal _colorpicker4 _text : "Couleur de la police" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "URL invalide"
2018-10-11 10:21:26 +02:00
} ;
case "it" : //italian
return {
context _localserversettings _text : "Impostazioni locale server" ,
submenu _serversettings _text : "Cambia impostazioni" ,
submenu _resetsettings _text : "Ripristina server" ,
modal _header _text : "Impostazioni locale server" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Nome locale server" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Acronimo locale server" ,
modal _ignorecustomname _text : "Utilizzare il nome del server originale per l'acronimo del server" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icona" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Rimuova l'icona" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Bandiera" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Rimuovi bandiera" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Colore dell'icona" ,
modal _tabheader3 _text : "Colore della tooltip" ,
modal _colorpicker1 _text : "Colore dell'icona" ,
modal _colorpicker2 _text : "Colore del carattere" ,
modal _colorpicker3 _text : "Colore della tooltip" ,
modal _colorpicker4 _text : "Colore del carattere" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "URL non valido"
2018-10-11 10:21:26 +02:00
} ;
case "nl" : //dutch
return {
context _localserversettings _text : "Lokale serverinstellingen" ,
submenu _serversettings _text : "Verandere instellingen" ,
submenu _resetsettings _text : "Reset server" ,
modal _header _text : "Lokale serverinstellingen" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Lokale servernaam" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Lokale server acroniem" ,
modal _ignorecustomname _text : "Gebruik de oorspronkelijke servernaam voor het serveracrononiem" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icoon" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Verwijder icoon" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banier" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Verwijder banier" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Icoonkleur" ,
modal _tabheader3 _text : "Tooltipkleur" ,
modal _colorpicker1 _text : "Icoonkleur" ,
modal _colorpicker2 _text : "Doopvontkleur" ,
modal _colorpicker3 _text : "Tooltipkleur" ,
modal _colorpicker4 _text : "Doopvontkleur" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Ongeldige URL"
2018-10-11 10:21:26 +02:00
} ;
case "no" : //norwegian
return {
context _localserversettings _text : "Lokal serverinnstillinger" ,
submenu _serversettings _text : "Endre innstillinger" ,
submenu _resetsettings _text : "Tilbakestill server" ,
modal _header _text : "Lokal serverinnstillinger" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Lokalt servernavn" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Lokalt serverforkortelse" ,
modal _ignorecustomname _text : "Bruk det originale servernavnet til serverforkortelsen" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikon" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Fjern ikon" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banner" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Fjern banner" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Ikonfarge" ,
modal _tabheader3 _text : "Tooltipfarge" ,
modal _colorpicker1 _text : "Ikonfarge" ,
modal _colorpicker2 _text : "Skriftfarge" ,
modal _colorpicker3 _text : "Tooltipfarge" ,
modal _colorpicker4 _text : "Skriftfarge" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Ugyldig URL"
2018-10-11 10:21:26 +02:00
} ;
case "pl" : //polish
return {
context _localserversettings _text : "Lokalne ustawienia serwera" ,
submenu _serversettings _text : "Zmień ustawienia" ,
2019-03-14 14:06:14 +01:00
submenu _resetsettings _text : "Resetuj ustawienia" ,
2018-10-11 10:21:26 +02:00
modal _header _text : "Lokalne ustawienia serwera" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Lokalna nazwa serwera" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Akronim lokalnego serwera" ,
modal _ignorecustomname _text : "Użyj oryginalnej nazwy serwera dla akronimu serwera" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikona" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Usuń ikonę" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Baner" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Usuń baner" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Serwer" ,
modal _tabheader2 _text : "Kolor ikony" ,
modal _tabheader3 _text : "Kolor podpowiedzi" ,
modal _colorpicker1 _text : "Kolor ikony" ,
modal _colorpicker2 _text : "Kolor czcionki" ,
modal _colorpicker3 _text : "Kolor podpowiedzi" ,
modal _colorpicker4 _text : "Kolor czcionki" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Nieprawidłowe URL"
2018-10-11 10:21:26 +02:00
} ;
case "pt-BR" : //portuguese (brazil)
return {
context _localserversettings _text : "Configurações local do servidor" ,
submenu _serversettings _text : "Mudar configurações" ,
submenu _resetsettings _text : "Redefinir servidor" ,
modal _header _text : "Configurações local do servidor" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Nome local do servidor" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Acrônimo local de servidor" ,
modal _ignorecustomname _text : "Use o nome do servidor original para a sigla do servidor" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icone" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Remover ícone" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Bandeira" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Remover bandeira" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Servidor" ,
modal _tabheader2 _text : "Cor do ícone" ,
modal _tabheader3 _text : "Cor da tooltip" ,
modal _colorpicker1 _text : "Cor do ícone" ,
modal _colorpicker2 _text : "Cor da fonte" ,
modal _colorpicker3 _text : "Cor da tooltip" ,
modal _colorpicker4 _text : "Cor da fonte" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "URL inválida"
2018-10-11 10:21:26 +02:00
} ;
case "fi" : //finnish
return {
context _localserversettings _text : "Paikallinen palvelimen asetukset" ,
submenu _serversettings _text : "Vaihda asetuksia" ,
submenu _resetsettings _text : "Nollaa palvelimen" ,
modal _header _text : "Paikallinen palvelimen asetukset" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Paikallinen palvelimenimi" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Paikallisen palvelimen lyhenne" ,
modal _ignorecustomname _text : "Käytä alkuperäistä palvelimen nimeä palvelimen lyhenteessä" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikonin" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Poista kuvake" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banneri" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Poista banneri" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Palvelimen" ,
modal _tabheader2 _text : "Ikoninväri" ,
modal _tabheader3 _text : "Tooltipväri" ,
modal _colorpicker1 _text : "Ikoninväri" ,
modal _colorpicker2 _text : "Fontinväri" ,
modal _colorpicker3 _text : "Tooltipväri" ,
modal _colorpicker4 _text : "Fontinväri" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Virheellinen URL"
2018-10-11 10:21:26 +02:00
} ;
case "sv" : //swedish
return {
context _localserversettings _text : "Lokal serverinställningar" ,
submenu _serversettings _text : "Ändra inställningar" ,
submenu _resetsettings _text : "Återställ server" ,
modal _header _text : "Lokal serverinställningar" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Lokalt servernamn" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Lokal server förkortning" ,
modal _ignorecustomname _text : "Använd det ursprungliga servernamnet för serverförkortningen" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikon" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Ta bort ikonen" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banderoll" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Ta bort banderoll" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Ikonfärg" ,
modal _tabheader3 _text : "Tooltipfärg" ,
modal _colorpicker1 _text : "Ikonfärg" ,
modal _colorpicker2 _text : "Fontfärg" ,
modal _colorpicker3 _text : "Tooltipfärg" ,
modal _colorpicker4 _text : "Fontfärg" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Ogiltig URL"
2018-10-11 10:21:26 +02:00
} ;
case "tr" : //turkish
return {
context _localserversettings _text : "Yerel Sunucu Ayarları " ,
submenu _serversettings _text : "Ayarları Değiştir" ,
submenu _resetsettings _text : "Sunucu Sı fı rla" ,
2019-12-02 14:16:56 +01:00
modal _header _text : "Yerel sunucu ayarları " ,
modal _guildname _text : "Yerel sunucu adı " ,
modal _guildacronym _text : "Yerel sunucu kı saltması " ,
modal _ignorecustomname _text : "Sunucu kı saltması için orijinal sunucu adı nı kullanı n" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Simge" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Simge kaldı r" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Afişi" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Afişi kaldı r" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Sunucu" ,
modal _tabheader2 _text : "Simge rengi" ,
modal _tabheader3 _text : "Tooltip rengi" ,
modal _colorpicker1 _text : "Simge rengi" ,
modal _colorpicker2 _text : "Yazı rengi" ,
modal _colorpicker3 _text : "Tooltip rengi" ,
modal _colorpicker4 _text : "Yazı rengi" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Geçersiz URL"
2018-10-11 10:21:26 +02:00
} ;
case "cs" : //czech
return {
context _localserversettings _text : "Místní nastavení serveru" ,
submenu _serversettings _text : "Změnit nastavení" ,
submenu _resetsettings _text : "Obnovit server" ,
modal _header _text : "Místní nastavení serveru" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Místní název serveru" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Zkratka místního serveru" ,
modal _ignorecustomname _text : "Pro zkratku serveru použijte původní název serveru" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Ikony" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Odstranit ikonu" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Prapor" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Odstraňte prapor" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Barva ikony" ,
modal _tabheader3 _text : "Barva tooltip" ,
modal _colorpicker1 _text : "Barva ikony" ,
modal _colorpicker2 _text : "Barva fontu" ,
modal _colorpicker3 _text : "Barva tooltip" ,
modal _colorpicker4 _text : "Barva fontu" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Neplatná URL"
2018-10-11 10:21:26 +02:00
} ;
case "bg" : //bulgarian
return {
context _localserversettings _text : "Настройки за локални cър вър " ,
submenu _serversettings _text : "Промяна на настройките" ,
submenu _resetsettings _text : "Възстановяване на cър вър " ,
modal _header _text : "Настройки за локални cър вър " ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Локално име на cър вър " ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Акроним на локалния сървър" ,
modal _ignorecustomname _text : "Използвайте оригиналното име на сървъра за съкращението на сървъра" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Икона" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Премахване на иконата" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Знаме" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Премахване на знаме" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Cър вър " ,
modal _tabheader2 _text : "Цвят на иконата" ,
modal _tabheader3 _text : "Цвят на подсказка" ,
modal _colorpicker1 _text : "Цвят на иконата" ,
modal _colorpicker2 _text : "Цвят на шрифта" ,
modal _colorpicker3 _text : "Цвят на подсказка" ,
modal _colorpicker4 _text : "Цвят на шрифта" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Невалиден URL"
2018-10-11 10:21:26 +02:00
} ;
case "ru" : //russian
return {
context _localserversettings _text : "Настройки локального cе р ве р " ,
submenu _serversettings _text : "Изменить настройки" ,
submenu _resetsettings _text : "Сбросить cе р ве р " ,
modal _header _text : "Настройки локального cе р ве р " ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Имя локального cе р ве р " ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Акроним локального сервера" ,
modal _ignorecustomname _text : "Используйте оригинальное имя сервера для сокращения сервера" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Значок" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Удалить значок" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Баннер" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Удалить баннер" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Cе р ве р " ,
modal _tabheader2 _text : "Цвет значков" ,
modal _tabheader3 _text : "Цвет подсказка" ,
modal _colorpicker1 _text : "Цвет значков" ,
modal _colorpicker2 _text : "Цвет шрифта" ,
modal _colorpicker3 _text : "Цвет подсказка" ,
modal _colorpicker4 _text : "Цвет шрифта" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Неверная URL"
2018-10-11 10:21:26 +02:00
} ;
case "uk" : //ukrainian
return {
context _localserversettings _text : "Налаштування локального cе р ве р " ,
submenu _serversettings _text : "Змінити налаштування" ,
submenu _resetsettings _text : "Скидання cе р ве р " ,
modal _header _text : "Налаштування локального cе р ве р " ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Локальне ім'я cе р ве р " ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Акронім локального сервера" ,
modal _ignorecustomname _text : "Використовуйте оригінальне ім'я сервера для абревіатури сервера" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Іконка" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Видалити піктограму" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Банер" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Видалити банер" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Cе р ве р " ,
modal _tabheader2 _text : "Колір ікони" ,
modal _tabheader3 _text : "Колір підказка" ,
modal _colorpicker1 _text : "Колір ікони" ,
modal _colorpicker2 _text : "Колір шрифту" ,
modal _colorpicker3 _text : "Колір підказка" ,
modal _colorpicker4 _text : "Колір шрифту" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Недійсна URL"
2018-10-11 10:21:26 +02:00
} ;
case "ja" : //japanese
return {
context _localserversettings _text : "ローカルサーバー設定" ,
submenu _serversettings _text : "設定を変更する" ,
submenu _resetsettings _text : "サーバーをリセットする" ,
modal _header _text : "ローカルサーバー設定" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "ローカルサーバー名" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "ローカルサーバーの頭字語" ,
modal _ignorecustomname _text : "サーバーの頭字語に元のサーバー名を使用する" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "アイコン" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "アイコンを削除" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "バナー" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "バナーを削除" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "サーバー" ,
modal _tabheader2 _text : "アイコンの色" ,
modal _tabheader3 _text : "ツールチップの色" ,
modal _colorpicker1 _text : "アイコンの色" ,
modal _colorpicker2 _text : "フォントの色" ,
modal _colorpicker3 _text : "ツールチップの色" ,
modal _colorpicker4 _text : "フォントの色" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "無効な URL"
2018-10-11 10:21:26 +02:00
} ;
case "zh-TW" : //chinese (traditional)
return {
context _localserversettings _text : "本地服務器設置" ,
submenu _serversettings _text : "更改設置" ,
submenu _resetsettings _text : "重置服務器" ,
modal _header _text : "本地服務器設置" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "服務器名稱" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "本地服務器縮寫" ,
modal _ignorecustomname _text : "使用原始服務器名稱作為服務器首字母縮寫" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "圖標" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "刪除圖標" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "旗幟" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "刪除橫幅" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "服務器" ,
modal _tabheader2 _text : "圖標顏色" ,
modal _tabheader3 _text : "工具提示顏色" ,
modal _colorpicker1 _text : "圖標顏色" ,
modal _colorpicker2 _text : "字體顏色" ,
modal _colorpicker3 _text : "工具提示顏色" ,
modal _colorpicker4 _text : "字體顏色" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "無效的 URL"
2018-10-11 10:21:26 +02:00
} ;
case "ko" : //korean
return {
context _localserversettings _text : "로컬 서버 설정" ,
submenu _serversettings _text : "설정 변경" ,
submenu _resetsettings _text : "서버 재설정" ,
modal _header _text : "로컬 서버 설정" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "로컬 서버 이름" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "로컬 서버 약어" ,
modal _ignorecustomname _text : "서버 약어에 원래 서버 이름을 사용하십시오" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "상" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "상 삭제" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "기치" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "배너 삭제" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "서버" ,
modal _tabheader2 _text : "상 색깔" ,
modal _tabheader3 _text : "툴팁 색깔" ,
modal _colorpicker1 _text : "상 색깔" ,
modal _colorpicker2 _text : "글꼴 색깔" ,
modal _colorpicker3 _text : "툴팁 색깔" ,
modal _colorpicker4 _text : "글꼴 색깔" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "잘못된 URL"
2018-10-11 10:21:26 +02:00
} ;
default : //default: english
return {
context _localserversettings _text : "Local Serversettings" ,
submenu _serversettings _text : "Change Settings" ,
submenu _resetsettings _text : "Reset Server" ,
modal _header _text : "Local Serversettings" ,
2019-10-17 11:36:34 +02:00
modal _guildname _text : "Local Servername" ,
2019-12-02 14:16:56 +01:00
modal _guildacronym _text : "Local Serveracronym" ,
modal _ignorecustomname _text : "Use the original Servername for the Serveracronym" ,
2019-10-17 11:36:34 +02:00
modal _guildicon _text : "Icon" ,
2018-10-11 10:21:26 +02:00
modal _removeicon _text : "Remove Icon" ,
2019-10-17 11:36:34 +02:00
modal _guildbanner _text : "Banner" ,
2019-03-14 14:06:14 +01:00
modal _removebanner _text : "Remove Banner" ,
2018-10-11 10:21:26 +02:00
modal _tabheader1 _text : "Server" ,
modal _tabheader2 _text : "Iconcolor" ,
modal _tabheader3 _text : "Tooltipcolor" ,
modal _colorpicker1 _text : "Iconcolor" ,
modal _colorpicker2 _text : "Fontcolor" ,
modal _colorpicker3 _text : "Tooltipcolor" ,
modal _colorpicker4 _text : "Fontcolor" ,
2019-09-11 12:14:43 +02:00
modal _invalidurl _text : "Invalid URL"
2018-10-11 10:21:26 +02:00
} ;
}
}
}