Re: [Bashburn-info] Something funky in the config menu
Brought to you by:
bashburn
From: Steven W. O. <st...@sy...> - 2008-09-25 00:42:47
|
Ok. First of all, the variable bb_menu_adv was not defined for all languages. This means that Option 6 of the main menu would come up blank unless it was English or Swedish. I fixed that by using bb_conf_menu_adv instead. On Wednesday, Sep 24th 2008 at 17:17 -0000, quoth Anders Lind?n: =>I noticed some weird behaviour in the config menu. => =>I switched from English to Swedish and applied my changes without =>exiting the config menu. When choosing an option in the config menu, the =>description is now in Swedish as it should be. I can exit the config =>menu, go back to it and the descriptions are in Swedish still. I traced that back to BashBurn.sh which is doing this: source_language_modules . ${BBROOTDIR}/misc/configure_temp_help.lang We call source_language_modules to set the variables to be in the proper language and *then* we source in configure_temp_help.lang which overwrites some of the variables we defined. I just commented it out because if the default is to provide text in English then I thought we were already doing that just before calling source_language_modules. if [[ ! -d ${BBROOTDIR}/lang/${BBLANG} ]] then blah... sleep 3s # Since the set language did not exist, # set it to English and save the option # so that in the future this message is not # shown again. BBLANG=English apply_options fi So I'm at a loss to understand what the purpose is of C_T_H.lang and since it contains duplicate variable defs, it absolutely should be deleted. No? =>Should I shut down BB, start it again and then enter the config menu, =>the menu itself is still in Swedish, but the descriptions are now in =>English. Very strange. Fixed by commenting out . ${BBROOTDIR}/misc/configure_temp_help.lang =>I also notice that when the Swedish descriptions do show up, they use =>colors as they should. For instance when choosing whether to use =>normalize or not, yes is colored in green and no in red. In the english =>descriptions colors are never used. I'll look at that. => =>Finally, in the advanced menu, no option descriptions are ever printed. AFAIK, the option descriptions never existed. Do you know were they might have existed in svn history? -- steveo at syslang dot net TMMP1 http://frambors.syslang.net/ Do you have neighbors who are not frambors? Steve Orr Who should we vote for? http://steveo.syslang.net/electionrec-2008/ |