aboutsummaryrefslogtreecommitdiff
path: root/src/util/translation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/translation.h')
-rw-r--r--src/util/translation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/translation.h b/src/util/translation.h
index c70508c01e..f100dab20d 100644
--- a/src/util/translation.h
+++ b/src/util/translation.h
@@ -34,9 +34,9 @@ const extern std::function<std::string(const char*)> G_TRANSLATION_FUN;
* Translation function.
* If no translation function is set, simply return the input.
*/
-inline std::string _(const char* psz)
+inline bilingual_str _(const char* psz)
{
- return G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz;
+ return bilingual_str{psz, G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz};
}
#endif // BITCOIN_UTIL_TRANSLATION_H