summaryrefslogtreecommitdiff
path: root/resize
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-10-05 01:00:30 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-05 01:00:30 -0400
commit9d4507c5b61007df968638623aa1b4c47dae6cf9 (patch)
tree85c8c384ab772fa9e5efb039385714af96d171be /resize
parent4259052093da329907e255b11bf3e799872828c7 (diff)
downloade2fsprogs-9d4507c5b61007df968638623aa1b4c47dae6cf9.tar.gz
Pass the gettext() function to libcom_err
For those e2fsprogs programs which use libcom_err and are internationalized, pass the gettext() function to libcom_err during program initialization. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'resize')
-rw-r--r--resize/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resize/main.c b/resize/main.c
index 659a9234..e6e9e7bd 100644
--- a/resize/main.c
+++ b/resize/main.c
@@ -181,6 +181,7 @@ int main (int argc, char ** argv)
setlocale(LC_CTYPE, "");
bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
textdomain(NLS_CAT_NAME);
+ set_com_err_gettext(gettext);
#endif
add_error_table(&et_ext2_error_table);