| 132 | static std::set<std::string> unmapped; |
| 133 | |
| 134 | std::string Bundle::getLocalString(const std::string& key) const { |
| 135 | if (key == "") { return key; } |
| 136 | BundleStringMap::const_iterator it = mappings.find(key); |
| 137 | if (it != mappings.end()) { |
| 138 | return it->second; |
| 139 | } |
| 140 | else { |
| 141 | if (BZDB.getDebug()) { |
| 142 | if (unmapped.find(key) == unmapped.end()) { |
| 143 | unmapped.insert(key); |
| 144 | debugf(1, "Unmapped Locale String: %s\n", stripAnsiCodes(key)); |
| 145 | } |
| 146 | } |
| 147 | return key; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | std::string Bundle::formatMessage(const std::string& key, const std::vector<std::string> *parms) const { |
| 152 | std::string messageIn = getLocalString(key); |
no test coverage detected