Skip to content

Commit

Permalink
adapt 'empty hints' to new translations
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Feb 3, 2025
1 parent 8fa9d7e commit 3d63946
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deltachat-ios/Controller/FilesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@ class FilesViewController: UIViewController {
private lazy var emptyStateView: EmptyStateLabel = {
let label = EmptyStateLabel()
if chatId == 0 {
label.text = String.localized(type1 == DC_MSG_WEBXDC ? "all_apps_empty_hint" : "tab_all_media_empty_hint")
if type1 == DC_MSG_WEBXDC {
label.text = String.localized("all_apps_empty_hint")
} else if type1 == DC_MSG_FILE {
label.text = String.localized("all_files_empty_hint")
} else {
label.text = String.localized("tab_all_media_empty_hint")
}
} else if type1 == DC_MSG_AUDIO {
label.text = String.localized("tab_audio_empty_hint")
} else if type1 == DC_MSG_WEBXDC {
label.text = String.localized("tab_webxdc_empty_hint")
} else {
label.text = String.localized("tab_docs_empty_hint")
}
Expand Down

0 comments on commit 3d63946

Please sign in to comment.