MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getItemCaption

Function getItemCaption

source/MRViewer/MRRibbonMenu.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62constexpr auto cTransformContextName = "TransformContextWindow";
63
64std::string getItemCaption( const std::string& name )
65{
66 auto it = RibbonSchemaHolder::schema().items.find( name );
67 if ( it == RibbonSchemaHolder::schema().items.end() )
68 return name;
69 const auto& item = it->second;
70 return Locale::translate( item.getCaption().c_str(), item.localeDomainId );
71}
72
73} //anonymous namespace
74

Callers 2

drawActiveList_Method · 0.85
drawShortcutsWindow_Method · 0.85

Calls 3

translateFunction · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected