| 62 | constexpr auto cTransformContextName = "TransformContextWindow"; |
| 63 | |
| 64 | std::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 |
no test coverage detected