Changeset 462
- Timestamp:
- 07/12/09 17:55:38 (4 years ago)
- Location:
- apps/iphone/superbook/trunk
- Files:
-
- 4 modified
-
Classes/SettingsViewController.h (modified) (1 diff)
-
Classes/SettingsViewController.m (modified) (1 diff)
-
English.lproj/Localizable.strings (modified) (1 diff)
-
SettingsView.xib (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/superbook/trunk/Classes/SettingsViewController.h
r408 r462 28 28 #import <UIKit/UIKit.h> 29 29 30 #define TAG_LOCATE_STARTUP_TEXT 101 31 #define TAG_GEOLOC_TEXT 102 32 #define TAG_SORT_ORDER_TEXT 103 33 #define TAG_UNITS_TEXT 104 34 30 35 @protocol SettingsViewDelegate 31 36 @required -
apps/iphone/superbook/trunk/Classes/SettingsViewController.m
r461 r462 35 35 - (void)viewDidLoad { 36 36 [super viewDidLoad]; 37 // Localize the view 37 38 if (!self.title) { 38 39 self.title = NSLocalizedString(@"Settings", @"Settings View title"); 39 40 } 41 ((UILabel *)[self.view viewWithTag:TAG_LOCATE_STARTUP_TEXT]).text = NSLocalizedString(@"LocateOnStartup", @"Locate on startup preference"); 42 ((UILabel *)[self.view viewWithTag:TAG_GEOLOC_TEXT]).text = NSLocalizedString(@"DoGeoloc", @"Automatic Geolocation"); 43 ((UILabel *)[self.view viewWithTag:TAG_SORT_ORDER_TEXT]).text = NSLocalizedString(@"ContactsSortOrder", @"Contacts List sort order"); 44 ((UILabel *)[self.view viewWithTag:TAG_UNITS_TEXT]).text = NSLocalizedString(@"DistanceUnits", @"Distance Units"); 45 [sortOrder setTitle:NSLocalizedString(@"Alphabetical", nil) forSegmentAtIndex:0]; 46 [sortOrder setTitle:NSLocalizedString(@"By Distance", nil) forSegmentAtIndex:1]; 47 [distanceUnits setTitle:NSLocalizedString(@"miles", nil) forSegmentAtIndex:0]; 48 [distanceUnits setTitle:NSLocalizedString(@"kilometers", nil) forSegmentAtIndex:1]; 40 49 } 41 50 -
apps/iphone/superbook/trunk/English.lproj/Localizable.strings
r461 r462 146 146 "Settings" = "Settings"; 147 147 148 /* Locate on startup preference text */ 149 "LocateOnStartup" = "Automatically start locating contacts when app launches"; 148 150 151 /* Automatic Geolocation text*/ 152 "DoGeoloc" = "Find Country and Local Time for contact with a location"; 153 154 /* Contacts List sort order (alpha/distance) */ 155 "ContactsSortOrder" = "Contact List Sort Order"; 156 "Alphabetical" = "Alphabetical"; 157 "By Distance" = "By Distance"; 158 159 /* Distance Units (km/mi) */ 160 "DistanceUnits" = "Distance Units"; 161 "miles" = "miles"; 162 "kilometers" = "kilometers"; 149 163 150 164 /*** About View ***/ -
apps/iphone/superbook/trunk/SettingsView.xib
r417 r462 73 73 <bool key="IBUIOpaque">NO</bool> 74 74 <bool key="IBUIClipsSubviews">YES</bool> 75 <int key="IBUITag">101</int> 75 76 <bool key="IBUIUserInteractionEnabled">NO</bool> 76 77 <string key="IBUIText">Automatically start locating contacts when app launches</string> … … 124 125 <bool key="IBUIOpaque">NO</bool> 125 126 <bool key="IBUIClipsSubviews">YES</bool> 127 <int key="IBUITag">102</int> 126 128 <bool key="IBUIUserInteractionEnabled">NO</bool> 127 129 <string key="IBUIText">Find Country and Local Time for contact with a location</string> … … 160 162 <bool key="IBUIOpaque">NO</bool> 161 163 <bool key="IBUIClipsSubviews">YES</bool> 164 <int key="IBUITag">103</int> 162 165 <bool key="IBUIUserInteractionEnabled">NO</bool> 163 166 <string key="IBUIText">Contact List Sort Order</string> … … 208 211 <bool key="IBUIOpaque">NO</bool> 209 212 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 213 <int key="IBUITag">203</int> 210 214 <int key="IBSegmentControlStyle">2</int> 211 215 <int key="IBNumberOfSegments">2</int> … … 263 267 <bool key="IBUIOpaque">NO</bool> 264 268 <bool key="IBUIClipsSubviews">YES</bool> 269 <int key="IBUITag">104</int> 265 270 <bool key="IBUIUserInteractionEnabled">NO</bool> 266 271 <string key="IBUIText">Distance Units</string> … … 280 285 <bool key="IBUIOpaque">NO</bool> 281 286 <bool key="IBUIClearsContextBeforeDrawing">NO</bool> 287 <int key="IBUITag">204</int> 282 288 <int key="IBSegmentControlStyle">2</int> 283 289 <int key="IBNumberOfSegments">2</int>








