for (commandp=cmdline_command_table+1;commandp->name;commandp++)
cmd_name_maxlen=MAX(cmd_name_maxlen,(int)strlen(commandp->name));
for (commandp=cmdline_command_table+1;commandp->name;commandp++)
- printf("%-*s\t%s\n",cmd_name_maxlen,commandp->name,commandp->description);
+ printf("%-*s\t%s\n",cmd_name_maxlen,commandp->name,_(commandp->description));
}
#include <popt.h>
#include <string.h>
#include <stdio.h>
+#include <locale.h>
#include <captive/client.h> /* for captive_init() */
GError *gerr=NULL;
const char *cmd_cd_root_args[]={"/",NULL};
+ /* Initialize the i18n stuff */
+ setlocale(LC_ALL,"");
+ bindtextdomain(PACKAGE,LOCALEDIR);
+ textdomain(PACKAGE);
+
context=poptGetContext(
PACKAGE, /* name */
argc,(/*en-const*/const char **)argv, /* argc,argv */