зеркало из https://github.com/mozilla/pjs.git
make dates in "Go" menu localizable. b=299757 r=wevah sr=smfr
This commit is contained in:
Родитель
e9209b3dc2
Коммит
5cfadba4c6
|
@ -432,7 +432,9 @@ static int HistoryItemSort(id firstItem, id secondItem, void* context)
|
|||
[yesterdayItem release];
|
||||
|
||||
NSCalendarDate* curDayStart = startYesterday;
|
||||
|
||||
NSDictionary* curCalendarLocale = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
|
||||
NSString* dateFormat = NSLocalizedString(@"HistoryMenuDateFormat", @"");
|
||||
|
||||
// do previous 6 days
|
||||
for (int i = 0; i < 6; i ++)
|
||||
{
|
||||
|
@ -443,7 +445,7 @@ static int HistoryItemSort(id firstItem, id secondItem, void* context)
|
|||
minutes:0
|
||||
seconds:0];
|
||||
|
||||
HistoryCategoryItem* dayItem = [[HistoryDateCategoryItem alloc] initWithDataSource:mDataSource startDate:curDayStart ageInDays:(i + 2) title:[curDayStart descriptionWithCalendarFormat:@"%A %B %d"] childCapacity:10];
|
||||
HistoryCategoryItem* dayItem = [[HistoryDateCategoryItem alloc] initWithDataSource:mDataSource startDate:curDayStart ageInDays:(i + 2) title:[curDayStart descriptionWithCalendarFormat:dateFormat locale:curCalendarLocale] childCapacity:10];
|
||||
[mDateCategories addObject:dayItem];
|
||||
[dayItem release];
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче