Skip to content

Commit e5b1cd3

Browse files
authored
Merge pull request #8295 from sylvestre/l10n-nice-2
nice: remove useless translations
2 parents 0d4a1d9 + 5f75c37 commit e5b1cd3

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

src/uu/nice/locales/en-US.ftl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ nice-about = Run COMMAND with an adjusted niceness, which affects process schedu
44
nice-usage = nice [OPTION] [COMMAND [ARG]...]
55
66
# Error messages
7-
nice-error-getpriority = getpriority: { $error }
87
nice-error-command-required-with-adjustment = A command must be given with an adjustment.
98
nice-error-invalid-number = "{ $value }" is not a valid number: { $error }
109
nice-warning-setpriority = { $util_name }: warning: setpriority: { $error }
11-
nice-error-execvp = execvp: { $error }
1210
1311
# Help text for command-line arguments
1412
nice-help-adjustment = add N to the niceness (default is 10)

src/uu/nice/src/nice.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
111111
if Error::last_os_error().raw_os_error().unwrap() != 0 {
112112
return Err(USimpleError::new(
113113
125,
114-
get_message_with_args(
115-
"nice-error-getpriority",
116-
HashMap::from([("error".to_string(), Error::last_os_error().to_string())]),
117-
),
114+
format!("getpriority: {}", Error::last_os_error()),
118115
));
119116
}
120117

@@ -183,13 +180,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
183180
execvp(args[0], args.as_mut_ptr());
184181
}
185182

186-
show_error!(
187-
"{}",
188-
get_message_with_args(
189-
"nice-error-execvp",
190-
HashMap::from([("error".to_string(), Error::last_os_error().to_string())])
191-
)
192-
);
183+
show_error!("execvp: {}", Error::last_os_error());
193184

194185
let exit_code = if Error::last_os_error().raw_os_error().unwrap() as c_int == libc::ENOENT {
195186
127

0 commit comments

Comments
 (0)