diff --git a/IceCubesApp/App/QuickLookRepresentable.swift b/IceCubesApp/App/QuickLookRepresentable.swift
index 041c41d0..ff238b2a 100644
--- a/IceCubesApp/App/QuickLookRepresentable.swift
+++ b/IceCubesApp/App/QuickLookRepresentable.swift
@@ -51,19 +51,19 @@ struct QuickLookPreview: UIViewControllerRepresentable {
class AppQLPreviewController: QLPreviewController {
private var closeButton: UIBarButtonItem {
- .init(title: "Done", style: .plain, target: self, action: #selector(onCloseButton))
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
- if UIDevice.current.userInterfaceIdiom != .pad {
- navigationItem.rightBarButtonItem = closeButton
- }
+ .init(
+ title: NSLocalizedString("action.done", comment: ""),
+ style: .plain,
+ target: self,
+ action: #selector(onCloseButton)
+ )
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
- navigationItem.rightBarButtonItem = closeButton
+ if UIDevice.current.userInterfaceIdiom != .pad {
+ navigationItem.rightBarButtonItem = closeButton
+ }
}
@objc private func onCloseButton() {
diff --git a/IceCubesApp/Resources/Localization/Plurals/es.lproj/Localizable.stringsdict b/IceCubesApp/Resources/Localization/Plurals/es.lproj/Localizable.stringsdict
index 096a41d7..bb9e50bd 100644
--- a/IceCubesApp/Resources/Localization/Plurals/es.lproj/Localizable.stringsdict
+++ b/IceCubesApp/Resources/Localization/Plurals/es.lproj/Localizable.stringsdict
@@ -13,7 +13,7 @@
NSStringFormatValueTypeKey
lld
one
- %lld new post
+ %lld nueva publicaciĆ³n
other
%lld nuevas publicaciones