mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
Cleanup months and weeks translations
Removed the translations of months and weeks from the Scheduler bundle since they were already translated in Locale files. - The a3_<month> strings were removed (replaced by NSShortMonthNameArray) - The months strings were removed (replaced by NSMonthNameArray) - The weeks strings were removed (replaced by NSWeekDayNameArray) Moved the a2_<weekday> strings to the Common bundle and added a new method [UIxComponent commonLabelForKey:].
This commit is contained in:
@@ -92,29 +92,6 @@ Date.prototype.clone = function() {
|
||||
return newDate;
|
||||
}
|
||||
|
||||
Date.prototype.sogoDayName = function() {
|
||||
var dayName = "";
|
||||
|
||||
var day = this.getDay();
|
||||
if (day == 0) {
|
||||
dayName = labels['a2_Sunday'];
|
||||
} else if (day == 1) {
|
||||
dayName = labels['a2_Monday'];
|
||||
} else if (day == 2) {
|
||||
dayName = labels['a2_Tuesday'];
|
||||
} else if (day == 3) {
|
||||
dayName = labels['a2_Wednesday'];
|
||||
} else if (day == 4) {
|
||||
dayName = labels['a2_Thursday'];
|
||||
} else if (day == 5) {
|
||||
dayName = labels['a2_Friday'];
|
||||
} else if (day == 6) {
|
||||
dayName = labels['a2_Saturday'];
|
||||
}
|
||||
|
||||
return dayName;
|
||||
};
|
||||
|
||||
Date.prototype.deltaDays = function(otherDate) {
|
||||
var day1 = this.getTime();
|
||||
var day2 = otherDate.getTime();
|
||||
@@ -210,10 +187,6 @@ Date.prototype.stringWithSeparator = function(separator) {
|
||||
return str;
|
||||
};
|
||||
|
||||
Date.prototype.sogoFreeBusyStringWithSeparator = function(separator) {
|
||||
return this.sogoDayName() + ", " + this.stringWithSeparator(separator);
|
||||
};
|
||||
|
||||
Date.prototype.addDays = function(nbrDays) {
|
||||
var milliSeconds = this.getTime();
|
||||
milliSeconds += 86400000 * nbrDays;
|
||||
|
||||
Reference in New Issue
Block a user