summaryrefslogtreecommitdiff
path: root/resize/main.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-05-03 18:45:55 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-05-03 18:45:55 -0400
commitddc32a045bd3bd35968ace2dbe22179470baec0b (patch)
tree0d1b371fe7ab321a166d65c6e49e9aef77ef98e6 /resize/main.c
parentbc7c14e0408665addd01b978b1950963b1ed799f (diff)
downloade2fsprogs-ddc32a045bd3bd35968ace2dbe22179470baec0b.tar.gz
Add Czech translation.
Remove "NYC" translation. Add Czech translation from Miloslav Trmac <mitr@volny.cz> Random NLS and other display fixes from Miloslav.
Diffstat (limited to 'resize/main.c')
-rw-r--r--resize/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/resize/main.c b/resize/main.c
index 841f4bd2..e35ac8e2 100644
--- a/resize/main.c
+++ b/resize/main.c
@@ -93,7 +93,7 @@ static void check_mount(char *device)
retval = ext2fs_check_if_mounted(device, &mount_flags);
if (retval) {
- com_err(_("ext2fs_check_if_mount"), retval,
+ com_err("ext2fs_check_if_mount", retval,
_("while determining whether %s is mounted."),
device);
return;
@@ -121,7 +121,14 @@ int main (int argc, char ** argv)
io_manager io_ptr;
char *tmp;
struct stat st_buf;
-
+
+#ifdef ENABLE_NLS
+ setlocale(LC_MESSAGES, "");
+ setlocale(LC_CTYPE, "");
+ bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
+ textdomain(NLS_CAT_NAME);
+#endif
+
initialize_ext2_error_table();
fprintf (stderr, _("resize2fs %s (%s)\n"),