Skip to content

Commit 87063a5

Browse files
committed
Fix the format of localized error messages
1 parent e0a7e3f commit 87063a5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

iCookTV/Base.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
"Lower tagline" = "";
1212

13-
"\nContact [email protected] for support." = "Please contact us at [email protected] if this issue keeps happening.";
13+
"Contact [email protected] for support." = "Please contact us at [email protected] if this issue keeps happening.";

iCookTV/UIViewController+Alert.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extension UIViewController {
3333

3434
let alert = UIAlertController(
3535
title: "Error\n".localizedString,
36-
message: "\nContact [email protected] for support.".localizedString,
36+
message: "Contact [email protected] for support.".localizedString,
3737
preferredStyle: .Alert
3838
)
3939
alert.addAction(UIAlertAction(title: "Retry".localizedString, style: .Default) { _ in

iCookTV/VideoPlayerController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ class VideoPlayerController: AVPlayerViewController, Trackable {
155155
loadingIndicator.stopAnimating()
156156

157157
guard let playerItem = playerItem else {
158-
let message = "There's something wrong with this video.".localizedString +
159-
"\nContact [email protected] for support.".localizedString
158+
let message = "There's something wrong with this video.".localizedString + "\n" +
159+
"Contact [email protected] for support.".localizedString
160160
let alert = UIAlertController(title: "Error\n".localizedString, message: message, preferredStyle: .Alert)
161161
alert.addAction(UIAlertAction(title: "OK".localizedString, style: .Default) { [weak self] _ in
162162
self?.dismiss()

iCookTV/en.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
"Lower tagline" = "";
1212

13-
"\nContact [email protected] for support." = "Please contact us at [email protected] if this issue keeps happening.";
13+
"Contact [email protected] for support." = "Please contact us at [email protected] if this issue keeps happening.";

iCookTV/zh-Hant.lproj/Localizable.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626

2727
"There's something wrong with this video." = "影片目前無法播放,請稍候再試";
2828

29-
"\nContact [email protected] for support." = "\n如果問題持續發生,請來信 [email protected] 告訴我們,謝謝";
29+
"Contact [email protected] for support." = "如果問題持續發生,請來信 [email protected] 告訴我們,謝謝";

0 commit comments

Comments
 (0)