7 #include <Main/locale.hxx>
8 #include <Main/globals.hxx>
9 #include <simgear/math/SGMath.hxx>
11 FGMenuBar::FGMenuBar()
13 // load locale's menu resources (default and current language)
14 globals->get_locale()->loadResource("menu");
17 FGMenuBar::~FGMenuBar ()
22 FGMenuBar::getLocalizedLabel(SGPropertyNode* node)
24 const char* name = node->getStringValue("name", 0);
26 const char* translated = globals->get_locale()->getLocalizedString(name, "menu");
31 return node->getStringValue("label");