2019-01-31 17:06:48 +01:00
//META{"name":"ReadAllNotificationsButton","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ReadAllNotificationsButton","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js"}*//
2018-10-11 10:21:26 +02:00
class ReadAllNotificationsButton {
2019-01-17 23:48:29 +01:00
getName ( ) { return "ReadAllNotificationsButton" ; }
2019-05-13 10:41:41 +02:00
getVersion ( ) { return "1.4.9" ; }
2019-01-17 23:48:29 +01:00
getAuthor ( ) { return "DevilBro" ; }
2019-01-26 22:45:19 +01:00
2019-01-17 23:48:29 +01:00
getDescription ( ) { return "Adds a button to clear all notifications." ; }
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
initConstructor ( ) {
2019-02-04 11:17:39 +01:00
this . changelog = {
2019-05-13 10:41:41 +02:00
"added" : [ [ "Muted Servers" , "Added an extra contextmenu option to only read muted servers and also relabeled the other options" ] ]
2019-02-04 11:17:39 +01:00
} ;
2019-01-03 12:15:11 +01:00
this . patchModules = {
2019-05-03 17:49:54 +02:00
"Guilds" : [ "componentDidMount" , "componentDidUpdate" ] ,
2019-03-07 23:56:18 +01:00
"RecentMentions" : "componentDidMount" ,
"DirectMessage" : "componentDidMount"
2019-01-03 12:15:11 +01:00
} ;
2019-01-26 22:45:19 +01:00
2019-02-04 11:17:39 +01:00
this . RANcontextMenuMarkup =
` <div class=" ${ BDFDB . disCN . contextmenu } RANbutton-contextmenu">
< div class = "${BDFDB.disCN.contextmenuitemgroup}" >
2019-05-13 10:41:41 +02:00
< div class = "${BDFDB.disCN.contextmenuitem} readunreadguilds-item" >
< span class = "BDFDB-textscrollwrapper" speed = 3 > < div class = "BDFDB-textscroll" > REPLACE _context _unreadguilds _text < / d i v > < / s p a n >
2019-02-04 11:17:39 +01:00
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
< div class = "${BDFDB.disCN.contextmenuitem} readmutedguilds-item" >
2019-04-18 09:28:20 +02:00
< span class = "BDFDB-textscrollwrapper" speed = 3 > < div class = "BDFDB-textscroll" > REPLACE _context _mutedguilds _text < / d i v > < / s p a n >
2019-02-04 11:17:39 +01:00
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
2019-05-13 10:41:41 +02:00
< div class = "${BDFDB.disCN.contextmenuitem} readguilds-item" >
< span class = "BDFDB-textscrollwrapper" speed = 3 > < div class = "BDFDB-textscroll" > REPLACE _context _guilds _text < / d i v > < / s p a n >
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
2019-02-04 11:17:39 +01:00
< div class = "${BDFDB.disCN.contextmenuitem} readdms-item" >
2019-04-18 09:28:20 +02:00
< span class = "BDFDB-textscrollwrapper" speed = 3 > < div class = "BDFDB-textscroll" > REPLACE _context _dms _text < / d i v > < / s p a n >
2019-02-04 11:17:39 +01:00
< div class = "${BDFDB.disCN.contextmenuhint}" > < / d i v >
< / d i v >
< / d i v >
< / d i v > ` ;
2018-10-11 10:21:26 +02:00
this . RANbuttonMarkup =
2019-04-25 23:56:17 +02:00
` <div class=" ${ BDFDB . disCN . guildouter } RANbutton-frame" style="height: 20px;">
2019-04-25 22:59:53 +02:00
< div class = "${BDFDB.disCN.guildiconacronym} RANbutton" style = "height: 20px;" > read all < / d i v >
2018-10-11 10:21:26 +02:00
< / d i v > ` ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . RAMbuttonMarkup =
2019-01-03 12:15:11 +01:00
` <button type="button" class=" ${ BDFDB . disCNS . flexchild + BDFDB . disCNS . button + BDFDB . disCNS . buttonlookfilled + BDFDB . disCNS . buttoncolorbrand + BDFDB . disCNS . buttonsizemin + BDFDB . disCN . buttongrow } RAMbutton" style="flex: 0 0 auto; margin-left: 25px; height: 25px;">
2018-11-19 15:08:51 +01:00
< div class = "${BDFDB.disCN.buttoncontents}" > Clear Mentions < / d i v >
2018-10-11 10:21:26 +02:00
< / b u t t o n > ` ;
2019-04-23 14:37:56 +02:00
this . css = `
. RANbutton - frame {
margin - bottom : 10 px ;
}
. RANbutton {
cursor : pointer ;
border - radius : 4 px ;
font - size : 12 px ;
font - weight : 500 ;
line - height : 1.3 ;
}
` ;
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
this . defaults = {
settings : {
2019-02-08 21:33:47 +01:00
addClearButton : { value : true , inner : false , description : "Adds a 'Clear Mentions' button to the recent mentions popout" } ,
includeGuilds : { value : true , inner : true , description : "unread Servers" } ,
includeMuted : { value : false , inner : true , description : "muted unread Servers" } ,
includeDMs : { value : false , inner : true , description : "unread DMs" }
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 ;
2018-10-11 10:21:26 +02:00
var settings = BDFDB . getAllData ( this , "settings" ) ;
2019-04-18 09:28:20 +02:00
var settingshtml = ` <div class=" ${ this . name } -settings BDFDB-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="BDFDB-settings-inner"> ` ;
2019-02-08 21:33:47 +01:00
for ( let key in settings ) {
if ( ! this . defaults . settings [ key ] . inner ) 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: 1 1 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;"> ${ this . defaults . settings [ key ] . description } </h3><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" value="settings ${ key } " class=" ${ BDFDB . disCNS . switchinnerenabled + BDFDB . disCN . switchinner } settings-switch" ${ settings [ key ] ? " checked" : "" } ></div></div> ` ;
}
2019-04-18 09:28:20 +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: 1 1 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: 0 0 auto;">When left clicking the button mark following elements as unread:</h3></div><div class="BDFDB-settings-inner-list"> ` ;
2018-10-11 10:21:26 +02:00
for ( let key in settings ) {
2019-02-08 21:33:47 +01:00
if ( this . defaults . settings [ key ] . inner ) 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: 1 1 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;"> ${ this . defaults . settings [ key ] . description } </h3><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" value="settings ${ key } " class=" ${ BDFDB . disCNS . switchinnerenabled + BDFDB . disCN . switchinner } settings-switch" ${ settings [ key ] ? " checked" : "" } ></div></div> ` ;
2018-10-11 10:21:26 +02:00
}
2019-02-04 11:17:39 +01:00
settingshtml += ` </div> ` ;
2018-10-11 10:21:26 +02:00
settingshtml += ` </div></div> ` ;
2019-01-26 22:45:19 +01:00
2019-01-17 23:48:29 +01:00
let settingspanel = BDFDB . htmlToElement ( settingshtml ) ;
2018-10-11 10:21:26 +02:00
2019-01-17 23:48:29 +01:00
BDFDB . initElements ( settingspanel , this ) ;
2019-02-04 11:17:39 +01:00
let mutedinput = settingspanel . querySelector ( ".settings-switch[value='settings includeMuted']" ) . parentElement . parentElement ;
BDFDB . toggleEles ( mutedinput , settings . includeGuilds ) ;
BDFDB . addEventListener ( this , settingspanel , "click" , ".settings-switch[value='settings includeGuilds']" , e => {
BDFDB . toggleEles ( mutedinput , e . currentTarget . checked ) ;
} ) ;
2018-10-11 10:21:26 +02:00
return settingspanel ;
}
//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-01-17 23:48:29 +01:00
var libraryScript = document . querySelector ( 'head script[src="https://mwittrien.github.io/BetterDiscordAddons/Plugins/BDFDB.js"]' ) ;
if ( ! libraryScript || performance . now ( ) - libraryScript . getAttribute ( "date" ) > 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-17 23:48:29 +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-17 23:48:29 +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-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 ;
2018-10-11 10:21:26 +02:00
BDFDB . loadMessage ( this ) ;
2019-01-26 22:45:19 +01:00
2019-01-03 12:15:11 +01:00
BDFDB . WebModules . forceAllUpdates ( this ) ;
2018-10-11 10:21:26 +02:00
}
else {
2019-02-12 21:56:34 +01:00
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-01-03 12:15:11 +01:00
BDFDB . removeEles ( ".RANbutton-frame" , ".RAMbutton" ) ;
BDFDB . removeClasses ( "RAN-added" , "RAM-added" ) ;
2018-10-11 10:21:26 +02:00
BDFDB . unloadMessage ( this ) ;
}
}
2019-01-26 22:45:19 +01:00
2018-10-11 10:21:26 +02:00
// begin of own functions
2019-01-26 22:45:19 +01:00
2019-02-04 11:17:39 +01:00
changeLanguageStrings ( ) {
2019-05-13 10:41:41 +02:00
this . RANcontextMenuMarkup = this . RANcontextMenuMarkup . replace ( "REPLACE_context_unreadguilds_text" , this . labels . context _unreadguilds _text ) ;
2019-02-04 11:17:39 +01:00
this . RANcontextMenuMarkup = this . RANcontextMenuMarkup . replace ( "REPLACE_context_mutedguilds_text" , this . labels . context _mutedguilds _text ) ;
2019-05-13 10:41:41 +02:00
this . RANcontextMenuMarkup = this . RANcontextMenuMarkup . replace ( "REPLACE_context_guilds_text" , this . labels . context _guilds _text ) ;
2019-02-04 11:17:39 +01:00
this . RANcontextMenuMarkup = this . RANcontextMenuMarkup . replace ( "REPLACE_context_dms_text" , this . labels . context _dms _text ) ;
}
2019-01-03 12:15:11 +01:00
processGuilds ( instance , wrapper ) {
2019-01-20 19:11:47 +01:00
BDFDB . removeEles ( ".RANbutton-frame" ) ;
2019-04-27 08:48:35 +02:00
let insertnode = this . getInsertNode ( ) ;
if ( insertnode ) {
2019-01-17 23:48:29 +01:00
let ranbutton = BDFDB . htmlToElement ( this . RANbuttonMarkup ) ;
2019-04-27 08:48:35 +02:00
insertnode . parentElement . insertBefore ( ranbutton , insertnode ) ;
2019-01-17 23:48:29 +01:00
ranbutton . addEventListener ( "click" , ( ) => {
2019-02-04 11:17:39 +01:00
let settings = BDFDB . getAllData ( this , "settings" ) ;
if ( settings . includeGuilds ) BDFDB . markGuildAsRead ( settings . includeMuted ? BDFDB . readServerList ( ) : BDFDB . readUnreadServerList ( ) ) ;
if ( settings . includeDMs ) BDFDB . markChannelAsRead ( BDFDB . readDmList ( ) ) ;
} ) ;
ranbutton . addEventListener ( "contextmenu" , e => {
let RANcontextMenu = BDFDB . htmlToElement ( this . RANcontextMenuMarkup ) ;
2019-05-13 10:41:41 +02:00
RANcontextMenu . querySelector ( ".readunreadguilds-item" ) . addEventListener ( "click" , ( ) => {
2019-02-04 11:17:39 +01:00
BDFDB . removeEles ( RANcontextMenu ) ;
BDFDB . markGuildAsRead ( BDFDB . readUnreadServerList ( ) ) ;
} ) ;
RANcontextMenu . querySelector ( ".readmutedguilds-item" ) . addEventListener ( "click" , ( ) => {
2019-05-13 10:41:41 +02:00
BDFDB . removeEles ( RANcontextMenu ) ;
BDFDB . markGuildAsRead ( BDFDB . readMutedServerList ( ) ) ;
} ) ;
RANcontextMenu . querySelector ( ".readguilds-item" ) . addEventListener ( "click" , ( ) => {
2019-02-04 11:17:39 +01:00
BDFDB . removeEles ( RANcontextMenu ) ;
BDFDB . markGuildAsRead ( BDFDB . readServerList ( ) ) ;
} ) ;
RANcontextMenu . querySelector ( ".readdms-item" ) . addEventListener ( "click" , ( ) => {
BDFDB . removeEles ( RANcontextMenu ) ;
BDFDB . markChannelAsRead ( BDFDB . readDmList ( ) ) ;
} ) ;
BDFDB . appendContextMenu ( RANcontextMenu , e ) ;
2019-01-03 12:15:11 +01:00
} ) ;
2019-01-17 23:48:29 +01:00
BDFDB . addClass ( wrapper , "RAN-added" ) ;
}
2019-01-03 12:15:11 +01:00
}
2019-01-26 22:45:19 +01:00
2019-03-07 23:56:18 +01:00
processDirectMessage ( instance , wrapper , methodnames ) {
let ranbutton = document . querySelector ( ".RANbutton-frame" ) ;
2019-04-27 08:48:35 +02:00
let insertnode = this . getInsertNode ( ) ;
if ( ranbutton && insertnode ) insertnode . parentElement . insertBefore ( ranbutton , insertnode ) ;
2019-03-07 23:56:18 +01:00
}
2019-01-03 12:15:11 +01:00
processRecentMentions ( instance , wrapper ) {
BDFDB . removeEles ( ".RAMbutton" ) ;
2019-02-08 21:33:47 +01:00
if ( instance . props && instance . props . popoutName == "RECENT_MENTIONS_POPOUT" && BDFDB . getData ( "addClearButton" , this , "settings" ) ) {
let recentmentionstitle = wrapper . querySelector ( BDFDB . dotCN . messagespopouttitle ) ;
2019-01-17 23:48:29 +01:00
if ( recentmentionstitle ) {
2019-01-20 22:19:35 +01:00
let ranbutton = BDFDB . htmlToElement ( this . RAMbuttonMarkup ) ;
2019-01-17 23:48:29 +01:00
recentmentionstitle . appendChild ( ranbutton ) ;
ranbutton . addEventListener ( "click" , ( ) => { this . clearMentions ( instance , wrapper ) ; } ) ;
BDFDB . addClass ( wrapper , "RAM-added" ) ;
}
2019-01-03 12:15:11 +01:00
}
}
2019-01-26 22:45:19 +01:00
2019-01-03 12:15:11 +01:00
clearMentions ( instance , wrapper ) {
let closebuttons = wrapper . querySelectorAll ( BDFDB . dotCN . messagespopoutclosebutton ) ;
for ( let btn of wrapper . querySelectorAll ( BDFDB . dotCN . messagespopoutclosebutton ) ) btn . click ( ) ;
if ( closebuttons . length ) {
instance . loadMore ( ) ;
setTimeout ( ( ) => { this . clearMentions ( instance , wrapper ) ; } , 3000 ) ;
}
2019-03-07 23:56:18 +01:00
}
2019-04-27 08:48:35 +02:00
getInsertNode ( ) {
let homebutton = BDFDB . getParentEle ( BDFDB . dotCN . guildouter , document . querySelector ( BDFDB . dotCN . homebuttonicon ) ) ;
2019-05-03 17:49:54 +02:00
if ( ! homebutton ) return null ;
2019-04-27 08:48:35 +02:00
let nextsibling = homebutton . nextElementSibling , insertnode = null ;
while ( nextsibling && insertnode == null ) {
if ( nextsibling . querySelector ( ` ${ BDFDB . dotCN . guildseparator } :not(.folderseparator) ` ) ) insertnode = nextsibling ;
nextsibling = nextsibling . nextElementSibling
}
return insertnode ;
}
2019-03-07 23:56:18 +01:00
setLabelsByLanguage ( ) {
2019-02-04 11:17:39 +01:00
switch ( BDFDB . getDiscordLanguage ( ) . id ) {
case "hr" : //croatian
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Nepročitani poslužitelji" ,
context _mutedguilds _text : "Prigušeni poslužitelje" ,
context _guilds _text : "Sve poslužitelje" ,
context _dms _text : "Prikvacene izravne"
2019-02-04 11:17:39 +01:00
} ;
case "da" : //danish
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Ulæste servere" ,
context _mutedguilds _text : "Dæmpede servere" ,
context _guilds _text : "Alle servere" ,
context _dms _text : "Private beskeder"
2019-02-04 11:17:39 +01:00
} ;
case "de" : //german
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Ungelesene Server" ,
2019-03-29 19:50:03 +01:00
context _mutedguilds _text : "Stummgeschaltene Server" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "Alle Server" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Direktnachrichten"
} ;
case "es" : //spanish
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Servidores no leídos" ,
2019-02-04 11:17:39 +01:00
context _mutedguilds _text : "Servidores silenciados" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "Todos los servidores" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Mensajes directos"
} ;
case "fr" : //french
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Serveurs non lus" ,
2019-02-04 11:17:39 +01:00
context _mutedguilds _text : "Serveurs en sourdine" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "Tous les serveurs" ,
2019-02-04 17:38:52 +01:00
context _dms _text : "Messages privés"
2019-02-04 11:17:39 +01:00
} ;
case "it" : //italian
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Server non letti" ,
context _mutedguilds _text : "Server mutate" ,
context _guilds _text : "Tutti i server" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Messaggi diretti"
} ;
case "nl" : //dutch
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Ongelezen servers" ,
context _mutedguilds _text : "Gedempte servers" ,
context _guilds _text : "Alle servers" ,
context _dms _text : "Prive berichten"
2019-02-04 11:17:39 +01:00
} ;
case "no" : //norwegian
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Uleste servere" ,
context _mutedguilds _text : "Dempet servere" ,
context _guilds _text : "Alle servere" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Direktemeldinger"
} ;
case "pl" : //polish
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Nieprzeczytane serwery" ,
context _mutedguilds _text : "Wyciszone serwery" ,
context _guilds _text : "Wszystkie serwery" ,
context _dms _text : "Prywatne wiadomości"
2019-02-04 11:17:39 +01:00
} ;
case "pt-BR" : //portuguese (brazil)
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Servidores não lidos" ,
context _mutedguilds _text : "Servidores silenciosos" ,
context _guilds _text : "Todos os servidores" ,
context _dms _text : "Mensagens diretas"
2019-02-04 11:17:39 +01:00
} ;
case "fi" : //finnish
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Lukemattomia palvelimet" ,
context _mutedguilds _text : "Mykistetyt palvelimet" ,
context _guilds _text : "Kaikki palvelimet" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Yksityisviestit"
} ;
case "sv" : //swedish
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Olästa servrar" ,
context _mutedguilds _text : "Dämpade servrar" ,
context _guilds _text : "Alla servrar" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Direktmeddelanden"
} ;
case "tr" : //turkish
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Okunmamı ş sunucular" ,
context _mutedguilds _text : "Sessiz sunucular" ,
context _guilds _text : "Tüm sunucular" ,
context _dms _text : "Özel mesajlar"
2019-02-04 11:17:39 +01:00
} ;
case "cs" : //czech
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Nepřečtené servery" ,
context _mutedguilds _text : "Tlumené servery" ,
context _guilds _text : "Všechny servery" ,
context _dms _text : "Přímé zpráva"
2019-02-04 11:17:39 +01:00
} ;
case "bg" : //bulgarian
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Непрочетени сървъри" ,
context _mutedguilds _text : "Приглушени сървъри" ,
context _guilds _text : "Всички сървъри" ,
context _dms _text : "Директно съобщение"
2019-02-04 11:17:39 +01:00
} ;
case "ru" : //russian
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Непрочитанные серверы" ,
context _mutedguilds _text : "Отключенные серверы" ,
context _guilds _text : "В с е серверы" ,
context _dms _text : "Прямые сообщения"
2019-02-04 11:17:39 +01:00
} ;
case "uk" : //ukrainian
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Непрочитаних серверів" ,
context _mutedguilds _text : "Приглушені сервери" ,
context _guilds _text : "В с і сервери" ,
2019-02-04 17:38:52 +01:00
context _dms _text : "Прямі Повідомлення"
2019-02-04 11:17:39 +01:00
} ;
case "ja" : //japanese
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "未読サーバー" ,
2019-02-04 17:38:52 +01:00
context _mutedguilds _text : "ミュートサーバー" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "すべてのサーバー" ,
2019-02-04 17:38:52 +01:00
context _dms _text : "ダイレクトメッセージ"
2019-02-04 11:17:39 +01:00
} ;
case "zh-TW" : //chinese (traditional)
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "未讀服務器" ,
2019-02-04 17:38:52 +01:00
context _mutedguilds _text : "靜音服務器" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "所有服務器" ,
2019-02-04 17:38:52 +01:00
context _dms _text : "直接消息" ,
2019-02-04 11:17:39 +01:00
} ;
case "ko" : //korean
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "읽지 않은 서버" ,
2019-02-04 17:38:52 +01:00
context _mutedguilds _text : "음소거 된 서버" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "모든 서버" ,
2019-02-04 17:38:52 +01:00
context _dms _text : "직접 메시지"
2019-02-04 11:17:39 +01:00
} ;
default : //default: english
return {
2019-05-13 10:41:41 +02:00
context _unreadguilds _text : "Unread Servers" ,
2019-02-04 11:17:39 +01:00
context _mutedguilds _text : "Muted Servers" ,
2019-05-13 10:41:41 +02:00
context _guilds _text : "All Servers" ,
2019-02-04 11:17:39 +01:00
context _dms _text : "Direct Messages"
} ;
}
2019-01-03 12:15:11 +01:00
}
2018-10-11 10:21:26 +02:00
}