Moved UI strings in to separate file
This commit is contained in:
1 parent
0ca6c46d6b
commit
425c73da4f
12 files changed
+1139
-498
No files matched your search
@@ -18,6 +18,7 @@ use reqlite_core::{CancelToken, Request};
|
||||
|
||||
use crate::history::HistoryEntry;
|
||||
use crate::settings::Settings;
|
||||
use crate::strings as txt;
|
||||
|
||||
pub type TabId = u64;
|
||||
|
||||
@@ -232,9 +233,9 @@ impl CollectionState {
|
||||
/// `dir` relative to the root, for messages ("the collection" for the root).
|
||||
pub fn folder_label(&self, dir: &Path) -> String {
|
||||
if dir == self.root {
|
||||
format!("the collection “{}”", self.name())
|
||||
txt::names::collection(self.name())
|
||||
} else {
|
||||
format!("the folder {}", self.relative(dir).display())
|
||||
txt::names::folder(self.relative(dir).display())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -342,7 +343,7 @@ impl Tab {
|
||||
}
|
||||
let url = self.request.url.trim();
|
||||
if url.is_empty() {
|
||||
"New request".into()
|
||||
txt::common::NEW_REQUEST.into()
|
||||
} else {
|
||||
let short: String = url.chars().take(40).collect();
|
||||
if url.chars().count() > 40 {
|
||||
|
||||
Reference in new issue
Block a user