mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
Remove concat! macro from localized strings
This is done in preparation for a proc macro which extracts strings which are passed to `gettext`. Because the `concat!` macro would get expanded after the proc macro, the proc macro would still see the `concat!`, which it cannot handle.
This commit is contained in:
@@ -97,10 +97,7 @@ pub fn fg(parser: &Parser, streams: &mut IoStreams, argv: &mut [&wstr]) -> Built
|
|||||||
job_pos = Some(pos);
|
job_pos = Some(pos);
|
||||||
job = if !j.wants_job_control() {
|
job = if !j.wants_job_control() {
|
||||||
streams.err.append(wgettext_fmt!(
|
streams.err.append(wgettext_fmt!(
|
||||||
concat!(
|
"%ls: Can't put job %d, '%ls' to foreground because it is not under job control\n",
|
||||||
"%ls: Can't put job %d, '%ls' to foreground because ",
|
|
||||||
"it is not under job control\n"
|
|
||||||
),
|
|
||||||
cmd,
|
cmd,
|
||||||
raw_pid,
|
raw_pid,
|
||||||
j.command()
|
j.command()
|
||||||
|
|||||||
@@ -107,10 +107,7 @@ fn parse_cmd_opts(
|
|||||||
}
|
}
|
||||||
'i' => {
|
'i' => {
|
||||||
streams.err.append(wgettext_fmt!(
|
streams.err.append(wgettext_fmt!(
|
||||||
concat!(
|
"%ls: usage of -i for --silent is deprecated. Please use -s or --silent instead.\n",
|
||||||
"%ls: usage of -i for --silent is deprecated. Please ",
|
|
||||||
"use -s or --silent instead.\n"
|
|
||||||
),
|
|
||||||
cmd
|
cmd
|
||||||
));
|
));
|
||||||
return Err(STATUS_INVALID_ARGS);
|
return Err(STATUS_INVALID_ARGS);
|
||||||
|
|||||||
@@ -26,10 +26,8 @@
|
|||||||
pub const BUILTIN_ERR_MISSING: &str = "%ls: %ls: option requires an argument\n";
|
pub const BUILTIN_ERR_MISSING: &str = "%ls: %ls: option requires an argument\n";
|
||||||
|
|
||||||
/// Error message on missing man page.
|
/// Error message on missing man page.
|
||||||
pub const BUILTIN_ERR_MISSING_HELP: &str = concat!(
|
pub const BUILTIN_ERR_MISSING_HELP: &str =
|
||||||
"fish: %ls: missing man page\nDocumentation may not be installed.\n`help %ls` will ",
|
"fish: %ls: missing man page\nDocumentation may not be installed.\n`help %ls` will show an online version\n";
|
||||||
"show an online version\n"
|
|
||||||
);
|
|
||||||
|
|
||||||
/// Error message on multiple scope levels for variables.
|
/// Error message on multiple scope levels for variables.
|
||||||
pub const BUILTIN_ERR_GLOCAL: &str =
|
pub const BUILTIN_ERR_GLOCAL: &str =
|
||||||
|
|||||||
@@ -278,10 +278,7 @@ fn handle_command_not_found(
|
|||||||
ctx,
|
ctx,
|
||||||
STATUS_NOT_EXECUTABLE,
|
STATUS_NOT_EXECUTABLE,
|
||||||
&statement.command,
|
&statement.command,
|
||||||
concat!(
|
"Unknown command. A component of '%ls' is not a directory. Check your $PATH.",
|
||||||
"Unknown command. A component of '%ls' is not a ",
|
|
||||||
"directory. Check your $PATH."
|
|
||||||
),
|
|
||||||
cmd
|
cmd
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user