3
3
* Released under the terms of the GNU GPL v2.0.
4
4
*/
5
5
6
- #include <locale.h>
7
6
#include <ctype.h>
8
7
#include <limits.h>
9
8
#include <stdio.h>
@@ -86,7 +85,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
86
85
enum symbol_type type = sym_get_type (sym );
87
86
88
87
if (!sym_has_value (sym ))
89
- printf (_ ( "(NEW) " ) );
88
+ printf ("(NEW) " );
90
89
91
90
line [0 ] = '\n' ;
92
91
line [1 ] = 0 ;
@@ -133,7 +132,7 @@ static int conf_string(struct menu *menu)
133
132
const char * def ;
134
133
135
134
while (1 ) {
136
- printf ("%*s%s " , indent - 1 , "" , _ ( menu -> prompt -> text ) );
135
+ printf ("%*s%s " , indent - 1 , "" , menu -> prompt -> text );
137
136
printf ("(%s) " , sym -> name );
138
137
def = sym_get_string_value (sym );
139
138
if (sym_get_string_value (sym ))
@@ -166,7 +165,7 @@ static int conf_sym(struct menu *menu)
166
165
tristate oldval , newval ;
167
166
168
167
while (1 ) {
169
- printf ("%*s%s " , indent - 1 , "" , _ ( menu -> prompt -> text ) );
168
+ printf ("%*s%s " , indent - 1 , "" , menu -> prompt -> text );
170
169
if (sym -> name )
171
170
printf ("(%s) " , sym -> name );
172
171
putchar ('[' );
@@ -251,7 +250,7 @@ static int conf_choice(struct menu *menu)
251
250
case no :
252
251
return 1 ;
253
252
case mod :
254
- printf ("%*s%s\n" , indent - 1 , "" , _ ( menu_get_prompt (menu ) ));
253
+ printf ("%*s%s\n" , indent - 1 , "" , menu_get_prompt (menu ));
255
254
return 0 ;
256
255
case yes :
257
256
break ;
@@ -261,15 +260,15 @@ static int conf_choice(struct menu *menu)
261
260
while (1 ) {
262
261
int cnt , def ;
263
262
264
- printf ("%*s%s\n" , indent - 1 , "" , _ ( menu_get_prompt (menu ) ));
263
+ printf ("%*s%s\n" , indent - 1 , "" , menu_get_prompt (menu ));
265
264
def_sym = sym_get_choice_value (sym );
266
265
cnt = def = 0 ;
267
266
line [0 ] = 0 ;
268
267
for (child = menu -> list ; child ; child = child -> next ) {
269
268
if (!menu_is_visible (child ))
270
269
continue ;
271
270
if (!child -> sym ) {
272
- printf ("%*c %s\n" , indent , '*' , _ ( menu_get_prompt (child ) ));
271
+ printf ("%*c %s\n" , indent , '*' , menu_get_prompt (child ));
273
272
continue ;
274
273
}
275
274
cnt ++ ;
@@ -278,14 +277,14 @@ static int conf_choice(struct menu *menu)
278
277
printf ("%*c" , indent , '>' );
279
278
} else
280
279
printf ("%*c" , indent , ' ' );
281
- printf (" %d. %s" , cnt , _ ( menu_get_prompt (child ) ));
280
+ printf (" %d. %s" , cnt , menu_get_prompt (child ));
282
281
if (child -> sym -> name )
283
282
printf (" (%s)" , child -> sym -> name );
284
283
if (!sym_has_value (child -> sym ))
285
- printf (_ ( " (NEW)" ) );
284
+ printf (" (NEW)" );
286
285
printf ("\n" );
287
286
}
288
- printf (_ ( "%*schoice" ) , indent - 1 , "" );
287
+ printf ("%*schoice" , indent - 1 , "" );
289
288
if (cnt == 1 ) {
290
289
printf ("[1]: 1\n" );
291
290
goto conf_childs ;
@@ -372,7 +371,7 @@ static void conf(struct menu *menu)
372
371
if (prompt )
373
372
printf ("%*c\n%*c %s\n%*c\n" ,
374
373
indent , '*' ,
375
- indent , '*' , _ ( prompt ) ,
374
+ indent , '*' , prompt ,
376
375
indent , '*' );
377
376
default :
378
377
;
@@ -437,7 +436,7 @@ static void check_conf(struct menu *menu)
437
436
}
438
437
} else {
439
438
if (!conf_cnt ++ )
440
- printf (_ ( "*\n* Restart config...\n*\n" ) );
439
+ printf ("*\n* Restart config...\n*\n" );
441
440
rootEntry = menu_get_parent_menu (menu );
442
441
conf (rootEntry );
443
442
}
@@ -498,10 +497,6 @@ int main(int ac, char **av)
498
497
const char * name , * defconfig_file = NULL /* gcc uninit */ ;
499
498
struct stat tmpstat ;
500
499
501
- setlocale (LC_ALL , "" );
502
- bindtextdomain (PACKAGE , LOCALEDIR );
503
- textdomain (PACKAGE );
504
-
505
500
tty_stdio = isatty (0 ) && isatty (1 );
506
501
507
502
while ((opt = getopt_long (ac , av , "s" , long_opts , NULL )) != -1 ) {
@@ -559,7 +554,7 @@ int main(int ac, char **av)
559
554
}
560
555
}
561
556
if (ac == optind ) {
562
- fprintf (stderr , _ ( "%s: Kconfig file missing\n" ) , av [0 ]);
557
+ fprintf (stderr , "%s: Kconfig file missing\n" , av [0 ]);
563
558
conf_usage (progname );
564
559
exit (1 );
565
560
}
@@ -569,12 +564,12 @@ int main(int ac, char **av)
569
564
if (sync_kconfig ) {
570
565
name = conf_get_configname ();
571
566
if (stat (name , & tmpstat )) {
572
- fprintf (stderr , _ ( "***\n"
567
+ fprintf (stderr , "***\n"
573
568
"*** Configuration file \"%s\" not found!\n"
574
569
"***\n"
575
570
"*** Please run some configurator (e.g. \"make oldconfig\" or\n"
576
571
"*** \"make menuconfig\" or \"make xconfig\").\n"
577
- "***\n" ) , name );
572
+ "***\n" , name );
578
573
exit (1 );
579
574
}
580
575
}
@@ -585,9 +580,9 @@ int main(int ac, char **av)
585
580
defconfig_file = conf_get_default_confname ();
586
581
if (conf_read (defconfig_file )) {
587
582
fprintf (stderr ,
588
- _ ( "***\n"
583
+ "***\n"
589
584
"*** Can't find default configuration \"%s\"!\n"
590
- "***\n" ) ,
585
+ "***\n" ,
591
586
defconfig_file );
592
587
exit (1 );
593
588
}
@@ -611,7 +606,7 @@ int main(int ac, char **av)
611
606
if ((strcmp (name , "" ) != 0 ) && (strcmp (name , "1" ) != 0 )) {
612
607
if (conf_read_simple (name , S_DEF_USER )) {
613
608
fprintf (stderr ,
614
- _ ( "*** Can't read seed configuration \"%s\"!\n" ) ,
609
+ "*** Can't read seed configuration \"%s\"!\n" ,
615
610
name );
616
611
exit (1 );
617
612
}
@@ -628,7 +623,7 @@ int main(int ac, char **av)
628
623
if (conf_read_simple (name , S_DEF_USER ) &&
629
624
conf_read_simple ("all.config" , S_DEF_USER )) {
630
625
fprintf (stderr ,
631
- _ ( "*** KCONFIG_ALLCONFIG set, but no \"%s\" or \"all.config\" file found\n" ) ,
626
+ "*** KCONFIG_ALLCONFIG set, but no \"%s\" or \"all.config\" file found\n" ,
632
627
name );
633
628
exit (1 );
634
629
}
@@ -642,7 +637,7 @@ int main(int ac, char **av)
642
637
name = getenv ("KCONFIG_NOSILENTUPDATE" );
643
638
if (name && * name ) {
644
639
fprintf (stderr ,
645
- _ ( "\n*** The configuration requires explicit update.\n\n" ) );
640
+ "\n*** The configuration requires explicit update.\n\n" );
646
641
return 1 ;
647
642
}
648
643
}
@@ -694,22 +689,22 @@ int main(int ac, char **av)
694
689
* All other commands are only used to generate a config.
695
690
*/
696
691
if (conf_get_changed () && conf_write (NULL )) {
697
- fprintf (stderr , _ ( "\n*** Error during writing of the configuration.\n\n" ) );
692
+ fprintf (stderr , "\n*** Error during writing of the configuration.\n\n" );
698
693
exit (1 );
699
694
}
700
695
if (conf_write_autoconf ()) {
701
- fprintf (stderr , _ ( "\n*** Error during update of the configuration.\n\n" ) );
696
+ fprintf (stderr , "\n*** Error during update of the configuration.\n\n" );
702
697
return 1 ;
703
698
}
704
699
} else if (input_mode == savedefconfig ) {
705
700
if (conf_write_defconfig (defconfig_file )) {
706
- fprintf (stderr , _ ( "n*** Error while saving defconfig to: %s\n\n" ) ,
701
+ fprintf (stderr , "n*** Error while saving defconfig to: %s\n\n" ,
707
702
defconfig_file );
708
703
return 1 ;
709
704
}
710
705
} else if (input_mode != listnewconfig ) {
711
706
if (conf_write (NULL )) {
712
- fprintf (stderr , _ ( "\n*** Error during writing of the configuration.\n\n" ) );
707
+ fprintf (stderr , "\n*** Error during writing of the configuration.\n\n" );
713
708
exit (1 );
714
709
}
715
710
}
0 commit comments