2019-09-20 22:32:52 +02:00
//META{"name":"ServerHider","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerHider","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ServerHider/ServerHider.plugin.js"}*//
2018-10-11 10:21:26 +02:00
2019-03-11 14:49:54 +01:00
class ServerHider {
2019-01-16 00:14:18 +01:00
getName ( ) { return "ServerHider" ; }
2019-11-28 14:22:51 +01:00
getVersion ( ) { return "6.1.1" ; }
2019-01-16 00:14:18 +01:00
getAuthor ( ) { return "DevilBro" ; }
getDescription ( ) { return "Hide Servers in your Serverlist" ; }
2019-01-26 22:45:19 +01:00
2019-09-04 12:34:02 +02:00
constructor ( ) {
2019-03-08 13:16:58 +01:00
this . changelog = {
2019-11-22 14:26:12 +01:00
"improved" : [ [ "New Library Structure & React" , "Restructured my Library and switched to React rendering instead of DOM manipulation" ] , [ "Folder Support" , "You can now also hide folders with the plugin" ] ]
2019-03-08 13:16:58 +01:00
} ;
2019-09-04 12:34:02 +02:00
2019-11-14 17:56:26 +01:00
this . patchedModules = {
after : {
2019-11-22 14:26:12 +01:00
Guilds : "render"
2019-11-14 17:56:26 +01:00
}
2019-01-03 14:46:41 +01:00
} ;
2019-09-04 12:34:02 +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-11-22 14:26:12 +01:00
let settingsitems = [ ] ;
settingsitems . push ( BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SettingsItem , {
type : "Button" ,
className : BDFDB . disCN . marginbottom8 ,
color : BDFDB . LibraryComponents . Button . Colors . RED ,
label : "Unhide all Servers/Folders" ,
onClick : _ => {
BDFDB . ModalUtils . confirm ( this , "Are you sure you want to unhide all servers and folders?" , ( ) => {
BDFDB . DataUtils . save ( [ ] , this , "hidden" ) ;
BDFDB . ModuleUtils . forceAllUpdates ( this ) ;
} ) ;
} ,
children : BDFDB . LanguageUtils . LanguageStrings . RESET
} ) ) ;
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-11-22 14:26:12 +01:00
// REMOVE 22.11.2019
let olddata = BDFDB . DataUtils . load ( this , "hiddenservers" , "hiddenservers" ) ;
if ( olddata ) {
BDFDB . DataUtils . save ( olddata , this , "hidden" , "servers" ) ;
BDFDB . DataUtils . remove ( this , "hiddenservers" ) ;
}
2019-11-22 14:38:30 +01:00
BDFDB . ModuleUtils . patch ( this , BDFDB . LibraryModules . FolderStore , "getGuildFolderById" , { after : e => {
let hiddenGuildIds = BDFDB . DataUtils . load ( this , "hidden" , "servers" ) || [ ] ;
if ( e . returnValue && hiddenGuildIds . length ) {
let folder = Object . assign ( { } , e . returnValue ) ;
folder . guildIds = [ ] . concat ( folder . guildIds ) . filter ( n => ! hiddenGuildIds . includes ( n ) ) ;
folder . hiddenGuildIds = [ ] . concat ( folder . guildIds ) . filter ( n => hiddenGuildIds . includes ( n ) ) ;
return folder ;
}
} } ) ;
2019-01-26 22:45:19 +01:00
2019-10-22 18:55:25 +02: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-11-22 14:26:12 +01:00
BDFDB . ModuleUtils . forceAllUpdates ( this ) ;
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
}
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
// begin of own functions
2019-11-22 14:26:12 +01:00
onGuildContextMenu ( e ) {
if ( document . querySelector ( BDFDB . dotCN . modalwrapper ) ) return ;
if ( e . instance . props . target && e . instance . props . type . startsWith ( "GUILD_ICON_" ) ) {
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 _serverhider _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 _openhidemenu _text ,
2019-11-21 11:38:04 +01:00
action : _ => {
2019-11-22 14:26:12 +01:00
BDFDB . ContextMenuUtils . close ( e . instance ) ;
this . showHideModal ( ) ;
2019-09-11 12:14:43 +02:00
}
} ) ,
2019-12-05 09:10:14 +01:00
! e . instance . props . guild && ! e . instance . props . folderId ? null : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ContextMenuItems . Item , {
2019-11-22 14:26:12 +01:00
label : e . instance . props . guild ? this . labels . submenu _hideserver _text : this . labels . submenu _hidefolder _text ,
2019-11-21 11:38:04 +01:00
action : _ => {
2019-11-22 14:26:12 +01:00
BDFDB . ContextMenuUtils . close ( e . instance ) ;
if ( e . instance . props . guild ) this . toggleItem ( BDFDB . DataUtils . load ( this , "hidden" , "servers" ) || [ ] , e . instance . props . guild . id , "servers" ) ;
else this . toggleItem ( BDFDB . DataUtils . load ( this , "hidden" , "folders" ) || [ ] , e . instance . props . folderId , "folders" ) ;
2019-09-11 12:14:43 +02:00
}
} )
2019-11-22 14:26:12 +01:00
] . filter ( n => n )
2019-09-11 12:14:43 +02:00
} ) ]
} )
]
2019-11-28 14:22:51 +01:00
} ) ) ;
2019-01-16 00:14:18 +01:00
}
}
2019-01-26 22:45:19 +01:00
2019-11-22 14:26:12 +01:00
processGuilds ( e ) {
let hiddenGuildIds = BDFDB . DataUtils . load ( this , "hidden" , "servers" ) || [ ] ;
let hiddenFolderIds = BDFDB . DataUtils . load ( this , "hidden" , "folders" ) || [ ] ;
if ( hiddenGuildIds . length || hiddenFolderIds . length ) {
let [ children , index ] = BDFDB . ReactUtils . findChildren ( e . returnvalue , { name : [ "DragSource(ForwardRef(FluxContainer(GuildFolder)))" , "DragSource(ForwardRef(FluxContainer(Guild)))" ] } ) ;
if ( index > - 1 ) for ( let i in children ) {
let child = children [ i ] ;
if ( child . props . folderId ) {
if ( hiddenFolderIds . includes ( child . props . folderId ) ) children [ i ] = null ;
else {
let guildIds = [ ] . concat ( child . props . guildIds . filter ( guildId => ! hiddenGuildIds . includes ( guildId ) ) ) ;
2019-11-22 14:38:30 +01:00
if ( guildIds . length ) {
child . props . hiddenGuildIds = [ ] . concat ( child . props . guildIds . filter ( guildId => hiddenGuildIds . includes ( guildId ) ) ) ;
child . props . guildIds = guildIds ;
}
2019-11-22 14:26:12 +01:00
else children [ i ] = null ;
}
}
else if ( child . props . guildId && hiddenGuildIds . includes ( child . props . guildId ) ) children [ i ] = null ;
}
2018-10-11 10:21:26 +02:00
}
}
2019-01-26 22:45:19 +01:00
2019-11-22 14:26:12 +01:00
showHideModal ( ) {
let hiddenGuildIds = BDFDB . DataUtils . load ( this , "hidden" , "servers" ) || [ ] ;
let hiddenFolderIds = BDFDB . DataUtils . load ( this , "hidden" , "folders" ) || [ ] ;
2019-11-28 14:22:51 +01:00
let guilds = BDFDB . LibraryModules . FolderStore . guildFolders . map ( n => n . guildIds ) . flat ( 10 ) . map ( guildId => BDFDB . LibraryModules . GuildStore . getGuild ( guildId ) ) . filter ( n => n ) ;
2019-11-22 14:26:12 +01:00
let folders = BDFDB . LibraryModules . FolderStore . guildFolders . filter ( n => n . folderId ) ;
let foldersAdded = [ ] ;
BDFDB . ModalUtils . open ( this , {
size : "MEDIUM" ,
header : this . labels . modal _header _text ,
subheader : "" ,
contentClassName : BDFDB . disCN . listscroller ,
children : guilds . map ( ( guild , i ) => {
let folder = folders . find ( folder => folder . guildIds . includes ( guild . id ) && ! foldersAdded . includes ( folder . folderId ) ) ;
if ( folder ) foldersAdded . push ( folder . folderId ) ;
return [
folder ? [
folders . indexOf ( folder ) == 0 ? null : [
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormDivider , {
className : BDFDB . disCNS . margintop4 + BDFDB . disCN . marginbottom4
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormDivider , {
className : BDFDB . disCNS . margintop8 + BDFDB . disCN . marginbottom4
} )
] ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ListRow , {
prefix : BDFDB . ReactUtils . createElement ( "div" , {
className : BDFDB . disCN . listavatar ,
children : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . GuildComponents . BlobMask , {
children : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . GuildComponents . Clickable , {
className : BDFDB . disCN . guildfolder ,
children : BDFDB . ReactUtils . createElement ( "div" , {
className : BDFDB . disCN . guildfoldericonwrapper ,
children : BDFDB . ReactUtils . createElement ( "div" , {
className : BDFDB . disCN . guildfoldericonwrapperexpanded ,
children : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . SvgIcon , {
name : BDFDB . LibraryComponents . SvgIcon . Names . FOLDER ,
style : { color : BDFDB . ColorUtils . convert ( folder . folderColor , "RGB" ) }
} )
} )
} )
} )
} )
} ) ,
label : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextScroller , {
children : folder . folderName || ` ${ BDFDB . LanguageUtils . LanguageStrings . SERVER _FOLDER _PLACEHOLDER } # ${ folders . indexOf ( folder ) + 1 } `
} ) ,
suffix : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Switch , {
value : ! hiddenFolderIds . includes ( folder . folderId ) ,
onChange : value => { this . toggleItem ( hiddenFolderIds , folder . folderId , "folders" , value ) ; }
} )
} )
] : null ,
i == 0 && ! folder ? null : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . FormComponents . FormDivider , {
className : BDFDB . disCNS . margintop4 + BDFDB . disCN . marginbottom4
} ) ,
BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . ListRow , {
prefix : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . GuildComponents . Guild , {
className : BDFDB . disCN . listavatar ,
guild : guild ,
menu : false ,
tooltip : false
} ) ,
label : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . TextScroller , {
children : guild . name
} ) ,
suffix : BDFDB . ReactUtils . createElement ( BDFDB . LibraryComponents . Switch , {
value : ! hiddenGuildIds . includes ( guild . id ) ,
onChange : value => { this . toggleItem ( hiddenGuildIds , guild . id , "servers" , value ) ; }
} )
} )
] ;
} ) . flat ( 10 ) . filter ( n => n ) ,
buttons : [ {
contents : BDFDB . LanguageUtils . LanguageStrings . OKAY ,
color : "BRAND" ,
close : true
} , {
contents : BDFDB . LanguageUtils . LanguageStrings . FORM _LABEL _ALL ,
color : "TRANSPARENT" ,
look : "LINK" ,
click : ( modal , instance ) => {
let enabled = hiddenGuildIds . includes ( guilds [ 0 ] . id ) ;
hiddenGuildIds = [ ] . concat ( enabled ? [ ] : guilds . map ( n => n . id ) ) ;
BDFDB . DataUtils . save ( hiddenGuildIds , this , "hidden" , "servers" ) ;
hiddenFolderIds = [ ] . concat ( enabled ? [ ] : folders . map ( n => n . folderId ) ) ;
BDFDB . DataUtils . save ( hiddenFolderIds , this , "hidden" , "folders" ) ;
let switchInstances = BDFDB . ReactUtils . findOwner ( instance , { name : "BDFDB_Switch" , all : true , unlimited : true } ) ;
for ( let switchIns of switchInstances ) switchIns . props . value = enabled ;
BDFDB . ReactUtils . forceUpdate ( switchInstances ) ;
BDFDB . ModuleUtils . forceAllUpdates ( this ) ;
}
} ]
2019-01-16 00:14:18 +01:00
} ) ;
2018-10-11 10:21:26 +02:00
}
2019-11-22 14:26:12 +01:00
toggleItem ( array , id , type , force ) {
if ( ! id ) return ;
if ( force || ( force === undefined && array . includes ( id ) ) ) BDFDB . ArrayUtils . remove ( array , id , true ) ;
else array . push ( id ) ;
BDFDB . DataUtils . save ( array , this , "hidden" , type ) ;
BDFDB . ModuleUtils . forceAllUpdates ( this ) ;
2019-01-05 01:01:34 +01:00
}
2019-09-04 12:34:02 +02:00
2018-10-11 10:21:26 +02:00
setLabelsByLanguage ( ) {
2019-10-22 23:04:35 +02:00
switch ( BDFDB . LanguageUtils . getLanguage ( ) . id ) {
2018-10-11 10:21:26 +02:00
case "hr" : //croatian
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Upravljanje popisom poslužitelja" ,
context _serverhider _text : "Vidljivost poslužitelj" ,
submenu _hideserver _text : "Sakrij poslužitelj" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Sakrij mapu" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Upravljanje popisom poslužitelja"
2018-10-11 10:21:26 +02:00
} ;
case "da" : //danish
return {
2019-11-22 14:26:12 +01:00
modal _header _text : "Styring af serverliste" ,
2019-01-05 01:22:16 +01:00
context _serverhider _text : "Server synlighed" ,
2019-11-22 14:26:12 +01:00
submenu _hideserver _text : "Skjul server" ,
submenu _hidefolder _text : "Skjul mappe" ,
submenu _openhidemenu _text : "Styre serverliste"
2018-10-11 10:21:26 +02:00
} ;
case "de" : //german
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Verwaltung der Serverliste" ,
context _serverhider _text : "Serversichtbarkeit" ,
submenu _hideserver _text : "Server verstecken" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Ordner verstecken" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Serverliste verwalten"
2018-10-11 10:21:26 +02:00
} ;
case "es" : //spanish
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Administración de lista de servidores" ,
context _serverhider _text : "Visibilidad del servidor" ,
submenu _hideserver _text : "Ocultar servidor" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Ocultar carpeta" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Administrar lista de servidores"
2018-10-11 10:21:26 +02:00
} ;
case "fr" : //french
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Gestion de la liste des serveurs" ,
context _serverhider _text : "Visibilité du serveur" ,
submenu _hideserver _text : "Cacher le serveur" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Cacher le dossier" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Gérer la liste des serveurs"
2018-10-11 10:21:26 +02:00
} ;
case "it" : //italian
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Gestione dell'elenco dei server" ,
context _serverhider _text : "Visibilità del server" ,
submenu _hideserver _text : "Nascondi il server" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Nascondi la cartella" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Gestione elenco dei server"
2018-10-11 10:21:26 +02:00
} ;
case "nl" : //dutch
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Beheer van de Serverlijst" ,
context _serverhider _text : "Server zichtbaarheid" ,
submenu _hideserver _text : "Verberg server" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Verberg map" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Beheer serverlijst"
2018-10-11 10:21:26 +02:00
} ;
case "no" : //norwegian
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Administrasjon av serverlisten" ,
context _serverhider _text : "Server synlighet" ,
submenu _hideserver _text : "Skjul server" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Skjul mappe" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Administrer serverliste"
2018-10-11 10:21:26 +02:00
} ;
case "pl" : //polish
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Zarządzanie listą serwerów" ,
context _serverhider _text : "Widoczność serwera" ,
submenu _hideserver _text : "Ukryj serwer" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Ukryj folder" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Zarządzaj listą serwerów"
2018-10-11 10:21:26 +02:00
} ;
case "pt-BR" : //portuguese (brazil)
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Gerenciamento da lista de servidores" ,
context _serverhider _text : "Visibilidade do servidor" ,
submenu _hideserver _text : "Ocultar servidor" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Ocultar pasta" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Gerenciar lista de servidores"
2018-10-11 10:21:26 +02:00
} ;
case "fi" : //finnish
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Palvelinluettelon hallinta" ,
context _serverhider _text : "Palvelimen näkyvyys" ,
submenu _hideserver _text : "Piilota palvelin" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Piilota kansio" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Hallinnoi palvelinluetteloa"
2018-10-11 10:21:26 +02:00
} ;
case "sv" : //swedish
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Hantering av serverlistan" ,
context _serverhider _text : "Server sikt" ,
submenu _hideserver _text : "Dölj server" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Dölj mapp" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Hantera serverlistan"
2018-10-11 10:21:26 +02:00
} ;
case "tr" : //turkish
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Sunucu Listesinin Yönetimi" ,
context _serverhider _text : "Sunucu görünürlüğü" ,
submenu _hideserver _text : "Sunucuyu Gizle" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Klasörü Gizle" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Sunucu Listesini Yönet"
2018-10-11 10:21:26 +02:00
} ;
case "cs" : //czech
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Správa seznamu serverů" ,
context _serverhider _text : "Viditelnost serveru" ,
submenu _hideserver _text : "Skrýt server" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Skrýt složky" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Správa seznamu serverů"
2018-10-11 10:21:26 +02:00
} ;
case "bg" : //bulgarian
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Управление на списъка със сървъри" ,
context _serverhider _text : "Видимост на сървъра" ,
submenu _hideserver _text : "Скриване на сървър" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Скриване на папка" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Управление на списъка със сървъри"
2018-10-11 10:21:26 +02:00
} ;
case "ru" : //russian
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Управление списком серверов" ,
context _serverhider _text : "Видимость сервера" ,
submenu _hideserver _text : "Скрыть сервер" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Скрыть папки" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Управление списком серверов"
2018-10-11 10:21:26 +02:00
} ;
case "uk" : //ukrainian
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Управління списком серверів" ,
context _serverhider _text : "Видимість сервера" ,
submenu _hideserver _text : "Сховати сервер" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Сховати папки" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Управління списком серверів"
2018-10-11 10:21:26 +02:00
} ;
case "ja" : //japanese
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "サーバリストの管理" ,
context _serverhider _text : "サーバーの可視性" ,
submenu _hideserver _text : "サーバーを隠す" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "フォルダーを非表示" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "サーバーリストを管理する"
2018-10-11 10:21:26 +02:00
} ;
case "zh-TW" : //chinese (traditional)
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "管理服务器列表" ,
context _serverhider _text : "服務器可見性" ,
submenu _hideserver _text : "隐藏服务器" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "隱藏資料夾" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "管理服务器列表"
2018-10-11 10:21:26 +02:00
} ;
case "ko" : //korean
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "서버 목록 관리" ,
context _serverhider _text : "서버 가시성" ,
submenu _hideserver _text : "서버 숨기기" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "폴더 숨기기" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "서버 목록 관리"
2018-10-11 10:21:26 +02:00
} ;
default : //default: english
return {
2019-01-05 01:22:16 +01:00
modal _header _text : "Managing Serverlist" ,
context _serverhider _text : "Server Visibility" ,
submenu _hideserver _text : "Hide Server" ,
2019-11-22 14:26:12 +01:00
submenu _hidefolder _text : "Hide Folder" ,
2019-01-05 01:22:16 +01:00
submenu _openhidemenu _text : "Manage Serverlist"
2018-10-11 10:21:26 +02:00
} ;
}
}
}