MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / tr

Method tr

src/Engine/State.cpp:226–229  ·  view source on GitHub ↗

* Get a modifiable copy of the localized text for dictionary key @a id. * This function forwards the call to Language::getString(const std::string &, unsigned). * @param id The dictionary key to search for. * @param n The number to use for the proper version. * @return A copy of the localized text. */

Source from the content-addressed store, hash-verified

224 * @return A copy of the localized text.
225 */
226LocalizedText State::tr(const std::string &id, unsigned n) const
227{
228 return _game->getLanguage()->getString(id, n);
229}
230
231/**
232 * centers all the surfaces on the screen.

Callers

nothing calls this directly

Calls 2

getLanguageMethod · 0.80
getStringMethod · 0.45

Tested by

no test coverage detected