mirror of https://git.tukaani.org/xz.git
xz: Translate error messages from lzma_str_to_filters()
liblzma doesn't use gettext but the messages are included in xz.pot, so xz can translate the messages.
This commit is contained in:
parent
f2e2b267ca
commit
713fdaa8b0
|
@ -168,16 +168,13 @@ str_to_filters(const char *str, uint32_t index, uint32_t flags)
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
filter_num[0] = '0' + index;
|
filter_num[0] = '0' + index;
|
||||||
|
|
||||||
// FIXME? The message in err isn't translated.
|
// liblzma doesn't translate the error messages but
|
||||||
// Including the translations in the xz translations is
|
// the messages are included in xz's translations.
|
||||||
// slightly ugly but possible. Creating a new domain for
|
|
||||||
// liblzma might not be worth it especially since on some
|
|
||||||
// OSes it adds extra dependencies to translation libraries.
|
|
||||||
message(V_ERROR, _("Error in --filters%s=FILTERS option:"),
|
message(V_ERROR, _("Error in --filters%s=FILTERS option:"),
|
||||||
filter_num);
|
filter_num);
|
||||||
message(V_ERROR, "%s", str);
|
message(V_ERROR, "%s", str);
|
||||||
message(V_ERROR, "%*s^", error_pos, "");
|
message(V_ERROR, "%*s^", error_pos, "");
|
||||||
message_fatal("%s", err);
|
message_fatal("%s", _(err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue