termux-packages/packages/newsboat/rust-libnewsboat-src-config...

52 lines
1.8 KiB
Diff

diff -u -r ../newsboat-2.20.1/rust/libnewsboat/src/configpaths.rs ./rust/libnewsboat/src/configpaths.rs
--- ../newsboat-2.20.1/rust/libnewsboat/src/configpaths.rs 2020-06-24 09:51:43.000000000 +0000
+++ ./rust/libnewsboat/src/configpaths.rs 2020-08-12 07:28:22.784578000 +0000
@@ -2,7 +2,6 @@
use crate::logger::{self, Level};
use crate::utils;
use dirs;
-use gettextrs::gettext;
use libc;
use std::fs::{self, DirBuilder};
use std::io;
@@ -84,11 +83,10 @@
let uid = unsafe { libc::getuid() };
config_paths.error_message = fmt!(
- &gettext(
"Fatal error: couldn't determine home directory!\n\
Please set the HOME environment variable or add \
a valid user for UID %u!"
- ),
+ ,
uid
);
@@ -146,7 +144,7 @@
if !self.silent {
eprintln!(
"{}",
- &gettext("Migrating configs and data from Newsbeuter's XDG dirs...")
+ "Migrating configs and data from Newsbeuter's XDG dirs..."
);
}
@@ -202,7 +200,7 @@
if !self.silent {
eprintln!(
"{}",
- &gettext("Migrating configs and data from ~/.newsbeuter/...")
+ "Migrating configs and data from ~/.newsbeuter/..."
);
}
@@ -214,7 +212,7 @@
eprintln!(
"{}",
&fmt!(
- &gettext("Aborting migration because mkdir on `%s' failed: %s"),
+ "Aborting migration because mkdir on `%s' failed: %s",
&newsboat_dir.to_string_lossy().into_owned(),
err.to_string()
)