termux-packages/packages/newsboat/rust-libnewsboat-src-configpaths.rs.patch

52 lines
1.8 KiB
Diff
Raw Normal View History

2020-08-12 10:26:50 +02:00
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;
2020-01-02 22:01:17 +01:00
use dirs;
-use gettextrs::gettext;
use libc;
use std::fs::{self, DirBuilder};
2020-08-12 10:26:50 +02:00
use std::io;
@@ -84,11 +83,10 @@
2020-01-02 22:01:17 +01:00
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 \
2020-08-12 10:26:50 +02:00
a valid user for UID %u!"
2020-01-02 22:01:17 +01:00
- ),
2020-08-12 10:26:50 +02:00
+ ,
2020-01-02 22:01:17 +01:00
uid
);
2020-08-12 10:26:50 +02:00
@@ -146,7 +144,7 @@
2020-01-02 22:01:17 +01:00
if !self.silent {
eprintln!(
"{}",
- &gettext("Migrating configs and data from Newsbeuter's XDG dirs...")
+ "Migrating configs and data from Newsbeuter's XDG dirs..."
);
}
2020-08-12 10:26:50 +02:00
@@ -202,7 +200,7 @@
2020-01-02 22:01:17 +01:00
if !self.silent {
eprintln!(
"{}",
- &gettext("Migrating configs and data from ~/.newsbeuter/...")
+ "Migrating configs and data from ~/.newsbeuter/..."
);
}
2020-08-12 10:26:50 +02:00
@@ -214,7 +212,7 @@
2020-01-02 22:01:17 +01:00
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()
)