Skip to content

Commit 0f54c65

Browse files
Chris Yangadsonpleal
Chris Yang
authored andcommitted
[image_picker] use LocalizedString to fix lint error. (flutter#3349)
1 parent 8bbf63a commit 0f54c65

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/image_picker/image_picker/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.7+17
2+
3+
* iOS: fix `User-facing text should use localized string macro` warning.
4+
15
## 0.6.7+16
26

37
* Update Flutter SDK constraint.

packages/image_picker/image_picker/ios/Classes/FLTImagePickerPlugin.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ - (void)showCamera {
146146
animated:YES
147147
completion:nil];
148148
} else {
149-
[[[UIAlertView alloc] initWithTitle:@"Error"
150-
message:@"Camera not available."
149+
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil)
150+
message:NSLocalizedString(@"Camera not available.", nil)
151151
delegate:nil
152-
cancelButtonTitle:@"OK"
152+
cancelButtonTitle:NSLocalizedString(@"OK", nil)
153153
otherButtonTitles:nil] show];
154154
self.result(nil);
155155
self.result = nil;

packages/image_picker/image_picker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: image_picker
22
description: Flutter plugin for selecting images from the Android and iOS image
33
library, and taking new pictures with the camera.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker
5-
version: 0.6.7+16
5+
version: 0.6.7+17
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)