summaryrefslogtreecommitdiff
path: root/include/language.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-23 21:31:53 -0400
committerAdam <Adam@anope.org>2016-09-23 21:31:53 -0400
commitd7fe7a837b9f3fff3cd7b320eb836a80226af741 (patch)
treee22f422e73606211a34c259bffc1f0ea2e3cffbd /include/language.h
parentb597df403c852e4d164ca44abb5c1cae2beba536 (diff)
language: Add some overloaded Translate functions that accept Anope::string
Diffstat (limited to 'include/language.h')
-rw-r--r--include/language.h3
1 files changed, 3 insertions, 0 deletions
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