mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Merge pull request #8295 from sylvestre/l10n-nice-2
nice: remove useless translations
This commit is contained in:
commit
e5b1cd3dd0
2 changed files with 2 additions and 13 deletions
|
@ -4,11 +4,9 @@ nice-about = Run COMMAND with an adjusted niceness, which affects process schedu
|
|||
nice-usage = nice [OPTION] [COMMAND [ARG]...]
|
||||
|
||||
# Error messages
|
||||
nice-error-getpriority = getpriority: { $error }
|
||||
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-warning-setpriority = { $util_name }: warning: setpriority: { $error }
|
||||
nice-error-execvp = execvp: { $error }
|
||||
|
||||
# Help text for command-line arguments
|
||||
nice-help-adjustment = add N to the niceness (default is 10)
|
||||
|
|
|
@ -111,10 +111,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
if Error::last_os_error().raw_os_error().unwrap() != 0 {
|
||||
return Err(USimpleError::new(
|
||||
125,
|
||||
get_message_with_args(
|
||||
"nice-error-getpriority",
|
||||
HashMap::from([("error".to_string(), Error::last_os_error().to_string())]),
|
||||
),
|
||||
format!("getpriority: {}", Error::last_os_error()),
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -183,13 +180,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
execvp(args[0], args.as_mut_ptr());
|
||||
}
|
||||
|
||||
show_error!(
|
||||
"{}",
|
||||
get_message_with_args(
|
||||
"nice-error-execvp",
|
||||
HashMap::from([("error".to_string(), Error::last_os_error().to_string())])
|
||||
)
|
||||
);
|
||||
show_error!("execvp: {}", Error::last_os_error());
|
||||
|
||||
let exit_code = if Error::last_os_error().raw_os_error().unwrap() as c_int == libc::ENOENT {
|
||||
127
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue