2018-10-11 10:21:26 +02:00
module . exports = ( Plugin , Api , Vendor ) => {
2019-02-04 09:40:44 +01:00
if ( ! global . BDFDB || typeof BDFDB != "object" ) global . BDFDB = { myPlugins : { } , BDv2Api : Api } ;
2018-10-11 10:21:26 +02:00
return class extends Plugin {
initConstructor ( ) {
this . labels = { } ;
2019-01-26 22:45:19 +01:00
this . patchModules = {
"Guild" : "componentDidMount"
} ;
2018-10-11 10:21:26 +02:00
this . serverHiderModalMarkup =
2019-01-26 22:45:19 +01:00
` <span class=" ${ this . name } -modal DevilBro-modal">
2018-10-11 10:21:26 +02:00
< div class = "${BDFDB.disCN.backdrop}" > < / d i v >
< div class = "${BDFDB.disCN.modal}" >
< div class = "${BDFDB.disCN.modalinner}" >
< div class = "${BDFDB.disCNS.modalsub + BDFDB.disCN.modalsizemedium}" >
< div class = "${BDFDB.disCNS.flex + BDFDB.disCNS.flex2 + BDFDB.disCNS.horizontal + BDFDB.disCNS.horizontal2 + BDFDB.disCNS.directionrow + BDFDB.disCNS.justifystart + BDFDB.disCNS.aligncenter + BDFDB.disCNS.nowrap + BDFDB.disCN.modalheader}" style = "flex: 0 0 auto;" >
< div class = "${BDFDB.disCN.flexchild}" style = "flex: 1 1 auto;" >
< h4 class = "${BDFDB.disCNS.h4 + BDFDB.disCNS.headertitle + BDFDB.disCNS.size16 + BDFDB.disCNS.height20 + BDFDB.disCNS.weightsemibold + BDFDB.disCNS.defaultcolor + BDFDB.disCNS.h4defaultmargin + BDFDB.disCN.marginreset}" > REPLACE _modal _header _text < / h 4 >
< div class = "${BDFDB.disCNS.modalguildname + BDFDB.disCNS.small + BDFDB.disCNS.size12 + BDFDB.disCNS.height16 + BDFDB.disCN.primary}" > < / d i v >
< / d i v >
2019-01-26 22:45:19 +01:00
< button type = "button" class = "${BDFDB.disCNS.modalclose + BDFDB.disCNS.flexchild + BDFDB.disCNS.button + BDFDB.disCNS.buttonlookblank + BDFDB.disCNS.buttoncolorbrand + BDFDB.disCN.buttongrow}" >
< div class = "${BDFDB.disCN.buttoncontents}" >
< svg name = "Close" width = "18" height = "18" viewBox = "0 0 12 12" style = "flex: 0 1 auto;" >
< g fill = "none" fill - rule = "evenodd" >
< path d = "M0 0h12v12H0" > < / p a t h >
< path class = "fill" fill = "currentColor" d = "M9.5 3.205L8.795 2.5 6 5.295 3.205 2.5l-.705.705L5.295 6 2.5 8.795l.705.705L6 6.705 8.795 9.5l.705-.705L6.705 6" > < / p a t h >
< / g >
< / s v g >
< / d i v >
< / b u t t o n >
2018-10-11 10:21:26 +02:00
< / d i v >
< div class = "${BDFDB.disCNS.scrollerwrap + BDFDB.disCNS.modalcontent + BDFDB.disCNS.scrollerthemed + BDFDB.disCN.themeghosthairline}" >
< div class = "${BDFDB.disCNS.scroller + BDFDB.disCN.modalsubinner} entries" > < / d i v >
< / d i v >
< div class = "${BDFDB.disCNS.flex + BDFDB.disCNS.flex2 + BDFDB.disCNS.horizontalreverse + BDFDB.disCNS.horizontalreverse2 + BDFDB.disCNS.directionrowreverse + BDFDB.disCNS.justifystart + BDFDB.disCNS.alignstretch + BDFDB.disCNS.nowrap + BDFDB.disCN.modalfooter}" >
2019-01-26 22:45:19 +01:00
< button type = "button" class = "btn-ok ${BDFDB.disCNS.button + BDFDB.disCNS.buttonlookfilled + BDFDB.disCNS.buttoncolorbrand + BDFDB.disCNS.buttonsizemedium + BDFDB.disCN.buttongrow}" >
2018-10-11 10:21:26 +02:00
< div class = "${BDFDB.disCN.buttoncontents}" > REPLACE _btn _ok _text < / d i v >
< / b u t t o n >
< button type = "button" class = "btn-all ${BDFDB.disCNS.button + BDFDB.disCNS.buttonlooklink + BDFDB.disCNS.buttoncolortransparent + BDFDB.disCNS.buttonsizemedium + BDFDB.disCN.buttongrow}" >
< div class = "${BDFDB.disCN.buttoncontents}" > REPLACE _btn _all _text < / d i v >
< / b u t t o n >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< / s p a n > ` ;
this . serverEntryMarkup =
` <div class=" ${ BDFDB . disCNS . flex + BDFDB . disCNS . flex2 + BDFDB . disCNS . horizontal + BDFDB . disCNS . horizontal2 + BDFDB . disCNS . directionrow + BDFDB . disCNS . justifystart + BDFDB . disCNS . aligncenter + BDFDB . disCNS . nowrap + BDFDB . disCNS . margintop4 + BDFDB . disCN . marginbottom4 } entry" style="flex: 1 1 auto;">
< h3 class = "${BDFDB.disCNS.titledefault + BDFDB.disCNS.title + BDFDB.disCNS.marginreset + BDFDB.disCNS.weightmedium + BDFDB.disCNS.size16 + BDFDB.disCNS.height24 + BDFDB.disCNS.flexchild + BDFDB.disCNS.overflowellipsis} serverhiderName" style = "flex: 1 1 auto;" > < / h 3 >
< div class = "${BDFDB.disCNS.flexchild + BDFDB.disCNS.switchenabled + BDFDB.disCNS.switch + BDFDB.disCNS.switchvalue + BDFDB.disCNS.switchsizedefault + BDFDB.disCNS.switchsize + BDFDB.disCN.switchthemedefault}" style = "flex: 0 0 auto;" >
< input type = "checkbox" class = "${BDFDB.disCNS.switchinnerenabled + BDFDB.disCN.switchinner} serverhiderCheckbox" >
< / d i v >
< / d i v > ` ;
this . serverContextEntryMarkup =
` <div class=" ${ BDFDB . disCN . contextmenuitemgroup } ">
< div class = "${BDFDB.disCN.contextmenuitem} serverhider-item ${BDFDB.disCN.contextmenuitemsubmenu}" >
2019-01-02 22:08:55 +01:00
< span class = "DevilBro-textscrollwrapper" speed = 3 > < div class = "DevilBro-textscroll" > REPLACE _context _serverhider _text < / d i v > < / s p a n >
2018-10-11 10:21:26 +02:00
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
< / d i v > ` ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . serverContextSubMenuMarkup =
` <div class=" ${ BDFDB . disCN . contextmenu } serverhider-submenu">
< div class = "${BDFDB.disCN.contextmenuitemgroup}" >
< div class = "${BDFDB.disCN.contextmenuitem} hideserver-item ${BDFDB.disCN.contextmenuitemdisabled}" >
2019-01-02 22:08:55 +01:00
< span class = "DevilBro-textscrollwrapper" speed = 3 > < div class = "DevilBro-textscroll" > REPLACE _submenu _hideserver _text < / d i v > < / s p a n >
2018-10-11 10:21:26 +02:00
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
< div class = "${BDFDB.disCN.contextmenuitem} openhidemenu-item" >
2019-01-02 22:08:55 +01:00
< span class = "DevilBro-textscrollwrapper" speed = 3 > < div class = "DevilBro-textscroll" > REPLACE _submenu _openhidemenu _text < / d i v > < / s p a n >
2018-10-11 10:21:26 +02:00
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
< / d i v >
< / d i v > ` ;
}
onStart ( ) {
2019-02-04 09:40:44 +01:00
if ( global . BDFDB && global . BDFDB . myPlugins && typeof global . BDFDB . myPlugins == "object" ) global . BDFDB . myPlugins [ this . name ] = this ;
2019-01-26 22:45:19 +01:00
var libraryScript = document . querySelector ( 'head script[src="https://mwittrien.github.io/BetterDiscordAddons/Plugins/BDFDB.js"]' ) ;
2019-02-10 19:49:16 +01:00
if ( ! global . BDFDB || typeof BDFDB != "object" || performance . now ( ) - BDFDB . creationTime > 600000 ) {
2018-10-11 10:21:26 +02:00
if ( libraryScript ) libraryScript . remove ( ) ;
libraryScript = document . createElement ( "script" ) ;
libraryScript . setAttribute ( "type" , "text/javascript" ) ;
libraryScript . setAttribute ( "src" , "https://mwittrien.github.io/BetterDiscordAddons/Plugins/BDFDB.js" ) ;
2019-01-26 22:45:19 +01:00
libraryScript . setAttribute ( "date" , performance . now ( ) ) ;
2019-01-30 21:23:49 +01:00
libraryScript . addEventListener ( "load" , ( ) => { if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) this . initialize ( ) ; } ) ;
2018-10-11 10:21:26 +02:00
document . head . appendChild ( libraryScript ) ;
}
2019-01-26 22:45:19 +01:00
else if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) this . initialize ( ) ;
2018-10-11 10:21:26 +02:00
this . startTimeout = setTimeout ( ( ) => { this . initialize ( ) ; } , 30000 ) ;
}
initialize ( ) {
2019-01-26 22:45:19 +01:00
if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) {
if ( this . started ) return true ;
2018-10-11 10:21:26 +02:00
BDFDB . loadMessage ( this ) ;
2019-01-26 22:45:19 +01:00
if ( BDFDB . isPluginEnabled ( "HideUtils" ) && ! BDFDB . loadData ( "hideutils" , this , "warnings" ) ) BDFDB . openConfirmModal ( this , this . name + " is not compartible with the plugin HideUtils by Arashiryuu. You might expierence bugs like Servers that should be hidden by " + this . name + " still being visible in the Guildlist. To avoid this disable the Plugin HideUtils. Press the " + BDFDB . getLibraryStrings ( ) . btn _ok _text + "-Button to not show this Message again." , "Warning" , ( ) => { BDFDB . saveData ( "hideutils" , true , this , "warnings" ) } ) ;
BDFDB . WebModules . forceAllUpdates ( this ) ;
2018-10-11 10:21:26 +02:00
return true ;
}
else {
2019-01-24 13:37:08 +01:00
console . error ( ` %c[ ${ this . name } ]%c ` , 'color: #3a71c1; font-weight: 700;' , '' , 'Fatal Error: Could not load BD functions!' ) ;
2018-10-11 10:21:26 +02:00
return false ;
}
}
onStop ( ) {
2019-01-26 22:45:19 +01:00
if ( global . BDFDB && typeof BDFDB === "object" && BDFDB . loaded ) {
BDFDB . readServerList ( ) . forEach ( info => { if ( ! info . div . getAttribute ( "folder" ) ) BDFDB . toggleEles ( info . div , true ) ; } ) ;
2018-10-11 10:21:26 +02:00
BDFDB . unloadMessage ( this ) ;
return true ;
}
else {
return false ;
}
}
2019-01-26 22:45:19 +01:00
// begin of own functions
2018-10-11 10:21:26 +02:00
changeLanguageStrings ( ) {
this . serverContextEntryMarkup = this . serverContextEntryMarkup . replace ( "REPLACE_context_serverhider_text" , this . labels . context _serverhider _text ) ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . serverContextSubMenuMarkup = this . serverContextSubMenuMarkup . replace ( "REPLACE_submenu_hideserver_text" , this . labels . submenu _hideserver _text ) ;
this . serverContextSubMenuMarkup = this . serverContextSubMenuMarkup . replace ( "REPLACE_submenu_openhidemenu_text" , this . labels . submenu _openhidemenu _text ) ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . serverHiderModalMarkup = this . serverHiderModalMarkup . replace ( "REPLACE_modal_header_text" , this . labels . modal _header _text ) ;
this . serverHiderModalMarkup = this . serverHiderModalMarkup . replace ( "REPLACE_btn_ok_text" , this . labels . btn _ok _text ) ;
this . serverHiderModalMarkup = this . serverHiderModalMarkup . replace ( "REPLACE_btn_all_text" , this . labels . btn _all _text ) ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . serverEntryMarkup = this . serverEntryMarkup . replace ( "REPLACE_btn_visible_text" , this . labels . btn _visible _text ) ;
}
2019-01-26 22:45:19 +01:00
onGuildContextMenu ( instance , menu ) {
if ( document . querySelector ( ".DevilBro-modal" ) ) return ;
if ( instance . props && instance . props . target && instance . props . type . indexOf ( "GUILD_ICON_" ) == 0 && ! menu . querySelector ( ".serverhider-item" ) ) {
let serverContextEntry = BDFDB . htmlToElement ( this . serverContextEntryMarkup ) ;
menu . appendChild ( serverContextEntry ) ;
let hideritem = serverContextEntry . querySelector ( ".serverhider-item" ) ;
hideritem . addEventListener ( "mouseenter" , ( ) => {
let serverContextSubMenu = BDFDB . htmlToElement ( this . serverContextSubMenuMarkup ) ;
let openitem = serverContextSubMenu . querySelector ( ".openhidemenu-item" ) ;
openitem . addEventListener ( "click" , ( ) => {
instance . _reactInternalFiber . return . memoizedProps . closeContextMenu ( ) ;
this . showServerModal ( ) ;
2018-10-11 10:21:26 +02:00
} ) ;
2019-01-26 22:45:19 +01:00
if ( instance . props . guild && ! instance . props . target . getAttribute ( "folder" ) ) {
let hideitem = serverContextSubMenu . querySelector ( ".hideserver-item" ) ;
BDFDB . removeClass ( hideitem , BDFDB . disCN . contextmenuitemdisabled ) ;
hideitem . addEventListener ( "click" , ( ) => {
instance . _reactInternalFiber . return . memoizedProps . closeContextMenu ( ) ;
this . toggleServer ( instance . props . guild , instance . props . target , false ) ;
} ) ;
}
BDFDB . appendSubMenu ( hideritem , serverContextSubMenu ) ;
2018-10-11 10:21:26 +02:00
} ) ;
}
}
2019-01-26 22:45:19 +01:00
processGuild ( instance , wrapper ) {
if ( instance . props && instance . props . guild ) {
let hiddenservers = BDFDB . loadData ( "hiddenservers" , this , "hiddenservers" ) || [ ] ;
this . toggleServer ( instance . props . guild , wrapper , ! hiddenservers . includes ( instance . props . guild . id ) ) ;
}
2018-10-11 10:21:26 +02:00
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
showServerModal ( ) {
2019-01-26 22:45:19 +01:00
let serverHiderModal = BDFDB . htmlToElement ( this . serverHiderModalMarkup ) ;
let container = serverHiderModal . querySelector ( ".entries" ) ;
if ( ! container ) return ;
BDFDB . addChildEventListener ( serverHiderModal , "click" , ".btn-all" , ( ) => {
let firstcheckbox = serverHiderModal . querySelector ( ".serverhiderCheckbox" ) ;
firstcheckbox . click ( ) ;
serverHiderModal . querySelectorAll ( ".serverhiderCheckbox" ) . forEach ( checkbox => {
if ( checkbox != firstcheckbox && checkbox . checked != firstcheckbox . checked ) checkbox . click ( ) ;
2018-10-11 10:21:26 +02:00
} ) ;
2019-01-26 22:45:19 +01:00
} ) ;
for ( let info of BDFDB . readServerList ( ) ) {
if ( ! info . div . getAttribute ( "folder" ) ) {
if ( container . firstElementChild ) container . appendChild ( BDFDB . htmlToElement ( ` <div class=" ${ BDFDB . disCN . modaldivider } "></div> ` ) ) ;
let entry = BDFDB . htmlToElement ( this . serverEntryMarkup ) ;
container . appendChild ( entry ) ;
let name = entry . querySelector ( ".serverhiderName" ) ;
name . innerText = info . name || "" ;
name . parentElement . insertBefore ( this . createCopyOfServer ( info ) , name ) ;
let hidecheckbox = entry . querySelector ( ".serverhiderCheckbox" ) ;
hidecheckbox . checked = ! BDFDB . isEleHidden ( info . div ) ;
hidecheckbox . addEventListener ( "click" , e => {
this . toggleServer ( info , info . div , e . currentTarget . checked ) ;
2018-10-11 10:21:26 +02:00
} ) ;
2019-01-26 22:45:19 +01:00
}
2018-10-11 10:21:26 +02:00
}
BDFDB . appendModal ( serverHiderModal ) ;
}
2019-01-26 22:45:19 +01:00
createCopyOfServer ( info ) {
let serverCopy = info . div . cloneNode ( true ) ;
BDFDB . toggleEles ( serverCopy , true ) ;
BDFDB . removeClass ( serverCopy , BDFDB . disCN . guildunread , BDFDB . disCN . guildselected ) ;
serverCopy . addEventListener ( "click" , e => {
e . preventDefault ( ) ;
info . div . querySelector ( "a" ) . click ( ) ;
} ) ;
serverCopy . addEventListener ( "contextmenu" , e => { BDFDB . openGuildContextMenu ( info . div , e ) ; } ) ;
2018-10-11 10:21:26 +02:00
return serverCopy ;
}
2019-01-26 22:45:19 +01:00
toggleServer ( info , target , visible ) {
if ( ! info || ! target ) return ;
let guilddiv = BDFDB . getParentEle ( BDFDB . dotCN . guild , target ) ;
if ( ! guilddiv || guilddiv . getAttribute ( "folder" ) ) return ;
BDFDB . toggleEles ( guilddiv , visible ) ;
let hiddenservers = BDFDB . loadData ( "hiddenservers" , this , "hiddenservers" ) || [ ] ;
BDFDB . removeFromArray ( hiddenservers , info . id ) ;
if ( ! visible ) hiddenservers . push ( info . id ) ;
BDFDB . saveData ( "hiddenservers" , hiddenservers , this , "hiddenservers" ) ;
2018-10-11 10:21:26 +02:00
}
getSettingsPanel ( ) {
2019-01-26 22:45:19 +01:00
if ( ! global . BDFDB || typeof BDFDB != "object" || ! BDFDB . loaded || ! this . started ) return ;
let settingshtml = ` <div class=" ${ this . name } -settings DevilBro-settings"><div class=" ${ BDFDB . disCNS . titledefault + BDFDB . disCNS . title + BDFDB . disCNS . size18 + BDFDB . disCNS . height24 + BDFDB . disCNS . weightnormal + BDFDB . disCN . marginbottom8 } "> ${ this . name } </div><div class="DevilBro-settings-inner"> ` ;
2018-10-11 10:21:26 +02:00
settingshtml += ` <div class=" ${ BDFDB . disCNS . flex + BDFDB . disCNS . flex2 + BDFDB . disCNS . horizontal + BDFDB . disCNS . horizontal2 + BDFDB . disCNS . directionrow + BDFDB . disCNS . justifystart + BDFDB . disCNS . aligncenter + BDFDB . disCNS . nowrap + BDFDB . disCN . marginbottom8 } " style="flex: 0 0 auto;"><h3 class=" ${ BDFDB . disCNS . titledefault + BDFDB . disCNS . title + BDFDB . disCNS . marginreset + BDFDB . disCNS . weightmedium + BDFDB . disCNS . size16 + BDFDB . disCNS . height24 + BDFDB . disCN . flexchild } " style="flex: 1 1 auto;">Reset all Servers.</h3><button type="button" class=" ${ BDFDB . disCNS . flexchild + BDFDB . disCNS . button + BDFDB . disCNS . buttonlookfilled + BDFDB . disCNS . buttoncolorred + BDFDB . disCNS . buttonsizemedium + BDFDB . disCN . buttongrow } reset-button" style="flex: 0 0 auto;"><div class=" ${ BDFDB . disCN . buttoncontents } ">Reset</div></button></div> ` ;
2019-01-26 22:45:19 +01:00
settingshtml += ` </div></div> ` ;
let settingspanel = BDFDB . htmlToElement ( settingshtml ) ;
2018-10-11 10:21:26 +02:00
2019-01-26 22:45:19 +01:00
BDFDB . initElements ( settingspanel , this ) ;
BDFDB . addEventListener ( this , settingspanel , "click" , ".reset-button" , ( ) => {
BDFDB . openConfirmModal ( this , "Are you sure you want to reset all servers?" , ( ) => {
BDFDB . removeAllData ( this , "servers" ) ;
BDFDB . readServerList ( ) . forEach ( info => { if ( ! info . div . getAttribute ( "folder" ) ) BDFDB . toggleEles ( info . div , false ) ; } ) ;
} ) ;
} ) ;
2018-10-11 10:21:26 +02:00
return settingspanel ;
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
setLabelsByLanguage ( ) {
switch ( BDFDB . getDiscordLanguage ( ) . id ) {
case "hr" : //croatian
return {
modal _header _text : "Upravljanje popisom poslužitelja" ,
modal _folderhide _text : "Nemoj prikazivati poslužitelje skrivene po narudžbi" ,
btn _ok _text : "OK" ,
btn _all _text : "Sve" ,
context _serverhider _text : "Vidljivost poslužitelj" ,
submenu _hideserver _text : "Sakrij poslužitelj" ,
submenu _openhidemenu _text : "Upravljanje popisom poslužitelja"
} ;
case "da" : //danish
return {
modal _header _text : "Styring af Serverliste" ,
modal _folderhide _text : "Vis ingen servere, som er gemt af mapper" ,
btn _ok _text : "OK" ,
btn _all _text : "Alle" ,
context _serverhider _text : "Server synlighed" ,
submenu _hideserver _text : "Skjul Server" ,
submenu _openhidemenu _text : "Styre Serverliste"
} ;
case "de" : //german
return {
modal _header _text : "Verwaltung der Serverliste" ,
modal _folderhide _text : "Zeige keine Server, die durch Order versteckt wurden" ,
btn _ok _text : "OK" ,
btn _all _text : "Alle" ,
context _serverhider _text : "Serversichtbarkeit" ,
submenu _hideserver _text : "Server verstecken" ,
submenu _openhidemenu _text : "Serverliste verwalten"
} ;
case "es" : //spanish
return {
modal _header _text : "Administración de lista de servidores" ,
modal _folderhide _text : "No mostrar servidores, que están ocultos por las carpetas" ,
btn _ok _text : "OK" ,
btn _all _text : "Todo" ,
context _serverhider _text : "Visibilidad del servidor" ,
submenu _hideserver _text : "Ocultar servidor" ,
submenu _openhidemenu _text : "Administrar lista de servidores"
} ;
case "fr" : //french
return {
modal _header _text : "Gestion de la liste des serveurs" ,
modal _folderhide _text : "Afficher aucun serveur, qui sont cachés par des dossiers" ,
btn _ok _text : "OK" ,
btn _all _text : "Tout" ,
context _serverhider _text : "Visibilité du serveur" ,
submenu _hideserver _text : "Cacher le serveur" ,
submenu _openhidemenu _text : "Gérer la liste des serveurs"
} ;
case "it" : //italian
return {
modal _header _text : "Gestione dell'elenco dei server" ,
modal _folderhide _text : "Mostra nessun server nascosto nelle cartelle" ,
btn _ok _text : "OK" ,
btn _all _text : "Tutto" ,
context _serverhider _text : "Visibilità del server" ,
submenu _hideserver _text : "Nascondi il server" ,
submenu _openhidemenu _text : "Gestione elenco dei server"
} ;
case "nl" : //dutch
return {
modal _header _text : "Beheer van de Serverlijst" ,
modal _folderhide _text : "Toon geen servers, die zijn verborgen door mappen" ,
btn _ok _text : "OK" ,
btn _all _text : "Alle" ,
context _serverhider _text : "Server zichtbaarheid" ,
submenu _hideserver _text : "Verberg server" ,
submenu _openhidemenu _text : "Beheer serverlijst"
} ;
case "no" : //norwegian
return {
modal _header _text : "Administrasjon av serverlisten" ,
modal _folderhide _text : "Vis ingen servere, som er skjult av mapper" ,
btn _ok _text : "OK" ,
btn _all _text : "Alle" ,
context _serverhider _text : "Server synlighet" ,
submenu _hideserver _text : "Skjul server" ,
submenu _openhidemenu _text : "Administrer serverliste"
} ;
case "pl" : //polish
return {
modal _header _text : "Zarządzanie listą serwerów" ,
modal _folderhide _text : "Nie pokazuj żadnych serwerów, które są ukryte w folderach" ,
btn _ok _text : "OK" ,
btn _all _text : "Wszystkie" ,
context _serverhider _text : "Widoczność serwera" ,
submenu _hideserver _text : "Ukryj serwer" ,
submenu _openhidemenu _text : "Zarządzaj listą serwerów"
} ;
case "pt-BR" : //portuguese (brazil)
return {
modal _header _text : "Gerenciamento da lista de servidores" ,
modal _folderhide _text : "Não exiba servidores, que estão ocultos por pastas" ,
btn _ok _text : "OK" ,
btn _all _text : "Todo" ,
context _serverhider _text : "Visibilidade do servidor" ,
submenu _hideserver _text : "Ocultar servidor" ,
submenu _openhidemenu _text : "Gerenciar lista de servidores"
} ;
case "fi" : //finnish
return {
modal _header _text : "Palvelinluettelon hallinta" ,
modal _folderhide _text : "Näytä mitään palvelimia, jotka ovat kansioiden piilossa" ,
btn _ok _text : "OK" ,
btn _all _text : "Kaikki" ,
context _serverhider _text : "Palvelimen näkyvyys" ,
submenu _hideserver _text : "Piilota palvelin" ,
submenu _openhidemenu _text : "Hallinnoi palvelinluetteloa"
} ;
case "sv" : //swedish
return {
modal _header _text : "Hantering av serverlistan" ,
modal _folderhide _text : "Visa inga servrar, vilka är dolda av mappar" ,
btn _ok _text : "OK" ,
btn _all _text : "All" ,
context _serverhider _text : "Server sikt" ,
submenu _hideserver _text : "Dölj server" ,
submenu _openhidemenu _text : "Hantera serverlistan"
} ;
case "tr" : //turkish
return {
modal _header _text : "Sunucu Listesinin Yönetimi" ,
modal _folderhide _text : "Klasörler tarafı ndan gizlenen hiçbir sunucu gösterme" ,
btn _ok _text : "Okey" ,
btn _all _text : "Her" ,
context _serverhider _text : "Sunucu görünürlüğü" ,
submenu _hideserver _text : "Sunucuyu Gizle" ,
submenu _openhidemenu _text : "Sunucu Listesini Yönet"
} ;
case "cs" : //czech
return {
modal _header _text : "Správa seznamu serverů" ,
modal _folderhide _text : "Zobrazit žádné servery, které jsou skryty podle složek" ,
btn _ok _text : "OK" ,
btn _all _text : "Vše" ,
context _serverhider _text : "Viditelnost serveru" ,
submenu _hideserver _text : "Skrýt server" ,
submenu _openhidemenu _text : "Správa seznamu serverů"
} ;
case "bg" : //bulgarian
return {
modal _header _text : "Управление на списъка със сървъри" ,
modal _folderhide _text : "Показване на сървъри, които с а скрити от папки" ,
btn _ok _text : "Добре" ,
btn _all _text : "Bс ичко " ,
context _serverhider _text : "Видимост на сървъра" ,
submenu _hideserver _text : "Скриване на сървър" ,
submenu _openhidemenu _text : "Управление на списъка със сървъри"
} ;
case "ru" : //russian
return {
modal _header _text : "Управление списком серверов" ,
modal _folderhide _text : "Показывать никакие серверы, скрытые папками" ,
btn _ok _text : "О К " ,
btn _all _text : "В с е " ,
context _serverhider _text : "Видимость сервера" ,
submenu _hideserver _text : "Скрыть сервер" ,
submenu _openhidemenu _text : "Управление списком серверов"
} ;
case "uk" : //ukrainian
return {
modal _header _text : "Управління списком серверів" ,
modal _folderhide _text : "Н е показувати жодних серверів, які приховуються папками" ,
btn _ok _text : "Добре" ,
btn _all _text : "В с е " ,
context _serverhider _text : "Видимість сервера" ,
submenu _hideserver _text : "Сховати сервер" ,
submenu _openhidemenu _text : "Управління списком серверів"
} ;
case "ja" : //japanese
return {
modal _header _text : "サーバリストの管理" ,
modal _folderhide _text : "フォルダに隠されているサーバーは表示しない" ,
btn _ok _text : "はい" ,
btn _all _text : "すべて" ,
context _serverhider _text : "サーバーの可視性" ,
submenu _hideserver _text : "サーバーを隠す" ,
submenu _openhidemenu _text : "サーバーリストを管理する"
} ;
case "zh-TW" : //chinese (traditional)
return {
modal _header _text : "管理服务器列表" ,
modal _folderhide _text : "不顯示被文件夾隱藏的服務器" ,
btn _ok _text : "好" ,
btn _all _text : "所有" ,
context _serverhider _text : "服務器可見性" ,
submenu _hideserver _text : "隐藏服务器" ,
submenu _openhidemenu _text : "管理服务器列表"
} ;
case "ko" : //korean
return {
modal _header _text : "서버 목록 관리" ,
modal _folderhide _text : "폴더별로 숨겨진 서버 표시 안 함" ,
btn _ok _text : "승인" ,
btn _all _text : "모든" ,
context _serverhider _text : "서버 가시성" ,
submenu _hideserver _text : "서버 숨기기" ,
submenu _openhidemenu _text : "서버 목록 관리"
} ;
default : //default: english
return {
modal _header _text : "Managing Serverlist" ,
modal _folderhide _text : "Show no servers, which are hidden by folders" ,
btn _ok _text : "OK" ,
btn _all _text : "All" ,
context _serverhider _text : "Server Visibility" ,
submenu _hideserver _text : "Hide Server" ,
submenu _openhidemenu _text : "Manage Serverlist"
} ;
}
}
}
} ;