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:
Francis Lachapelle
2012-09-21 21:48:39 -04:00
parent fa0db25b16
commit 0181ec606d
46 changed files with 267 additions and 1073 deletions

View File

@@ -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;