1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

nice: remove useless translations

This commit is contained in:
Sylvestre Ledru 2025-07-01 09:29:01 +02:00
parent 194fcead20
commit 5f75c371ab
2 changed files with 2 additions and 13 deletions

View file

@ -4,11 +4,9 @@ nice-about = Run COMMAND with an adjusted niceness, which affects process schedu
nice-usage = nice [OPTION] [COMMAND [ARG]...] nice-usage = nice [OPTION] [COMMAND [ARG]...]
# Error messages # Error messages
nice-error-getpriority = getpriority: { $error }
nice-error-command-required-with-adjustment = A command must be given with an adjustment. nice-error-command-required-with-adjustment = A command must be given with an adjustment.
nice-error-invalid-number = "{ $value }" is not a valid number: { $error } nice-error-invalid-number = "{ $value }" is not a valid number: { $error }
nice-warning-setpriority = { $util_name }: warning: setpriority: { $error } nice-warning-setpriority = { $util_name }: warning: setpriority: { $error }
nice-error-execvp = execvp: { $error }
# Help text for command-line arguments # Help text for command-line arguments
nice-help-adjustment = add N to the niceness (default is 10) nice-help-adjustment = add N to the niceness (default is 10)

View file

@ -111,10 +111,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
if Error::last_os_error().raw_os_error().unwrap() != 0 { if Error::last_os_error().raw_os_error().unwrap() != 0 {
return Err(USimpleError::new( return Err(USimpleError::new(
125, 125,
get_message_with_args( format!("getpriority: {}", Error::last_os_error()),
"nice-error-getpriority",
HashMap::from([("error".to_string(), Error::last_os_error().to_string())]),
),
)); ));
} }
@ -183,13 +180,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
execvp(args[0], args.as_mut_ptr()); execvp(args[0], args.as_mut_ptr());
} }
show_error!( show_error!("execvp: {}", Error::last_os_error());
"{}",
get_message_with_args(
"nice-error-execvp",
HashMap::from([("error".to_string(), Error::last_os_error().to_string())])
)
);
let exit_code = if Error::last_os_error().raw_os_error().unwrap() as c_int == libc::ENOENT { let exit_code = if Error::last_os_error().raw_os_error().unwrap() as c_int == libc::ENOENT {
127 127