diff --git a/src/print_help.rs b/src/print_help.rs index 6f5c0ce2c..caad55532 100644 --- a/src/print_help.rs +++ b/src/print_help.rs @@ -1,6 +1,8 @@ //! Helper for executables (not builtins) to print a help message //! Uses the fish in PATH, not necessarily the matching fish binary +use crate::wgettext; + use std::ffi::{OsStr, OsString}; use std::process::Command; @@ -16,9 +18,8 @@ pub fn print_help(command: &str) { .spawn() .and_then(|mut c| c.wait()) { - // TODO: should be translated - Ok(status) if !status.success() => eprintf!("%s\n", HELP_ERR), - Err(e) => eprintf!("%s: %s\n", HELP_ERR, e), + Ok(status) if !status.success() => eprintf!("%s\n", wgettext!(HELP_ERR)), + Err(e) => eprintf!("%s: %s\n", wgettext!(HELP_ERR), e), _ => (), } }