Skip to content

Commit

Permalink
ユーザープロフィールのアクションのキャンセルを翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki committed Dec 6, 2018
1 parent 18195a6 commit f941544
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iMast/CustomViews/UserProfileTopViewController.swift
Expand Up @@ -251,7 +251,7 @@ class UserProfileTopViewController: StableTableViewController {
})
}
}
actionSheet.addAction(UIAlertAction(title: "キャンセル", style: UIAlertAction.Style.cancel))
actionSheet.addAction(UIAlertAction(title: R.string.userProfile.actionsCancel(), style: UIAlertAction.Style.cancel))
self.present(actionSheet, animated: true, completion: nil)
})
}
Expand Down
2 changes: 2 additions & 0 deletions iMast/CustomViews/en.lproj/UserProfile.strings
Expand Up @@ -28,3 +28,5 @@
"actions.unblock" = "Unblock";

"actions.followRequestsList" = "Pending follow requests";

"actions.cancel" = "Cancel";
2 changes: 2 additions & 0 deletions iMast/CustomViews/ja.lproj/UserProfile.strings
Expand Up @@ -28,3 +28,5 @@
"actions.unblock" = "ブロック解除";

"actions.followRequestsList" = "フォローリクエスト一覧";

"actions.cancel" = "キャンセル";
13 changes: 12 additions & 1 deletion iMast/R.generated.swift
Expand Up @@ -1314,12 +1314,16 @@ struct R: Rswift.Validatable {
fileprivate init() {}
}

/// This `R.string.userProfile` struct is generated, and contains static references to 16 localization keys.
/// This `R.string.userProfile` struct is generated, and contains static references to 17 localization keys.
struct userProfile {
/// ja translation: アクション
///
/// Locales: ja, en
static let actionsTitle = Rswift.StringResource(key: "actions.title", tableName: "UserProfile", bundle: R.hostingBundle, locales: ["ja", "en"], comment: nil)
/// ja translation: キャンセル
///
/// Locales: ja, en
static let actionsCancel = Rswift.StringResource(key: "actions.cancel", tableName: "UserProfile", bundle: R.hostingBundle, locales: ["ja", "en"], comment: nil)
/// ja translation: トゥート
///
/// Locales: ja, en
Expand Down Expand Up @@ -1388,6 +1392,13 @@ struct R: Rswift.Validatable {
return NSLocalizedString("actions.title", tableName: "UserProfile", bundle: R.hostingBundle, comment: "")
}

/// ja translation: キャンセル
///
/// Locales: ja, en
static func actionsCancel(_: Void = ()) -> String {
return NSLocalizedString("actions.cancel", tableName: "UserProfile", bundle: R.hostingBundle, comment: "")
}

/// ja translation: トゥート
///
/// Locales: ja, en
Expand Down

0 comments on commit f941544

Please sign in to comment.