Skip to content

Commit 652cf98

Browse files
committed
kconfig: rephrase help texts/comments not to include the package name
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Reviewed-by: Randy Dunlap <rdunlap@xenotime.net> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Michal Marek <mmarek@suse.cz>
1 parent ffb5957 commit 652cf98

6 files changed

Lines changed: 45 additions & 54 deletions

File tree

‎scripts/kconfig/conf.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ int main(int ac, char **av)
508508
name = conf_get_configname();
509509
if (stat(name, &tmpstat)) {
510510
fprintf(stderr, _("***\n"
511-
"*** You have not yet configured your kernel!\n"
512-
"*** (missing kernel config file \"%s\")\n"
511+
"*** Configuration file \"%s\" not found!\n"
513512
"***\n"
514513
"*** Please run some configurator (e.g. \"make oldconfig\" or\n"
515514
"*** \"make menuconfig\" or \"make xconfig\").\n"
@@ -571,7 +570,7 @@ int main(int ac, char **av)
571570
name = getenv("KCONFIG_NOSILENTUPDATE");
572571
if (name && *name) {
573572
fprintf(stderr,
574-
_("\n*** Kernel configuration requires explicit update.\n\n"));
573+
_("\n*** The configuration requires explicit update.\n\n"));
575574
return 1;
576575
}
577576
}
@@ -623,11 +622,11 @@ int main(int ac, char **av)
623622
* All other commands are only used to generate a config.
624623
*/
625624
if (conf_get_changed() && conf_write(NULL)) {
626-
fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
625+
fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
627626
exit(1);
628627
}
629628
if (conf_write_autoconf()) {
630-
fprintf(stderr, _("\n*** Error during update of the kernel configuration.\n\n"));
629+
fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
631630
return 1;
632631
}
633632
} else if (input_mode == savedefconfig) {
@@ -638,7 +637,7 @@ int main(int ac, char **av)
638637
}
639638
} else if (input_mode != listnewconfig) {
640639
if (conf_write(NULL)) {
641-
fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
640+
fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
642641
exit(1);
643642
}
644643
}

