1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

localize the filter bar

This commit is contained in:
Mitchell Livingston 2011-02-20 04:16:38 +00:00
parent e5b0de31a6
commit 89175bea5f

View file

@ -49,7 +49,20 @@
- (void) awakeFromNib
{
#warning localize every thing
//localizations
[fNoFilterButton setTitle: NSLocalizedString(@"All", "Filter Bar -> filter button")];
[fActiveFilterButton setTitle: NSLocalizedString(@"Active", "Filter Bar -> filter button")];
[fDownloadFilterButton setTitle: NSLocalizedString(@"Downloading", "Filter Bar -> filter button")];
[fSeedFilterButton setTitle: NSLocalizedString(@"Seeding", "Filter Bar -> filter button")];
[fPauseFilterButton setTitle: NSLocalizedString(@"Paused", "Filter Bar -> filter button")];
[[[[fSearchField cell] searchMenuTemplate] itemWithTag: FILTER_TYPE_TAG_NAME] setTitle:
NSLocalizedString(@"Name", "Filter Bar -> filter menu")];
[[[[fSearchField cell] searchMenuTemplate] itemWithTag: FILTER_TYPE_TAG_TRACKER] setTitle:
NSLocalizedString(@"Tracker", "Filter Bar -> filter menu")];
[[[fGroupsButton menu] itemWithTag: GROUP_FILTER_ALL_TAG] setTitle:
NSLocalizedString(@"All Groups", "Filter Bar -> group filter menu")];
[self resizeBar];
@ -74,7 +87,6 @@
}
[currentFilterButton setState: NSOnState];
//set filter search type
NSString * filterSearchType = [[NSUserDefaults standardUserDefaults] stringForKey: @"FilterSearchType"];