From d7fe7a837b9f3fff3cd7b320eb836a80226af741 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 23 Sep 2016 21:31:53 -0400 Subject: language: Add some overloaded Translate functions that accept Anope::string --- include/language.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/language.h b/include/language.h index a506f3182..2cfdfe40d 100644 --- a/include/language.h +++ b/include/language.h @@ -49,6 +49,7 @@ namespace Language * @return The translated string if found, else the original string. */ extern CoreExport const char *Translate(const char *string); + extern CoreExport const char *Translate(const Anope::string &string); /** Translates a string to the language of the given user. * @param u The user to transate the string for @@ -56,6 +57,7 @@ namespace Language * @return The translated string if found, else the original string. */ extern CoreExport const char *Translate(User *u, const char *string); + extern CoreExport const char *Translate(User *u, const Anope::string &string); /** Translates a string to the language of the given account. * @param nc The account to translate the string for @@ -63,6 +65,7 @@ namespace Language * @return The translated string if count, else the original string */ extern CoreExport const char *Translate(NickServ::Account *nc, const char *string); + extern CoreExport const char *Translate(NickServ::Account *nc, const Anope::string &string); /** Translatesa string to the given language. * @param lang The language to translate to -- cgit