aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r--scripts/kconfig/qconf.cc109
1 files changed, 54 insertions, 55 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index b9bb32dfd628..5d0fd38b089b 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -114,7 +114,7 @@ void ConfigItem::updateMenu(void)
114 114
115 sym = menu->sym; 115 sym = menu->sym;
116 prop = menu->prompt; 116 prop = menu->prompt;
117 prompt = QString::fromLocal8Bit(menu_get_prompt(menu)); 117 prompt = _(menu_get_prompt(menu));
118 118
119 if (prop) switch (prop->type) { 119 if (prop) switch (prop->type) {
120 case P_MENU: 120 case P_MENU:
@@ -208,7 +208,7 @@ void ConfigItem::updateMenu(void)
208 break; 208 break;
209 } 209 }
210 if (!sym_has_value(sym) && visible) 210 if (!sym_has_value(sym) && visible)
211 prompt += " (NEW)"; 211 prompt += _(" (NEW)");
212set_prompt: 212set_prompt:
213 setText(promptColIdx, prompt); 213 setText(promptColIdx, prompt);
214} 214}
@@ -346,7 +346,7 @@ ConfigList::ConfigList(ConfigView* p, const char *name)
346 346
347 for (i = 0; i < colNr; i++) 347 for (i = 0; i < colNr; i++)
348 colMap[i] = colRevMap[i] = -1; 348 colMap[i] = colRevMap[i] = -1;
349 addColumn(promptColIdx, "Option"); 349 addColumn(promptColIdx, _("Option"));
350 350
351 reinit(); 351 reinit();
352} 352}
@@ -360,14 +360,14 @@ void ConfigList::reinit(void)
360 removeColumn(nameColIdx); 360 removeColumn(nameColIdx);
361 361
362 if (showName) 362 if (showName)
363 addColumn(nameColIdx, "Name"); 363 addColumn(nameColIdx, _("Name"));
364 if (showRange) { 364 if (showRange) {
365 addColumn(noColIdx, "N"); 365 addColumn(noColIdx, "N");
366 addColumn(modColIdx, "M"); 366 addColumn(modColIdx, "M");
367 addColumn(yesColIdx, "Y"); 367 addColumn(yesColIdx, "Y");
368 } 368 }
369 if (showData) 369 if (showData)
370 addColumn(dataColIdx, "Value"); 370 addColumn(dataColIdx, _("Value"));
371 371
372 updateListAll(); 372 updateListAll();
373} 373}
@@ -803,7 +803,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
803 QAction *action; 803 QAction *action;
804 804
805 headerPopup = new QPopupMenu(this); 805 headerPopup = new QPopupMenu(this);
806 action = new QAction(NULL, "Show Name", 0, this); 806 action = new QAction(NULL, _("Show Name"), 0, this);
807 action->setToggleAction(TRUE); 807 action->setToggleAction(TRUE);
808 connect(action, SIGNAL(toggled(bool)), 808 connect(action, SIGNAL(toggled(bool)),
809 parent(), SLOT(setShowName(bool))); 809 parent(), SLOT(setShowName(bool)));
@@ -811,7 +811,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
811 action, SLOT(setOn(bool))); 811 action, SLOT(setOn(bool)));
812 action->setOn(showName); 812 action->setOn(showName);
813 action->addTo(headerPopup); 813 action->addTo(headerPopup);
814 action = new QAction(NULL, "Show Range", 0, this); 814 action = new QAction(NULL, _("Show Range"), 0, this);
815 action->setToggleAction(TRUE); 815 action->setToggleAction(TRUE);
816 connect(action, SIGNAL(toggled(bool)), 816 connect(action, SIGNAL(toggled(bool)),
817 parent(), SLOT(setShowRange(bool))); 817 parent(), SLOT(setShowRange(bool)));
@@ -819,7 +819,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
819 action, SLOT(setOn(bool))); 819 action, SLOT(setOn(bool)));
820 action->setOn(showRange); 820 action->setOn(showRange);
821 action->addTo(headerPopup); 821 action->addTo(headerPopup);
822 action = new QAction(NULL, "Show Data", 0, this); 822 action = new QAction(NULL, _("Show Data"), 0, this);
823 action->setToggleAction(TRUE); 823 action->setToggleAction(TRUE);
824 connect(action, SIGNAL(toggled(bool)), 824 connect(action, SIGNAL(toggled(bool)),
825 parent(), SLOT(setShowData(bool))); 825 parent(), SLOT(setShowData(bool)));
@@ -1041,7 +1041,12 @@ void ConfigInfoView::menuInfo(void)
1041 if (showDebug()) 1041 if (showDebug())
1042 debug = debug_info(sym); 1042 debug = debug_info(sym);
1043 1043
1044 help = print_filter(_(menu_get_help(menu))); 1044 help = menu_get_help(menu);
1045 /* Gettextize if the help text not empty */
1046 if (help.isEmpty())
1047 help = print_filter(menu_get_help(menu));
1048 else
1049 help = print_filter(_(menu_get_help(menu)));
1045 } else if (menu->prompt) { 1050 } else if (menu->prompt) {
1046 head += "<big><b>"; 1051 head += "<big><b>";
1047 head += print_filter(_(menu->prompt->text)); 1052 head += print_filter(_(menu->prompt->text));
@@ -1083,7 +1088,11 @@ QString ConfigInfoView::debug_info(struct symbol *sym)
1083 debug += "</a><br>"; 1088 debug += "</a><br>";
1084 break; 1089 break;
1085 case P_DEFAULT: 1090 case P_DEFAULT:
1086 debug += "default: "; 1091 case P_SELECT:
1092 case P_RANGE:
1093 case P_ENV:
1094 debug += prop_get_type_name(prop->type);
1095 debug += ": ";
1087 expr_print(prop->expr, expr_print_help, &debug, E_NONE); 1096 expr_print(prop->expr, expr_print_help, &debug, E_NONE);
1088 debug += "<br>"; 1097 debug += "<br>";
1089 break; 1098 break;
@@ -1094,16 +1103,6 @@ QString ConfigInfoView::debug_info(struct symbol *sym)
1094 debug += "<br>"; 1103 debug += "<br>";
1095 } 1104 }
1096 break; 1105 break;
1097 case P_SELECT:
1098 debug += "select: ";
1099 expr_print(prop->expr, expr_print_help, &debug, E_NONE);
1100 debug += "<br>";
1101 break;
1102 case P_RANGE:
1103 debug += "range: ";
1104 expr_print(prop->expr, expr_print_help, &debug, E_NONE);
1105 debug += "<br>";
1106 break;
1107 default: 1106 default:
1108 debug += "unknown property: "; 1107 debug += "unknown property: ";
1109 debug += prop_get_type_name(prop->type); 1108 debug += prop_get_type_name(prop->type);
@@ -1167,7 +1166,7 @@ void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char
1167QPopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos) 1166QPopupMenu* ConfigInfoView::createPopupMenu(const QPoint& pos)
1168{ 1167{
1169 QPopupMenu* popup = Parent::createPopupMenu(pos); 1168 QPopupMenu* popup = Parent::createPopupMenu(pos);
1170 QAction* action = new QAction(NULL,"Show Debug Info", 0, popup); 1169 QAction* action = new QAction(NULL, _("Show Debug Info"), 0, popup);
1171 action->setToggleAction(TRUE); 1170 action->setToggleAction(TRUE);
1172 connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool))); 1171 connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool)));
1173 connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setOn(bool))); 1172 connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setOn(bool)));
@@ -1189,11 +1188,11 @@ ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow* parent, const char *nam
1189 1188
1190 QVBoxLayout* layout1 = new QVBoxLayout(this, 11, 6); 1189 QVBoxLayout* layout1 = new QVBoxLayout(this, 11, 6);
1191 QHBoxLayout* layout2 = new QHBoxLayout(0, 0, 6); 1190 QHBoxLayout* layout2 = new QHBoxLayout(0, 0, 6);
1192 layout2->addWidget(new QLabel("Find:", this)); 1191 layout2->addWidget(new QLabel(_("Find:"), this));
1193 editField = new QLineEdit(this); 1192 editField = new QLineEdit(this);
1194 connect(editField, SIGNAL(returnPressed()), SLOT(search())); 1193 connect(editField, SIGNAL(returnPressed()), SLOT(search()));
1195 layout2->addWidget(editField); 1194 layout2->addWidget(editField);
1196 searchButton = new QPushButton("Search", this); 1195 searchButton = new QPushButton(_("Search"), this);
1197 searchButton->setAutoDefault(FALSE); 1196 searchButton->setAutoDefault(FALSE);
1198 connect(searchButton, SIGNAL(clicked()), SLOT(search())); 1197 connect(searchButton, SIGNAL(clicked()), SLOT(search()));
1199 layout2->addWidget(searchButton); 1198 layout2->addWidget(searchButton);
@@ -1313,58 +1312,58 @@ ConfigMainWindow::ConfigMainWindow(void)
1313 menu = menuBar(); 1312 menu = menuBar();
1314 toolBar = new QToolBar("Tools", this); 1313 toolBar = new QToolBar("Tools", this);
1315 1314
1316 backAction = new QAction("Back", QPixmap(xpm_back), "Back", 0, this); 1315 backAction = new QAction("Back", QPixmap(xpm_back), _("Back"), 0, this);
1317 connect(backAction, SIGNAL(activated()), SLOT(goBack())); 1316 connect(backAction, SIGNAL(activated()), SLOT(goBack()));
1318 backAction->setEnabled(FALSE); 1317 backAction->setEnabled(FALSE);
1319 QAction *quitAction = new QAction("Quit", "&Quit", CTRL+Key_Q, this); 1318 QAction *quitAction = new QAction("Quit", _("&Quit"), CTRL+Key_Q, this);
1320 connect(quitAction, SIGNAL(activated()), SLOT(close())); 1319 connect(quitAction, SIGNAL(activated()), SLOT(close()));
1321 QAction *loadAction = new QAction("Load", QPixmap(xpm_load), "&Load", CTRL+Key_L, this); 1320 QAction *loadAction = new QAction("Load", QPixmap(xpm_load), _("&Load"), CTRL+Key_L, this);
1322 connect(loadAction, SIGNAL(activated()), SLOT(loadConfig())); 1321 connect(loadAction, SIGNAL(activated()), SLOT(loadConfig()));
1323 saveAction = new QAction("Save", QPixmap(xpm_save), "&Save", CTRL+Key_S, this); 1322 saveAction = new QAction("Save", QPixmap(xpm_save), _("&Save"), CTRL+Key_S, this);
1324 connect(saveAction, SIGNAL(activated()), SLOT(saveConfig())); 1323 connect(saveAction, SIGNAL(activated()), SLOT(saveConfig()));
1325 conf_set_changed_callback(conf_changed); 1324 conf_set_changed_callback(conf_changed);
1326 // Set saveAction's initial state 1325 // Set saveAction's initial state
1327 conf_changed(); 1326 conf_changed();
1328 QAction *saveAsAction = new QAction("Save As...", "Save &As...", 0, this); 1327 QAction *saveAsAction = new QAction("Save As...", _("Save &As..."), 0, this);
1329 connect(saveAsAction, SIGNAL(activated()), SLOT(saveConfigAs())); 1328 connect(saveAsAction, SIGNAL(activated()), SLOT(saveConfigAs()));
1330 QAction *searchAction = new QAction("Find", "&Find", CTRL+Key_F, this); 1329 QAction *searchAction = new QAction("Find", _("&Find"), CTRL+Key_F, this);
1331 connect(searchAction, SIGNAL(activated()), SLOT(searchConfig())); 1330 connect(searchAction, SIGNAL(activated()), SLOT(searchConfig()));
1332 QAction *singleViewAction = new QAction("Single View", QPixmap(xpm_single_view), "Split View", 0, this); 1331 QAction *singleViewAction = new QAction("Single View", QPixmap(xpm_single_view), _("Single View"), 0, this);
1333 connect(singleViewAction, SIGNAL(activated()), SLOT(showSingleView())); 1332 connect(singleViewAction, SIGNAL(activated()), SLOT(showSingleView()));
1334 QAction *splitViewAction = new QAction("Split View", QPixmap(xpm_split_view), "Split View", 0, this); 1333 QAction *splitViewAction = new QAction("Split View", QPixmap(xpm_split_view), _("Split View"), 0, this);
1335 connect(splitViewAction, SIGNAL(activated()), SLOT(showSplitView())); 1334 connect(splitViewAction, SIGNAL(activated()), SLOT(showSplitView()));
1336 QAction *fullViewAction = new QAction("Full View", QPixmap(xpm_tree_view), "Full View", 0, this); 1335 QAction *fullViewAction = new QAction("Full View", QPixmap(xpm_tree_view), _("Full View"), 0, this);
1337 connect(fullViewAction, SIGNAL(activated()), SLOT(showFullView())); 1336 connect(fullViewAction, SIGNAL(activated()), SLOT(showFullView()));
1338 1337
1339 QAction *showNameAction = new QAction(NULL, "Show Name", 0, this); 1338 QAction *showNameAction = new QAction(NULL, _("Show Name"), 0, this);
1340 showNameAction->setToggleAction(TRUE); 1339 showNameAction->setToggleAction(TRUE);
1341 connect(showNameAction, SIGNAL(toggled(bool)), configView, SLOT(setShowName(bool))); 1340 connect(showNameAction, SIGNAL(toggled(bool)), configView, SLOT(setShowName(bool)));
1342 connect(configView, SIGNAL(showNameChanged(bool)), showNameAction, SLOT(setOn(bool))); 1341 connect(configView, SIGNAL(showNameChanged(bool)), showNameAction, SLOT(setOn(bool)));
1343 showNameAction->setOn(configView->showName()); 1342 showNameAction->setOn(configView->showName());
1344 QAction *showRangeAction = new QAction(NULL, "Show Range", 0, this); 1343 QAction *showRangeAction = new QAction(NULL, _("Show Range"), 0, this);
1345 showRangeAction->setToggleAction(TRUE); 1344 showRangeAction->setToggleAction(TRUE);
1346 connect(showRangeAction, SIGNAL(toggled(bool)), configView, SLOT(setShowRange(bool))); 1345 connect(showRangeAction, SIGNAL(toggled(bool)), configView, SLOT(setShowRange(bool)));
1347 connect(configView, SIGNAL(showRangeChanged(bool)), showRangeAction, SLOT(setOn(bool))); 1346 connect(configView, SIGNAL(showRangeChanged(bool)), showRangeAction, SLOT(setOn(bool)));
1348 showRangeAction->setOn(configList->showRange); 1347 showRangeAction->setOn(configList->showRange);
1349 QAction *showDataAction = new QAction(NULL, "Show Data", 0, this); 1348 QAction *showDataAction = new QAction(NULL, _("Show Data"), 0, this);
1350 showDataAction->setToggleAction(TRUE); 1349 showDataAction->setToggleAction(TRUE);
1351 connect(showDataAction, SIGNAL(toggled(bool)), configView, SLOT(setShowData(bool))); 1350 connect(showDataAction, SIGNAL(toggled(bool)), configView, SLOT(setShowData(bool)));
1352 connect(configView, SIGNAL(showDataChanged(bool)), showDataAction, SLOT(setOn(bool))); 1351 connect(configView, SIGNAL(showDataChanged(bool)), showDataAction, SLOT(setOn(bool)));
1353 showDataAction->setOn(configList->showData); 1352 showDataAction->setOn(configList->showData);
1354 QAction *showAllAction = new QAction(NULL, "Show All Options", 0, this); 1353 QAction *showAllAction = new QAction(NULL, _("Show All Options"), 0, this);
1355 showAllAction->setToggleAction(TRUE); 1354 showAllAction->setToggleAction(TRUE);
1356 connect(showAllAction, SIGNAL(toggled(bool)), configView, SLOT(setShowAll(bool))); 1355 connect(showAllAction, SIGNAL(toggled(bool)), configView, SLOT(setShowAll(bool)));
1357 connect(showAllAction, SIGNAL(toggled(bool)), menuView, SLOT(setShowAll(bool))); 1356 connect(showAllAction, SIGNAL(toggled(bool)), menuView, SLOT(setShowAll(bool)));
1358 showAllAction->setOn(configList->showAll); 1357 showAllAction->setOn(configList->showAll);
1359 QAction *showDebugAction = new QAction(NULL, "Show Debug Info", 0, this); 1358 QAction *showDebugAction = new QAction(NULL, _("Show Debug Info"), 0, this);
1360 showDebugAction->setToggleAction(TRUE); 1359 showDebugAction->setToggleAction(TRUE);
1361 connect(showDebugAction, SIGNAL(toggled(bool)), helpText, SLOT(setShowDebug(bool))); 1360 connect(showDebugAction, SIGNAL(toggled(bool)), helpText, SLOT(setShowDebug(bool)));
1362 connect(helpText, SIGNAL(showDebugChanged(bool)), showDebugAction, SLOT(setOn(bool))); 1361 connect(helpText, SIGNAL(showDebugChanged(bool)), showDebugAction, SLOT(setOn(bool)));
1363 showDebugAction->setOn(helpText->showDebug()); 1362 showDebugAction->setOn(helpText->showDebug());
1364 1363
1365 QAction *showIntroAction = new QAction(NULL, "Introduction", 0, this); 1364 QAction *showIntroAction = new QAction(NULL, _("Introduction"), 0, this);
1366 connect(showIntroAction, SIGNAL(activated()), SLOT(showIntro())); 1365 connect(showIntroAction, SIGNAL(activated()), SLOT(showIntro()));
1367 QAction *showAboutAction = new QAction(NULL, "About", 0, this); 1366 QAction *showAboutAction = new QAction(NULL, _("About"), 0, this);
1368 connect(showAboutAction, SIGNAL(activated()), SLOT(showAbout())); 1367 connect(showAboutAction, SIGNAL(activated()), SLOT(showAbout()));
1369 1368
1370 // init tool bar 1369 // init tool bar
@@ -1379,7 +1378,7 @@ ConfigMainWindow::ConfigMainWindow(void)
1379 1378
1380 // create config menu 1379 // create config menu
1381 QPopupMenu* config = new QPopupMenu(this); 1380 QPopupMenu* config = new QPopupMenu(this);
1382 menu->insertItem("&File", config); 1381 menu->insertItem(_("&File"), config);
1383 loadAction->addTo(config); 1382 loadAction->addTo(config);
1384 saveAction->addTo(config); 1383 saveAction->addTo(config);
1385 saveAsAction->addTo(config); 1384 saveAsAction->addTo(config);
@@ -1388,12 +1387,12 @@ ConfigMainWindow::ConfigMainWindow(void)
1388 1387
1389 // create edit menu 1388 // create edit menu
1390 QPopupMenu* editMenu = new QPopupMenu(this); 1389 QPopupMenu* editMenu = new QPopupMenu(this);
1391 menu->insertItem("&Edit", editMenu); 1390 menu->insertItem(_("&Edit"), editMenu);
1392 searchAction->addTo(editMenu); 1391 searchAction->addTo(editMenu);
1393 1392
1394 // create options menu 1393 // create options menu
1395 QPopupMenu* optionMenu = new QPopupMenu(this); 1394 QPopupMenu* optionMenu = new QPopupMenu(this);
1396 menu->insertItem("&Option", optionMenu); 1395 menu->insertItem(_("&Option"), optionMenu);
1397 showNameAction->addTo(optionMenu); 1396 showNameAction->addTo(optionMenu);
1398 showRangeAction->addTo(optionMenu); 1397 showRangeAction->addTo(optionMenu);
1399 showDataAction->addTo(optionMenu); 1398 showDataAction->addTo(optionMenu);
@@ -1404,7 +1403,7 @@ ConfigMainWindow::ConfigMainWindow(void)
1404 // create help menu 1403 // create help menu
1405 QPopupMenu* helpMenu = new QPopupMenu(this); 1404 QPopupMenu* helpMenu = new QPopupMenu(this);
1406 menu->insertSeparator(); 1405 menu->insertSeparator();
1407 menu->insertItem("&Help", helpMenu); 1406 menu->insertItem(_("&Help"), helpMenu);
1408 showIntroAction->addTo(helpMenu); 1407 showIntroAction->addTo(helpMenu);
1409 showAboutAction->addTo(helpMenu); 1408 showAboutAction->addTo(helpMenu);
1410 1409
@@ -1452,14 +1451,14 @@ void ConfigMainWindow::loadConfig(void)
1452 if (s.isNull()) 1451 if (s.isNull())
1453 return; 1452 return;
1454 if (conf_read(QFile::encodeName(s))) 1453 if (conf_read(QFile::encodeName(s)))
1455 QMessageBox::information(this, "qconf", "Unable to load configuration!"); 1454 QMessageBox::information(this, "qconf", _("Unable to load configuration!"));
1456 ConfigView::updateListAll(); 1455 ConfigView::updateListAll();
1457} 1456}
1458 1457
1459void ConfigMainWindow::saveConfig(void) 1458void ConfigMainWindow::saveConfig(void)
1460{ 1459{
1461 if (conf_write(NULL)) 1460 if (conf_write(NULL))
1462 QMessageBox::information(this, "qconf", "Unable to save configuration!"); 1461 QMessageBox::information(this, "qconf", _("Unable to save configuration!"));
1463} 1462}
1464 1463
1465void ConfigMainWindow::saveConfigAs(void) 1464void ConfigMainWindow::saveConfigAs(void)
@@ -1468,7 +1467,7 @@ void ConfigMainWindow::saveConfigAs(void)
1468 if (s.isNull()) 1467 if (s.isNull())
1469 return; 1468 return;
1470 if (conf_write(QFile::encodeName(s))) 1469 if (conf_write(QFile::encodeName(s)))
1471 QMessageBox::information(this, "qconf", "Unable to save configuration!"); 1470 QMessageBox::information(this, "qconf", _("Unable to save configuration!"));
1472} 1471}
1473 1472
1474void ConfigMainWindow::searchConfig(void) 1473void ConfigMainWindow::searchConfig(void)
@@ -1612,11 +1611,11 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
1612 e->accept(); 1611 e->accept();
1613 return; 1612 return;
1614 } 1613 }
1615 QMessageBox mb("qconf", "Save configuration?", QMessageBox::Warning, 1614 QMessageBox mb("qconf", _("Save configuration?"), QMessageBox::Warning,
1616 QMessageBox::Yes | QMessageBox::Default, QMessageBox::No, QMessageBox::Cancel | QMessageBox::Escape); 1615 QMessageBox::Yes | QMessageBox::Default, QMessageBox::No, QMessageBox::Cancel | QMessageBox::Escape);
1617 mb.setButtonText(QMessageBox::Yes, "&Save Changes"); 1616 mb.setButtonText(QMessageBox::Yes, _("&Save Changes"));
1618 mb.setButtonText(QMessageBox::No, "&Discard Changes"); 1617 mb.setButtonText(QMessageBox::No, _("&Discard Changes"));
1619 mb.setButtonText(QMessageBox::Cancel, "Cancel Exit"); 1618 mb.setButtonText(QMessageBox::Cancel, _("Cancel Exit"));
1620 switch (mb.exec()) { 1619 switch (mb.exec()) {
1621 case QMessageBox::Yes: 1620 case QMessageBox::Yes:
1622 conf_write(NULL); 1621 conf_write(NULL);
@@ -1631,7 +1630,7 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)
1631 1630
1632void ConfigMainWindow::showIntro(void) 1631void ConfigMainWindow::showIntro(void)
1633{ 1632{
1634 static char str[] = "Welcome to the qconf graphical kernel configuration tool for Linux.\n\n" 1633 static const QString str = _("Welcome to the qconf graphical kernel configuration tool for Linux.\n\n"
1635 "For each option, a blank box indicates the feature is disabled, a check\n" 1634 "For each option, a blank box indicates the feature is disabled, a check\n"
1636 "indicates it is enabled, and a dot indicates that it is to be compiled\n" 1635 "indicates it is enabled, and a dot indicates that it is to be compiled\n"
1637 "as a module. Clicking on the box will cycle through the three states.\n\n" 1636 "as a module. Clicking on the box will cycle through the three states.\n\n"
@@ -1641,15 +1640,15 @@ void ConfigMainWindow::showIntro(void)
1641 "options must be enabled to support the option you are interested in, you can\n" 1640 "options must be enabled to support the option you are interested in, you can\n"
1642 "still view the help of a grayed-out option.\n\n" 1641 "still view the help of a grayed-out option.\n\n"
1643 "Toggling Show Debug Info under the Options menu will show the dependencies,\n" 1642 "Toggling Show Debug Info under the Options menu will show the dependencies,\n"
1644 "which you can then match by examining other options.\n\n"; 1643 "which you can then match by examining other options.\n\n");
1645 1644
1646 QMessageBox::information(this, "qconf", str); 1645 QMessageBox::information(this, "qconf", str);
1647} 1646}
1648 1647
1649void ConfigMainWindow::showAbout(void) 1648void ConfigMainWindow::showAbout(void)
1650{ 1649{
1651 static char str[] = "qconf is Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>.\n\n" 1650 static const QString str = _("qconf is Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>.\n\n"
1652 "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n"; 1651 "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n");
1653 1652
1654 QMessageBox::information(this, "qconf", str); 1653 QMessageBox::information(this, "qconf", str);
1655} 1654}
@@ -1707,7 +1706,7 @@ static const char *progname;
1707 1706
1708static void usage(void) 1707static void usage(void)
1709{ 1708{
1710 printf("%s <config>\n", progname); 1709 printf(_("%s <config>\n"), progname);
1711 exit(0); 1710 exit(0);
1712} 1711}
1713 1712