‎scripts/kconfig/gconf.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,7 @@ void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data)
671671
{
672672
GtkWidget *dialog;
673673
const gchar *intro_text = _(
674-
"Welcome to gkc, the GTK+ graphical kernel configuration tool\n"
675-
"for Linux.\n"
674+
"Welcome to gkc, the GTK+ graphical configuration tool\n"
676675
"For each option, a blank box indicates the feature is disabled, a\n"
677676
"check indicates it is enabled, and a dot indicates that it is to\n"
678677
"be compiled as a module. Clicking on the box will cycle through the three states.\n"

‎scripts/kconfig/mconf.c‎

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
static const char mconf_readme[] = N_(
2626
"Overview\n"
2727
"--------\n"
28-
"Some kernel features may be built directly into the kernel.\n"
29-
"Some may be made into loadable runtime modules. Some features\n"
30-
"may be completely removed altogether. There are also certain\n"
31-
"kernel parameters which are not really features, but must be\n"
32-
"entered in as decimal or hexadecimal numbers or possibly text.\n"
28+
"This interface let you select features and parameters for the build.\n"
29+
"Features can either be built-in, modularized, or ignored. Parameters\n"
30+
"must be entered in as decimal or hexadecimal numbers or text.\n"
3331
"\n"
3432
"Menu items beginning with following braces represent features that\n"
3533
" [ ] can be built in or removed\n"
@@ -117,7 +115,7 @@ static const char mconf_readme[] = N_(
117115
"-----------------------------\n"
118116
"Menuconfig supports the use of alternate configuration files for\n"
119117
"those who, for various reasons, find it necessary to switch\n"
120-
"between different kernel configurations.\n"
118+
"between different configurations.\n"
121119
"\n"
122120
"At the end of the main menu you will find two options. One is\n"
123121
"for saving the current configuration to a file of your choosing.\n"
@@ -150,9 +148,9 @@ static const char mconf_readme[] = N_(
150148
"\n"
151149
"Optional personality available\n"
152150
"------------------------------\n"
153-
"If you prefer to have all of the kernel options listed in a single\n"
154-
"menu, rather than the default multimenu hierarchy, run the menuconfig\n"
155-
"with MENUCONFIG_MODE environment variable set to single_menu. Example:\n"
151+
"If you prefer to have all of the options listed in a single menu, rather\n"
152+
"than the default multimenu hierarchy, run the menuconfig with\n"
153+
"MENUCONFIG_MODE environment variable set to single_menu. Example:\n"
156154
"\n"
157155
"make MENUCONFIG_MODE=single_menu menuconfig\n"
158156
"\n"
@@ -207,12 +205,12 @@ load_config_text[] = N_(
207205
"last retrieved. Leave blank to abort."),
208206
load_config_help[] = N_(
209207
"\n"
210-
"For various reasons, one may wish to keep several different kernel\n"
208+
"For various reasons, one may wish to keep several different\n"
211209
"configurations available on a single machine.\n"
212210
"\n"
213211
"If you have saved a previous configuration in a file other than the\n"
214-
"kernel's default, entering the name of the file here will allow you\n"
215-
"to modify that configuration.\n"
212+
"default one, entering its name here will allow you to modify that\n"
213+
"configuration.\n"
216214
"\n"
217215
"If you are uncertain, then you have probably never used alternate\n"
218216
"configuration files. You should therefore leave this blank to abort.\n"),
@@ -221,8 +219,8 @@ save_config_text[] = N_(
221219
"as an alternate. Leave blank to abort."),
222220
save_config_help[] = N_(
223221
"\n"
224-
"For various reasons, one may wish to keep different kernel\n"
225-
"configurations available on a single machine.\n"
222+
"For various reasons, one may wish to keep different configurations\n"
223+
"available on a single machine.\n"
226224
"\n"
227225
"Entering a file name here will allow you to later retrieve, modify\n"
228226
"and use the current configuration as an alternate to whatever\n"
@@ -834,7 +832,7 @@ int main(int ac, char **av)
834832
if (conf_get_changed())
835833
res = dialog_yesno(NULL,
836834
_("Do you wish to save your "
837-
"new kernel configuration?\n"
835+
"new configuration?\n"
838836
"<ESC><ESC> to continue."),
839837
6, 60);
840838
else
@@ -846,20 +844,20 @@ int main(int ac, char **av)
846844
case 0:
847845
if (conf_write(filename)) {
848846
fprintf(stderr, _("\n\n"
849-
"Error during writing of the kernel configuration.\n"
850-
"Your kernel configuration changes were NOT saved."
847+
"Error while writing of the configuration.\n"
848+
"Your configuration changes were NOT saved."
851849
"\n\n"));
852850
return 1;
853851
}
854852
case -1:
855853
printf(_("\n\n"
856-
"*** End of Linux kernel configuration.\n"
857-
"*** Execute 'make' to build the kernel or try 'make help'."
854+
"*** End of the configuration.\n"
855+
"*** Execute 'make' to start the build or try 'make help'."
858856
"\n\n"));
859857
break;
860858
default:
861859
fprintf(stderr, _("\n\n"
862-
"Your kernel configuration changes were NOT saved."
860+
"Your configuration changes were NOT saved."
863861
"\n\n"));
864862
}
865863

‎scripts/kconfig/menu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "lkc.h"
1111

1212
static const char nohelp_text[] = N_(
13-
"There is no help available for this kernel option.\n");
13+
"There is no help available for this option.\n");
1414

1515
struct menu rootmenu;
1616
static struct menu **last_entry_ptr;

‎scripts/kconfig/nconf.c‎

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
static const char nconf_readme[] = N_(
1616
"Overview\n"
1717
"--------\n"
18-
"Some kernel features may be built directly into the kernel.\n"
19-
"Some may be made into loadable runtime modules. Some features\n"
20-
"may be completely removed altogether. There are also certain\n"
21-
"kernel parameters which are not really features, but must be\n"
22-
"entered in as decimal or hexadecimal numbers or possibly text.\n"
18+
"This interface let you select features and parameters for the build.\n"
19+
"Features can either be built-in, modularized, or ignored. Parameters\n"
20+
"must be entered in as decimal or hexadecimal numbers or text.\n"
2321
"\n"
2422
"Menu items beginning with following braces represent features that\n"
2523
" [ ] can be built in or removed\n"
@@ -95,7 +93,7 @@ static const char nconf_readme[] = N_(
9593
"-----------------------------\n"
9694
"nconfig supports the use of alternate configuration files for\n"
9795
"those who, for various reasons, find it necessary to switch\n"
98-
"between different kernel configurations.\n"
96+
"between different configurations.\n"
9997
"\n"
10098
"At the end of the main menu you will find two options. One is\n"
10199
"for saving the current configuration to a file of your choosing.\n"
@@ -128,9 +126,9 @@ static const char nconf_readme[] = N_(
128126
"\n"
129127
"Optional personality available\n"
130128
"------------------------------\n"
131-
"If you prefer to have all of the kernel options listed in a single\n"
132-
"menu, rather than the default multimenu hierarchy, run the nconfig\n"
133-
"with NCONFIG_MODE environment variable set to single_menu. Example:\n"
129+
"If you prefer to have all of the options listed in a single menu, rather\n"
130+
"than the default multimenu hierarchy, run the nconfig with NCONFIG_MODE\n"
131+
"environment variable set to single_menu. Example:\n"
134132
"\n"
135133
"make NCONFIG_MODE=single_menu nconfig\n"
136134
"\n"
@@ -185,19 +183,19 @@ setmod_text[] = N_(
185183
"has been configured as a module.\n"
186184
"As a result, this feature will be built as a module."),
187185
nohelp_text[] = N_(
188-
"There is no help available for this kernel option.\n"),
186+
"There is no help available for this option.\n"),
189187
load_config_text[] = N_(
190188
"Enter the name of the configuration file you wish to load.\n"
191189
"Accept the name shown to restore the configuration you\n"
192190
"last retrieved. Leave blank to abort."),
193191
load_config_help[] = N_(
194192
"\n"
195-
"For various reasons, one may wish to keep several different kernel\n"
193+
"For various reasons, one may wish to keep several different\n"
196194
"configurations available on a single machine.\n"
197195
"\n"
198196
"If you have saved a previous configuration in a file other than the\n"
199-
"kernel's default, entering the name of the file here will allow you\n"
200-
"to modify that configuration.\n"
197+
"default one, entering its name here will allow you to modify that\n"
198+
"configuration.\n"
201199
"\n"
202200
"If you are uncertain, then you have probably never used alternate\n"
203201
"configuration files. You should therefor leave this blank to abort.\n"),
@@ -206,8 +204,8 @@ save_config_text[] = N_(
206204
"as an alternate. Leave blank to abort."),
207205
save_config_help[] = N_(
208206
"\n"
209-
"For various reasons, one may wish to keep different kernel\n"
210-
"configurations available on a single machine.\n"
207+
"For various reasons, one may wish to keep different configurations\n"
208+
"available on a single machine.\n"
211209
"\n"
212210
"Entering a file name here will allow you to later retrieve, modify\n"
213211
"and use the current configuration as an alternate to whatever\n"
@@ -681,8 +679,7 @@ static int do_exit(void)
681679
return 0;
682680
}
683681
res = btn_dialog(main_window,
684-
_("Do you wish to save your "
685-
"new kernel configuration?\n"
682+
_("Do you wish to save your new configuration?\n"
686683
"<ESC> to cancel and resume nconfig."),
687684
2,
688685
" <save> ",
@@ -701,18 +698,16 @@ static int do_exit(void)
701698
if (res)
702699
btn_dialog(
703700
main_window,
704-
_("Error during writing of the kernel "
705-
"configuration.\n"
706-
"Your kernel configuration "
707-
"changes were NOT saved."),
701+
_("Error during writing of configuration.\n"
702+
"Your configuration changes were NOT saved."),
708703
1,
709704
"<OK>");
710705
else {
711706
char buf[1024];
712707
snprintf(buf, 1024,
713708
_("Configuration written to %s\n"
714-
"End of Linux kernel configuration.\n"
715-
"Execute 'make' to build the kernel or try"
709+
"End of the configuration.\n"
710+
"Execute 'make' to start the build or try"
716711
" 'make help'."), filename);
717712
btn_dialog(
718713
main_window,
@@ -724,7 +719,7 @@ static int do_exit(void)
724719
default:
725720
btn_dialog(
726721
main_window,
727-
_("Your kernel configuration changes were NOT saved."),
722+
_("Your configuration changes were NOT saved."),
728723
1,
729724
"<OK>");
730725
break;

‎scripts/kconfig/qconf.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
16551655

16561656
void ConfigMainWindow::showIntro(void)
16571657
{
1658-
static const QString str = _("Welcome to the qconf graphical kernel configuration tool for Linux.\n\n"
1658+
static const QString str = _("Welcome to the qconf graphical configuration tool.\n\n"
16591659
"For each option, a blank box indicates the feature is disabled, a check\n"
16601660
"indicates it is enabled, and a dot indicates that it is to be compiled\n"
16611661
"as a module. Clicking on the box will cycle through the three states.\n\n"

0 commit comments

Comments
 (0)