| 105 | } |
| 106 | |
| 107 | static string getUnitName(df::unit * unit) |
| 108 | { |
| 109 | string label = ""; |
| 110 | auto name = Units::getVisibleName(unit); |
| 111 | if (name->has_name) |
| 112 | label = Translation::TranslateName(name, false); |
| 113 | |
| 114 | return label; |
| 115 | } |
| 116 | |
| 117 | template<typename T> |
| 118 | static string getFormName(int32_t id, const string &default_ = "?") { |
no outgoing calls
no test coverage detected