// kate: space-indent on; indent-width 4; replace-tabs on; function renderserverinfos( server ){ var buf = []; if( server.connecturl ){ buf.push( String.format( '{0}: {1}', gettext("Server Address"), server.connecturl ) ); } if( server.url ){ buf.push( String.format( '{0}: {1}', gettext("Website"), server.url ) ); } buf.push( interpolate( gettext("This server is running Murmur version %s."), [server.prettyversion] ) ); buf.push( interpolate( ngettext( "Currently, %s user is registered.", "Currently, %s users are registered.", server.users_regged ), [server.users_regged] ) ); buf.push( interpolate( ngettext( "Currently, %s user is online.", "Currently, %s users are online.", server.users_online ), [server.users_online] ) ); buf.push( interpolate( ngettext( "Currently, there is %s channel.", "Currently, there are %s channels.", server.channel_cnt ), [server.channel_cnt] ) ); if( server.uptime ){ buf.push( interpolate( gettext("This server is running since %s."), [server.upsince] ) ); } buf.push( String.format( '{1}', server.minurl, gettext( "Switch to minimal view" ) ) ); res = ['