src/builtin_type.cpp: add missing gettext call.

The string "%ls is %ls", which is printed when `type <command>` is ran
for a command in PATH, couldn't be localized, since it was missing _()
around it.
This commit is contained in:
Érico Rolim 2020-11-13 00:17:43 -03:00 committed by Fabian Homborg
parent 7b9c1a6076
commit 6e9d5c00e5

View File

@ -190,7 +190,7 @@ maybe_t<int> builtin_type(parser_t &parser, io_streams_t &streams, wchar_t **arg
if (opts.path || opts.force_path) {
streams.out.append_format(L"%ls\n", path.c_str());
} else {
streams.out.append_format(L"%ls is %ls\n", name, path.c_str());
streams.out.append_format(_(L"%ls is %ls\n"), name, path.c_str());
}
} else if (opts.type) {
streams.out.append(_(L"file\n"));