Commit e8ef128f authored by claes's avatar claes

-l language switch added

parent eb9d8412
......@@ -45,6 +45,7 @@ extern "C" {
#include "wb_vsel.h"
#include "co_msgwindow.h"
#include "co_xhelp.h"
#include "co_lng.h"
#include "wb_wtt.h"
#include "wb_erep.h"
......@@ -87,6 +88,11 @@ void pwr_wtt_close( void *wttctx);
void pwr_wtt_open_volume( void *wttctx, wb_eType type, char *filename, wow_eFileSelType file_type);
int pwr_time_to_exit( void *wttctx);
static void usage()
{
printf("\nUsage: wb [-a] [-l language] [username] [password] [volume]\n");
}
void wttlist_add( pwr_tStatus *sts, Wtt *wtt, pwr_tVid vid)
{
wttlist_iterator it = wttlist.find( vid);
......@@ -502,6 +508,14 @@ int main( int argc, char *argv[])
sw_projectvolume = 0;
volumename_p = 0;
break;
case 'l':
if ( i+1 >= argc) {
usage();
exit(0);
}
Lng::set( argv[i+1]);
i++;
break;
default:
printf("Unknown argument: %s\n", argv[i]);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment