Commit 8d9dfe82 authored by Martin Walch's avatar Martin Walch Committed by Yann E. MORIN

kconfig: fix trivial typos and update mconf documentation

This fixes lots of typos in comments and strings.

It also updates the documentation strings in mconf to reflect the changes in
the user interface from the two commits

6364fd0c
  menuconfig: Add Save/Load buttons
1bdbac47
  menuconfig: Get rid of the top-level entries for "Load an Alternate/Save an Alternate"

And it updates the layout of the example search result, i. e. moves down the
"Defined at" and "Depends on" lines and adds a symbol state ([=n]) to the
symbol in the "Selected by" line.

Furthermore, the help texts now should fit in 80 columns again when viewed
in mconf.
Signed-off-by: default avatarMartin Walch <walch.martin@web.de>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Reviewed-by: default avatarWang YanQing <udknight@gmail.com>
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
parent 31bfb108
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
static const char mconf_readme[] = N_( static const char mconf_readme[] = N_(
"Overview\n" "Overview\n"
"--------\n" "--------\n"
"This interface let you select features and parameters for the build.\n" "This interface lets you select features and parameters for the build.\n"
"Features can either be built-in, modularized, or ignored. Parameters\n" "Features can either be built-in, modularized, or ignored. Parameters\n"
"must be entered in as decimal or hexadecimal numbers or text.\n" "must be entered in as decimal or hexadecimal numbers or text.\n"
"\n" "\n"
...@@ -39,15 +39,15 @@ static const char mconf_readme[] = N_( ...@@ -39,15 +39,15 @@ static const char mconf_readme[] = N_(
"\n" "\n"
"To change any of these features, highlight it with the cursor\n" "To change any of these features, highlight it with the cursor\n"
"keys and press <Y> to build it in, <M> to make it a module or\n" "keys and press <Y> to build it in, <M> to make it a module or\n"
"<N> to removed it. You may also press the <Space Bar> to cycle\n" "<N> to remove it. You may also press the <Space Bar> to cycle\n"
"through the available options (ie. Y->N->M->Y).\n" "through the available options (i.e. Y->N->M->Y).\n"
"\n" "\n"
"Some additional keyboard hints:\n" "Some additional keyboard hints:\n"
"\n" "\n"
"Menus\n" "Menus\n"
"----------\n" "----------\n"
"o Use the Up/Down arrow keys (cursor keys) to highlight the item\n" "o Use the Up/Down arrow keys (cursor keys) to highlight the item you\n"
" you wish to change or submenu wish to select and press <Enter>.\n" " wish to change or the submenu you wish to select and press <Enter>.\n"
" Submenus are designated by \"--->\", empty ones by \"----\".\n" " Submenus are designated by \"--->\", empty ones by \"----\".\n"
"\n" "\n"
" Shortcut: Press the option's highlighted letter (hotkey).\n" " Shortcut: Press the option's highlighted letter (hotkey).\n"
...@@ -65,7 +65,7 @@ static const char mconf_readme[] = N_( ...@@ -65,7 +65,7 @@ static const char mconf_readme[] = N_(
" there is a delayed response which you may find annoying.\n" " there is a delayed response which you may find annoying.\n"
"\n" "\n"
" Also, the <TAB> and cursor keys will cycle between <Select>,\n" " Also, the <TAB> and cursor keys will cycle between <Select>,\n"
" <Exit> and <Help>.\n" " <Exit>, <Help>, <Save>, and <Load>.\n"
"\n" "\n"
"o To get help with an item, use the cursor keys to highlight <Help>\n" "o To get help with an item, use the cursor keys to highlight <Help>\n"
" and press <ENTER>.\n" " and press <ENTER>.\n"
...@@ -105,7 +105,7 @@ static const char mconf_readme[] = N_( ...@@ -105,7 +105,7 @@ static const char mconf_readme[] = N_(
"Text Box (Help Window)\n" "Text Box (Help Window)\n"
"--------\n" "--------\n"
"o Use the cursor keys to scroll up/down/left/right. The VI editor\n" "o Use the cursor keys to scroll up/down/left/right. The VI editor\n"
" keys h,j,k,l function here as do <u>, <d>, <SPACE BAR> and <B> for \n" " keys h,j,k,l function here as do <u>, <d>, <SPACE BAR> and <B> for\n"
" those who are familiar with less and lynx.\n" " those who are familiar with less and lynx.\n"
"\n" "\n"
"o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n" "o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n"
...@@ -117,23 +117,21 @@ static const char mconf_readme[] = N_( ...@@ -117,23 +117,21 @@ static const char mconf_readme[] = N_(
"those who, for various reasons, find it necessary to switch\n" "those who, for various reasons, find it necessary to switch\n"
"between different configurations.\n" "between different configurations.\n"
"\n" "\n"
"At the end of the main menu you will find two options. One is\n" "The <Save> button will let you save the current configuration to\n"
"for saving the current configuration to a file of your choosing.\n" "a file of your choosing. Use the <Load> button to load a previously\n"
"The other option is for loading a previously saved alternate\n" "saved alternate configuration.\n"
"configuration.\n"
"\n" "\n"
"Even if you don't use alternate configuration files, but you\n" "Even if you don't use alternate configuration files, but you find\n"
"find during a Menuconfig session that you have completely messed\n" "during a Menuconfig session that you have completely messed up your\n"
"up your settings, you may use the \"Load Alternate...\" option to\n" "settings, you may use the <Load> button to restore your previously\n"
"restore your previously saved settings from \".config\" without\n" "saved settings from \".config\" without restarting Menuconfig.\n"
"restarting Menuconfig.\n"
"\n" "\n"
"Other information\n" "Other information\n"
"-----------------\n" "-----------------\n"
"If you use Menuconfig in an XTERM window make sure you have your\n" "If you use Menuconfig in an XTERM window, make sure you have your\n"
"$TERM variable set to point to a xterm definition which supports color.\n" "$TERM variable set to point to an xterm definition which supports\n"
"Otherwise, Menuconfig will look rather bad. Menuconfig will not\n" "color. Otherwise, Menuconfig will look rather bad. Menuconfig will\n"
"display correctly in a RXVT window because rxvt displays only one\n" "not display correctly in an RXVT window because rxvt displays only one\n"
"intensity of color, bright.\n" "intensity of color, bright.\n"
"\n" "\n"
"Menuconfig will display larger menus on screens or xterms which are\n" "Menuconfig will display larger menus on screens or xterms which are\n"
...@@ -148,8 +146,8 @@ static const char mconf_readme[] = N_( ...@@ -148,8 +146,8 @@ static const char mconf_readme[] = N_(
"\n" "\n"
"Optional personality available\n" "Optional personality available\n"
"------------------------------\n" "------------------------------\n"
"If you prefer to have all of the options listed in a single menu, rather\n" "If you prefer to have all of the options listed in a single menu,\n"
"than the default multimenu hierarchy, run the menuconfig with\n" "rather than the default multimenu hierarchy, run the menuconfig with\n"
"MENUCONFIG_MODE environment variable set to single_menu. Example:\n" "MENUCONFIG_MODE environment variable set to single_menu. Example:\n"
"\n" "\n"
"make MENUCONFIG_MODE=single_menu menuconfig\n" "make MENUCONFIG_MODE=single_menu menuconfig\n"
...@@ -172,7 +170,7 @@ static const char mconf_readme[] = N_( ...@@ -172,7 +170,7 @@ static const char mconf_readme[] = N_(
" mono => selects colors suitable for monochrome displays\n" " mono => selects colors suitable for monochrome displays\n"
" blackbg => selects a color scheme with black background\n" " blackbg => selects a color scheme with black background\n"
" classic => theme with blue background. The classic look\n" " classic => theme with blue background. The classic look\n"
" bluetitle => a LCD friendly version of classic. (default)\n" " bluetitle => an LCD friendly version of classic. (default)\n"
"\n"), "\n"),
menu_instructions[] = N_( menu_instructions[] = N_(
"Arrow keys navigate the menu. " "Arrow keys navigate the menu. "
...@@ -238,24 +236,24 @@ search_help[] = N_( ...@@ -238,24 +236,24 @@ search_help[] = N_(
"Symbol: FOO [=m]\n" "Symbol: FOO [=m]\n"
"Type : tristate\n" "Type : tristate\n"
"Prompt: Foo bus is used to drive the bar HW\n" "Prompt: Foo bus is used to drive the bar HW\n"
" Defined at drivers/pci/Kconfig:47\n"
" Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n"
" Location:\n" " Location:\n"
" -> Bus options (PCI, PCMCIA, EISA, ISA)\n" " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
" -> PCI support (PCI [=y])\n" " -> PCI support (PCI [=y])\n"
"(1) -> PCI access mode (<choice> [=y])\n" "(1) -> PCI access mode (<choice> [=y])\n"
" Defined at drivers/pci/Kconfig:47\n"
" Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n"
" Selects: LIBCRC32\n" " Selects: LIBCRC32\n"
" Selected by: BAR\n" " Selected by: BAR [=n]\n"
"-----------------------------------------------------------------\n" "-----------------------------------------------------------------\n"
"o The line 'Type:' shows the type of the configuration option for\n" "o The line 'Type:' shows the type of the configuration option for\n"
" this symbol (boolean, tristate, string, ...)\n" " this symbol (boolean, tristate, string, ...)\n"
"o The line 'Prompt:' shows the text used in the menu structure for\n" "o The line 'Prompt:' shows the text used in the menu structure for\n"
" this symbol\n" " this symbol\n"
"o The 'Defined at' line tell at what file / line number the symbol\n" "o The 'Defined at' line tells at what file / line number the symbol\n"
" is defined\n" " is defined\n"
"o The 'Depends on:' line tell what symbols needs to be defined for\n" "o The 'Depends on:' line tells what symbols need to be defined for\n"
" this symbol to be visible in the menu (selectable)\n" " this symbol to be visible in the menu (selectable)\n"
"o The 'Location:' lines tell where in the menu structure this symbol\n" "o The 'Location:' lines tells where in the menu structure this symbol\n"
" is located\n" " is located\n"
" A location followed by a [=y] indicates that this is a\n" " A location followed by a [=y] indicates that this is a\n"
" selectable menu item - and the current value is displayed inside\n" " selectable menu item - and the current value is displayed inside\n"
...@@ -263,9 +261,9 @@ search_help[] = N_( ...@@ -263,9 +261,9 @@ search_help[] = N_(
" Press the key in the (#) prefix to jump directly to that\n" " Press the key in the (#) prefix to jump directly to that\n"
" location. You will be returned to the current search results\n" " location. You will be returned to the current search results\n"
" after exiting this new menu.\n" " after exiting this new menu.\n"
"o The 'Selects:' line tell what symbol will be automatically\n" "o The 'Selects:' line tells what symbols will be automatically\n"
" selected if this symbol is selected (y or m)\n" " selected if this symbol is selected (y or m)\n"
"o The 'Selected by' line tell what symbol has selected this symbol\n" "o The 'Selected by' line tells what symbol has selected this symbol\n"
"\n" "\n"
"Only relevant lines are shown.\n" "Only relevant lines are shown.\n"
"\n\n" "\n\n"
......
...@@ -597,7 +597,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop, ...@@ -597,7 +597,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
} }
/* /*
* get peoperty of type P_SYMBOL * get property of type P_SYMBOL
*/ */
static struct property *get_symbol_prop(struct symbol *sym) static struct property *get_symbol_prop(struct symbol *sym)
{ {
......
...@@ -1047,7 +1047,7 @@ struct symbol **sym_re_search(const char *pattern) ...@@ -1047,7 +1047,7 @@ struct symbol **sym_re_search(const char *pattern)
* When we check for recursive dependencies we use a stack to save * When we check for recursive dependencies we use a stack to save
* current state so we can print out relevant info to user. * current state so we can print out relevant info to user.
* The entries are located on the call stack so no need to free memory. * The entries are located on the call stack so no need to free memory.
* Note inser() remove() must always match to properly clear the stack. * Note insert() remove() must always match to properly clear the stack.
*/ */
static struct dep_stack { static struct dep_stack {
struct dep_stack *prev, *next; struct dep_stack *prev, *next;
......
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