This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/site/static/beta5/js/pg_comms-en.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

2016-01-10 11:01:49 +01:00
var noCustomFolders = 'You do not have custom folders.';
var allianceForums = 'Alliance Forums';
function makeCommsTooltips()
{
comtt = new Array();
if (ttDelay == 0)
{
var i;
for (i=0;i<5;i++)
comtt[i] = "";
return;
}
comtt[0] = tt_Dynamic("Click here to go to the page of this custom folder");
comtt[1] = tt_Dynamic("Click here to go to the page of this general forums category");
comtt[2] = tt_Dynamic("Click here to go to the page of this general forum");
comtt[3] = tt_Dynamic("Click here to go to the page of this alliance forum");
}
function makeMessagesText(tot, n)
{
if (tot == 0)
return "no messages";
var str = '<b>' + formatNumber(tot) + '</b> message' + (tot > 1 ? 's' : '');
if (n == 0)
return str;
str += ' (<b>' + formatNumber(n) + '</b> unread message'+(n>1?'s':'')+')';
return str;
}
function makeTopicsText(tot, n)
{
if (tot == 0)
return "empty forum";
var str = '<b>' + formatNumber(tot) + '</b> topic' + (tot > 1 ? 's' : '');
if (n == 0)
return str;
str += ' (<b>' + formatNumber(n) + '</b> unread)';
return str;
}