7 #include <Main/locale.hxx>
8 #include <Main/globals.hxx>
10 FGMenuBar::FGMenuBar()
12 // load locale's menu resources (default and current language)
13 globals->get_locale()->loadResource("menu");
16 FGMenuBar::~FGMenuBar ()
21 FGMenuBar::getLocalizedLabel(SGPropertyNode* node)
23 const char* name = node->getStringValue("name", 0);
25 const char* translated = globals->get_locale()->getLocalizedString(name, "menu");
30 return node->getStringValue("label");