Bug 955371 - Improve the two "weekly" group strings in the log viewer, r=clokep.

This commit is contained in:
aleth 2013-04-18 00:15:02 +02:00
Родитель 48818aa750
Коммит 88a73416c2
2 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -256,8 +256,8 @@ chatLogTreeView.prototype = {
// messenger.properties. The order is the reverse of that in which
// they will appear in the logTree.
let firstgroups = {
twoWeeksAgo: [],
lastWeek: []
previousWeek: [],
currentWeek: []
};
// today and yesterday are treated differently, because they represent
@ -280,12 +280,12 @@ chatLogTreeView.prototype = {
continue;
}
else if (timeFromToday <= kWeekInMsecs) {
group = firstgroups.lastWeek;
group = firstgroups.currentWeek;
if (log.format == "json")
title = formatWeekday(logDate);
}
else if (timeFromToday <= kTwoWeeksInMsecs)
group = firstgroups.twoWeeksAgo;
group = firstgroups.previousWeek;
else {
logDate.setHours(0);
logDate.setMinutes(0);

Просмотреть файл

@ -110,10 +110,16 @@ targetChangeable=\nClick to change
# %S will be replaced by the name of a buddy of the name of a chat room.
logs=%S logs
#LOCALIZATION NOTE
# These are special entries in the log tree for the corresponding days.
log.today=Today
log.yesterday=Yesterday
log.lastWeek=Last Week
log.twoWeeksAgo=Two Weeks Ago
#LOCALIZATION NOTE
# These are special groups in the log tree for the last 3-7 days and
# the last 8-14 days.
log.currentWeek=This Week
log.previousWeek=Last Week
#LOCALIZATION NOTE
# This is shown when an unknown command (/foo) is attempted. %S is the command.