From: Justin Anderson Date: Thu, 2 Oct 2008 21:00:18 +0000 (+0000) Subject: Localization fix for change password dialog X-Git-Tag: krb5-1.7-alpha1~353 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=000c96db73704792ae5f63861c9ae6b9c4688a11;p=krb5.git Localization fix for change password dialog ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20818 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kim/agent/mac/AuthenticationController.m b/src/kim/agent/mac/AuthenticationController.m index 742c622fe..d2d6b3716 100644 --- a/src/kim/agent/mac/AuthenticationController.m +++ b/src/kim/agent/mac/AuthenticationController.m @@ -218,8 +218,8 @@ [glueController setValue:message forKeyPath:message_keypath]; - [theWindow setFrame:[theWindow frameRectForContentRect:[identityView frame]] display:NO]; [[containerView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; + [theWindow setFrame:[theWindow frameRectForContentRect:[identityView frame]] display:NO]; [containerView addSubview:identityView]; [enterSpinny stopAnimation:nil]; @@ -271,8 +271,8 @@ [passwordBadge setBadgePath:associatedClient.path]; frame = [passwordView frame]; - [theWindow setFrame:[theWindow frameRectForContentRect:frame] display:NO]; [[containerView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; + [theWindow setFrame:[theWindow frameRectForContentRect:frame] display:NO]; [containerView addSubview:passwordView]; // adjust for checkbox visibility @@ -299,8 +299,8 @@ [glueController setValue:[NSNumber numberWithBool:NO] forKeyPath:allow_save_password_keypath]; - [theWindow setFrame:[theWindow frameRectForContentRect:[samView frame]] display:NO]; [[containerView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; + [theWindow setFrame:[theWindow frameRectForContentRect:[samView frame]] display:NO]; [containerView addSubview:samView]; [self showWindow:nil]; @@ -334,15 +334,17 @@ // %@ requires that you change the Kerberos password for \"%@\" } else { key = ACPasswordChangeExpired; - message = NSLocalizedStringFromTable(key, ACLocalizationTable, NULL); + message = [NSString stringWithFormat: + NSLocalizedStringFromTable(key, ACLocalizationTable, NULL), + [glueController valueForKeyPath:identity_string_keypath]]; // Your password has expired, would you like to change it? } [glueController setValue:message forKeyPath:message_keypath]; // wake up the nib connections and adjust window size + [[containerView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; [theWindow setFrame:[theWindow frameRectForContentRect:[changePasswordView frame]] display:NO]; // set up controls with info from associatedClient - [[containerView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; [containerView addSubview:changePasswordView]; // set badge [changePasswordBadge setBadgePath:associatedClient.path]; diff --git a/src/kim/agent/mac/resources/English.lproj/Authentication.xib b/src/kim/agent/mac/resources/English.lproj/Authentication.xib index dbd68481c..b7fdc822c 100644 --- a/src/kim/agent/mac/resources/English.lproj/Authentication.xib +++ b/src/kim/agent/mac/resources/English.lproj/Authentication.xib @@ -8,7 +8,7 @@ 352.00 YES - + @@ -79,7 +79,7 @@ - + 274 YES @@ -88,7 +88,6 @@ 266 {{101, 103}, {382, 54}} - YES 67239424 @@ -125,7 +124,6 @@ 290 {{104, 59}, {379, 26}} - YES 343014976 @@ -228,7 +226,6 @@ 292 {{17, 64}, {82, 17}} - YES 67239424 @@ -245,7 +242,6 @@ 289 {{388, 15}, {98, 32}} - YES 67239424 @@ -267,7 +263,6 @@ 289 {{295, 15}, {93, 32}} - YES 67239424 @@ -289,7 +284,6 @@ 268 {{20, 103}, {64, 64}} - BadgedImageView @@ -297,7 +291,6 @@ 292 {{20, 20}, {38, 26}} - YES -2076049856 @@ -373,19 +366,16 @@ {{66, 25}, {16, 16}} - 28938 1.600000e+01 1.000000e+02 {500, 187} - - NSView - + 274 YES @@ -394,7 +384,6 @@ 266 {{104, 82}, {376, 22}} - YES -1804468671 @@ -417,7 +406,6 @@ 289 {{388, 12}, {98, 32}} - YES 67239424 @@ -439,7 +427,6 @@ 289 {{295, 12}, {93, 32}} - YES 67239424 @@ -461,7 +448,6 @@ 266 {{101, 124}, {382, 54}} - YES 67239424 @@ -478,7 +464,6 @@ 268 {{17, 84}, {80, 17}} - YES 68288064 @@ -495,7 +480,6 @@ 290 {{102, 58}, {380, 18}} - YES -2080244224 @@ -523,7 +507,6 @@ 268 {{20, 124}, {64, 64}} - BadgedImageView @@ -532,19 +515,16 @@ {{19, 22}, {16, 16}} - 28938 1.600000e+01 1.000000e+02 {500, 208} - - NSView - + 274 YES @@ -553,7 +533,6 @@ 266 {{101, 140}, {382, 17}} - YES 67239424 @@ -570,7 +549,6 @@ 290 {{202, 62}, {278, 22}} - YES -1804468671 @@ -588,7 +566,6 @@ 289 {{388, 12}, {98, 32}} - YES 67239424 @@ -610,7 +587,6 @@ 274 {{101, 104}, {382, 28}} - YES 67239424 @@ -631,7 +607,6 @@ 268 {{20, 103}, {64, 64}} - BadgedImageView @@ -639,7 +614,6 @@ 289 {{295, 12}, {93, 32}} - YES 67239424 @@ -661,7 +635,6 @@ 292 {{17, 20}, {180, 61}} - YES 67239424 @@ -683,15 +656,12 @@ {{20, 22}, {16, 16}} - 28938 1.600000e+01 1.000000e+02 {500, 187} - - NSView @@ -706,29 +676,10 @@ BadgedImageView - - - 274 - {{101, 146}, {382, 29}} - - YES - - 67239424 - 272760832 - Your password has expired. Would you like to change it? - - - - 3 - MSAwLjk3MDAwMDAzAA - - - - 266 - {{101, 183}, {382, 17}} + {{101, 146}, {382, 54}} YES @@ -1602,22 +1553,6 @@ 300405 - - - value: selection.description - - - - - - value: selection.description - value - selection.description - 2 - - - 300406 - oldPasswordField @@ -2534,7 +2469,6 @@ YES - @@ -2562,20 +2496,6 @@ - - 300286 - - - YES - - - - - - 300287 - - - 300289 @@ -3091,8 +3011,6 @@ 300274.IBEditorWindowLastContentRect 300274.IBPluginDependency 300275.IBPluginDependency - 300286.IBPluginDependency - 300286.ImportedFromIB2 300288.IBPluginDependency 300288.ImportedFromIB2 300300.IBPluginDependency @@ -3229,14 +3147,12 @@ com.apple.InterfaceBuilder.CocoaPlugin - {{512, 496}, {500, 230}} + {{427, 495}, {500, 230}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin {{347, 504}, {189, 63}} diff --git a/src/kim/agent/mac/resources/English.lproj/AuthenticationController.strings b/src/kim/agent/mac/resources/English.lproj/AuthenticationController.strings index fc0f2f711..bcc575632 100644 Binary files a/src/kim/agent/mac/resources/English.lproj/AuthenticationController.strings and b/src/kim/agent/mac/resources/English.lproj/AuthenticationController.strings differ