Namespaces | Defines | Functions | Variables

language.h File Reference

#include "anope.h"
Include dependency graph for language.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Language

Defines

#define MORE_INFO   _("\002%s%s HELP %s\002 for more information.")
#define BAD_USERHOST_MASK   _("Mask must be in the form \037user\037@\037host\037.")
#define BAD_EXPIRY_TIME   _("Invalid expiry time.")
#define USERHOST_MASK_TOO_WIDE   _("%s coverage is too wide; Please use a more specific mask.")
#define READ_ONLY_MODE   _("Services are in read-only mode!")
#define PASSWORD_INCORRECT   _("Password incorrect.")
#define ACCESS_DENIED   _("Access denied.")
#define MORE_OBSCURE_PASSWORD
#define PASSWORD_TOO_LONG   _("Your password is too long. Please try again with a shorter password.")
#define NICK_NOT_REGISTERED   _("Your nick isn't registered.")
#define NICK_X_NOT_REGISTERED   _("Nick \002%s\002 isn't registered.")
#define NICK_X_NOT_IN_USE   _("Nick \002%s\002 isn't currently in use.")
#define NICK_X_NOT_ON_CHAN   _("\002%s\002 is not currently on channel %s.")
#define NICK_X_SUSPENDED   _("Nick %s is currently suspended.")
#define CHAN_X_SUSPENDED   _("Channel %s is currently suspended.")
#define CHAN_X_NOT_REGISTERED   _("Channel \002%s\002 isn't registered.")
#define CHAN_X_NOT_IN_USE   _("Channel \002%s\002 doesn't exist.")
#define NICK_IDENTIFY_REQUIRED   _("Password authentication required for that command.")
#define MAIL_X_INVALID   _("\002%s\002 is not a valid e-mail address.")
#define NO_REASON   _("No reason")
#define UNKNOWN   _("<unknown>")
#define NO_EXPIRE   _("does not expire")
#define LIST_INCORRECT_RANGE   _("Incorrect range specified. The correct syntax is \002#\037from\037-\037to\037\002.")
#define UNKNOWN_OPTION
#define NICK_IS_REGISTERED
#define NICK_IS_SECURE
#define FORCENICKCHANGE_NOW   _("This nickname has been registered; you may not use it.")
#define NICK_CANNOT_BE_REGISTERED   _("Nickname \002%s\002 may not be registered.")
#define NICK_ALREADY_REGISTERED   _("Nickname \002%s\002 is already registered!")
#define NICK_SET_SYNTAX   _("SET \037option\037 \037parameters\037")
#define NICK_SET_DISABLED   _("Sorry, nickname option setting is temporarily disabled.")
#define NICK_SET_UNKNOWN_OPTION   _("Unknown SET option \002%s%s\002.")
#define NICK_SET_DISPLAY_CHANGED   _("The new display is now \002%s\002.")
#define NICK_LIST_SYNTAX   _("LIST \037pattern\037")
#define NICK_RECOVERED
#define NICK_REQUESTED   _("This nick has already been requested, please check your e-mail address for the pass code")
#define NICK_CONFIRM_INVALID   _("Invalid passcode has been entered, please check the e-mail again, and retry")
#define CHAN_NOT_ALLOWED_TO_JOIN   _("You are not permitted to be on this channel.")
#define CHAN_X_INVALID   _("Channel %s is not a valid channel.")
#define CHAN_REACHED_CHANNEL_LIMIT   _("Sorry, you have already reached your limit of \002%d\002 channels.")
#define CHAN_EXCEEDED_CHANNEL_LIMIT   _("Sorry, you have already exceeded your limit of \002%d\002 channels.")
#define CHAN_SYMBOL_REQUIRED   _("Please use the symbol of \002#\002 when attempting to register")
#define CHAN_SET_DISABLED   _("Sorry, channel option setting is temporarily disabled.")
#define CHAN_SETTING_CHANGED   _("%s for %s set to %s.")
#define CHAN_SETTING_UNSET   _("%s for %s unset.")
#define CHAN_SET_MLOCK_DEPRECATED   _("MLOCK is deprecated. Use \002%s%s HELP MODE\002 instead.")
#define CHAN_ACCESS_LEVEL_RANGE   _("Access level must be between %d and %d inclusive.")
#define CHAN_INFO_HEADER   _("Information for channel \002%s\002:")
#define CHAN_EXCEPTED   _("\002%s\002 matches an except on %s and cannot be banned until the except have been removed.")
#define MEMO_NEW_X_MEMO_ARRIVED
#define MEMO_NEW_MEMO_ARRIVED
#define MEMO_HAVE_NO_MEMOS   _("You have no memos.")
#define MEMO_X_HAS_NO_MEMOS   _("%s has no memos.")
#define MEMO_SEND_SYNTAX   _("SEND {\037nick\037 | \037channel\037} \037memo-text\037")
#define MEMO_SEND_DISABLED   _("Sorry, memo sending is temporarily disabled.")
#define MEMO_HAVE_NO_NEW_MEMOS   _("You have no new memos.")
#define MEMO_X_HAS_NO_NEW_MEMOS   _("%s has no new memos.")
#define BOT_DOES_NOT_EXIST   _("Bot \002%s\002 does not exist.")
#define BOT_NOT_ASSIGNED   _("You must assign a bot to the channel before using this command.")
#define BOT_NOT_ON_CHANNEL   _("Bot is not on channel \002%s\002.")
#define BOT_ASSIGN_READONLY   _("Sorry, bot assignment is temporarily disabled.")
#define HOST_SET_ERROR   _("A vhost must be in the format of a valid hostmask.")
#define HOST_SET_IDENT_ERROR   _("A vhost ident must be in the format of a valid ident")
#define HOST_SET_TOOLONG   _("Error! The vhost is too long, please use a host shorter than %d characters.")
#define HOST_SET_IDENTTOOLONG   _("Error! The Ident is too long, please use an ident shorter than %d characters.")
#define HOST_NOT_ASSIGNED   _("Please contact an Operator to get a vhost assigned to this nick.")
#define HOST_NO_VIDENT   _("Your IRCD does not support vIdent's, if this is incorrect, please report this as a possible bug")

Functions

void Language::InitLanguages ()
CoreExport const char * Language::Translate (const char *string)
CoreExport const char * Language::Translate (User *u, const char *string)
CoreExport const char * Language::Translate (const NickCore *nc, const char *string)
CoreExport const char * Language::Translate (const char *lang, const char *string)

Variables

CoreExport std::vector
< Anope::string
Language::Languages
std::vector< Anope::stringLanguage::Domains

Define Documentation

#define ACCESS_DENIED   _("Access denied.")

Definition at line 73 of file language.h.

Referenced by XOPBase::DoAdd(), CommandCSAKick::DoAdd(), CommandCSAccess::DoAdd(), XOPBase::DoClear(), CommandCSFlags::DoClear(), CommandCSAccess::DoClear(), XOPBase::DoDel(), CommandCSAccess::DoDel(), CommandMSSet::DoLimit(), XOPBase::DoList(), CommandCSMode::DoSet(), CommandOSSVSPart::Execute(), CommandOSSVSJoin::Execute(), CommandOSKill::Execute(), CommandOSForbid::Execute(), CommandNSResetPass::Execute(), CommandNSGList::Execute(), CommandNSDrop::Execute(), CommandNSAccess::Execute(), CommandMSRSend::Execute(), CommandMSRead::Execute(), CommandMSList::Execute(), CommandMSInfo::Execute(), CommandMSIgnore::Execute(), CommandMSDel::Execute(), CommandHSRequest::Execute(), CommandCSDown::Execute(), CommandCSUp::Execute(), CommandCSUnban::Execute(), CommandCSTopic::Execute(), CommandCSSync::Execute(), CommandCSStatus::Execute(), CommandCSSetMisc::Execute(), CommandCSSASetNoexpire::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetSignKick::Execute(), CommandCSSetSecureOps::Execute(), CommandCSSetSecureFounder::Execute(), CommandCSSetSecure::Execute(), CommandCSSetRestricted::Execute(), CommandCSSetPrivate::Execute(), CommandCSSetPersist::Execute(), CommandCSSetPeace::Execute(), CommandCSSetKeepTopic::Execute(), CommandCSSetFounder::Execute(), CommandCSSetDescription::Execute(), CommandCSSetChanstats::Execute(), CommandCSSetBanType::Execute(), CommandCSSetAutoOp::Execute(), CommandCSMode::Execute(), CommandCSLog::Execute(), CommandCSKick::Execute(), CommandCSInvite::Execute(), CommandCSGetKey::Execute(), CommandCSFlags::Execute(), CommandEntryMessage::Execute(), CommandCSEnforce::Execute(), CommandCSDrop::Execute(), CommandCSClone::Execute(), CommandCSBan::Execute(), CommandCSAKick::Execute(), CommandCSLevels::Execute(), CommandCSAccess::Execute(), CommandBSSetGreet::Execute(), CommandBSSetFantasy::Execute(), CommandBSSetDontKickVoices::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSKick::Execute(), CommandBSInfo::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandBSBot::Execute(), CommandBSBadwords::Execute(), CommandBSUnassign::Execute(), CommandBSAssign::Execute(), OperServCore::OnBotPrivmsg(), ChanServCore::OnBotPrivmsg(), NSRecoverRequest::OnFail(), and RunCommand().

#define BAD_EXPIRY_TIME   _("Invalid expiry time.")
#define BAD_USERHOST_MASK   _("Mask must be in the form \037user\037@\037host\037.")

Definition at line 68 of file language.h.

Referenced by CommandNSAccess::Execute().

#define BOT_ASSIGN_READONLY   _("Sorry, bot assignment is temporarily disabled.")

Definition at line 136 of file language.h.

Referenced by CommandBSUnassign::Execute(), and CommandBSAssign::Execute().

#define BOT_DOES_NOT_EXIST   _("Bot \002%s\002 does not exist.")
#define BOT_NOT_ASSIGNED   _("You must assign a bot to the channel before using this command.")
#define BOT_NOT_ON_CHANNEL   _("Bot is not on channel \002%s\002.")

Definition at line 135 of file language.h.

Referenced by CommandBSAct::Execute(), and CommandBSSay::Execute().

#define CHAN_ACCESS_LEVEL_RANGE   _("Access level must be between %d and %d inclusive.")

Definition at line 120 of file language.h.

Referenced by CommandCSAccess::DoAdd().

#define CHAN_EXCEEDED_CHANNEL_LIMIT   _("Sorry, you have already exceeded your limit of \002%d\002 channels.")

Definition at line 114 of file language.h.

Referenced by CommandCSRegister::Execute().

#define CHAN_EXCEPTED   _("\002%s\002 matches an except on %s and cannot be banned until the except have been removed.")

Definition at line 122 of file language.h.

Referenced by CommandCSAKick::DoAdd(), and CommandCSBan::Execute().

#define CHAN_INFO_HEADER   _("Information for channel \002%s\002:")

Definition at line 121 of file language.h.

Referenced by CommandCSInfo::Execute(), and CommandBSInfo::Execute().

#define CHAN_NOT_ALLOWED_TO_JOIN   _("You are not permitted to be on this channel.")

Definition at line 111 of file language.h.

#define CHAN_REACHED_CHANNEL_LIMIT   _("Sorry, you have already reached your limit of \002%d\002 channels.")

Definition at line 113 of file language.h.

Referenced by CommandCSRegister::Execute().

#define CHAN_SET_DISABLED   _("Sorry, channel option setting is temporarily disabled.")

Definition at line 116 of file language.h.

#define CHAN_SET_MLOCK_DEPRECATED   _("MLOCK is deprecated. Use \002%s%s HELP MODE\002 instead.")

Definition at line 119 of file language.h.

#define CHAN_SETTING_CHANGED   _("%s for %s set to %s.")

Definition at line 117 of file language.h.

Referenced by CommandCSSetMisc::Execute(), and CommandNSSetMisc::Run().

#define CHAN_SETTING_UNSET   _("%s for %s unset.")

Definition at line 118 of file language.h.

Referenced by CommandCSSetMisc::Execute(), and CommandNSSetMisc::Run().

#define CHAN_SYMBOL_REQUIRED   _("Please use the symbol of \002#\002 when attempting to register")

Definition at line 115 of file language.h.

Referenced by CommandCSRegister::Execute().

#define CHAN_X_INVALID   _("Channel %s is not a valid channel.")
#define CHAN_X_NOT_IN_USE   _("Channel \002%s\002 doesn't exist.")
#define CHAN_X_NOT_REGISTERED   _("Channel \002%s\002 isn't registered.")

Definition at line 84 of file language.h.

Referenced by CommandMSSet::DoLimit(), XOPBase::DoXop(), CommandMSRead::Execute(), CommandMSList::Execute(), CommandMSInfo::Execute(), CommandMSIgnore::Execute(), CommandMSDel::Execute(), CommandMSCancel::Execute(), CommandCSDown::Execute(), CommandCSUp::Execute(), CommandCSUnban::Execute(), CommandCSTopic::Execute(), CommandCSSync::Execute(), CommandCSUnSuspend::Execute(), CommandCSSuspend::Execute(), CommandCSStatus::Execute(), CommandCSSetMisc::Execute(), CommandCSSASetNoexpire::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetSignKick::Execute(), CommandCSSetSecureOps::Execute(), CommandCSSetSecureFounder::Execute(), CommandCSSetSecure::Execute(), CommandCSSetRestricted::Execute(), CommandCSSetPrivate::Execute(), CommandCSSetPersist::Execute(), CommandCSSetPeace::Execute(), CommandCSSetKeepTopic::Execute(), CommandCSSetFounder::Execute(), CommandCSSetDescription::Execute(), CommandCSSetChanstats::Execute(), CommandCSSetBanType::Execute(), CommandCSSetAutoOp::Execute(), CommandCSLog::Execute(), CommandCSKick::Execute(), CommandCSInvite::Execute(), CommandCSInfo::Execute(), CommandCSGetKey::Execute(), CommandCSFlags::Execute(), CommandEntryMessage::Execute(), CommandCSEnforce::Execute(), CommandCSDrop::Execute(), CommandCSClone::Execute(), CommandCSBan::Execute(), CommandCSAKick::Execute(), CommandCSLevels::Execute(), CommandCSAccess::Execute(), CommandBSSetNoBot::Execute(), CommandBSSetGreet::Execute(), CommandBSSetFantasy::Execute(), CommandBSSetDontKickVoices::Execute(), CommandBSSetDontKickOps::Execute(), CommandBSKick::Execute(), CommandBSAct::Execute(), CommandBSSay::Execute(), CommandBSBadwords::Execute(), CommandBSUnassign::Execute(), and CommandBSAssign::Execute().

#define CHAN_X_SUSPENDED   _("Channel %s is currently suspended.")

Definition at line 83 of file language.h.

Referenced by CommandCSDrop::Execute().

#define FORCENICKCHANGE_NOW   _("This nickname has been registered; you may not use it.")

Definition at line 99 of file language.h.

Referenced by MyNickServService::Validate().

#define HOST_NO_VIDENT   _("Your IRCD does not support vIdent's, if this is incorrect, please report this as a possible bug")
#define HOST_NOT_ASSIGNED   _("Please contact an Operator to get a vhost assigned to this nick.")
#define HOST_SET_ERROR   _("A vhost must be in the format of a valid hostmask.")
#define HOST_SET_IDENT_ERROR   _("A vhost ident must be in the format of a valid ident")
#define HOST_SET_IDENTTOOLONG   _("Error! The Ident is too long, please use an ident shorter than %d characters.")

Definition at line 140 of file language.h.

Referenced by CommandHSRequest::Execute().

#define HOST_SET_TOOLONG   _("Error! The vhost is too long, please use a host shorter than %d characters.")
#define LIST_INCORRECT_RANGE   _("Incorrect range specified. The correct syntax is \002#\037from\037-\037to\037\002.")
#define MAIL_X_INVALID   _("\002%s\002 is not a valid e-mail address.")

Definition at line 87 of file language.h.

Referenced by CommandNSRegister::Execute(), and CommandNSSetEmail::Run().

#define MEMO_HAVE_NO_MEMOS   _("You have no memos.")
#define MEMO_HAVE_NO_NEW_MEMOS   _("You have no new memos.")

Definition at line 131 of file language.h.

Referenced by CommandMSRead::Execute(), and CommandMSList::Execute().

#define MEMO_NEW_MEMO_ARRIVED
Value:
_("You have a new memo from %s.\n" \
                                                "Type \002%s%s READ %d\002 to read it.")

Definition at line 125 of file language.h.

Referenced by MyMemoServService::Send().

#define MEMO_NEW_X_MEMO_ARRIVED
Value:
_("There is a new memo on channel %s.\n" \
                                                "Type \002%s%s READ %s %d\002 to read it.")

Definition at line 123 of file language.h.

Referenced by MyMemoServService::Send().

#define MEMO_SEND_DISABLED   _("Sorry, memo sending is temporarily disabled.")

Definition at line 130 of file language.h.

Referenced by CommandMSStaff::Execute(), and CommandMSSendAll::Execute().

#define MEMO_SEND_SYNTAX   _("SEND {\037nick\037 | \037channel\037} \037memo-text\037")

Definition at line 129 of file language.h.

#define MEMO_X_HAS_NO_MEMOS   _("%s has no memos.")
#define MEMO_X_HAS_NO_NEW_MEMOS   _("%s has no new memos.")

Definition at line 132 of file language.h.

Referenced by CommandMSRead::Execute(), and CommandMSList::Execute().

#define MORE_INFO   _("\002%s%s HELP %s\002 for more information.")
#define MORE_OBSCURE_PASSWORD
Value:
_("Please try again with a more obscure password. Passwords should be at least\n" \
                                                "five characters long, should not be something easily guessed\n" \
                                                "(e.g. your real name or your nick), and cannot contain the space or tab characters.")

Definition at line 74 of file language.h.

Referenced by CommandNSSASetPassword::Execute(), CommandNSSetPassword::Execute(), and CommandNSRegister::Execute().

#define NICK_ALREADY_REGISTERED   _("Nickname \002%s\002 is already registered!")
#define NICK_CANNOT_BE_REGISTERED   _("Nickname \002%s\002 may not be registered.")
#define NICK_CONFIRM_INVALID   _("Invalid passcode has been entered, please check the e-mail again, and retry")

Definition at line 110 of file language.h.

Referenced by CommandNSConfirm::OnSyntaxError().

#define NICK_IDENTIFY_REQUIRED   _("Password authentication required for that command.")

Definition at line 86 of file language.h.

Referenced by CommandNSGroup::Execute(), and RunCommand().

#define NICK_IS_REGISTERED
Value:
_("This nick is owned by someone else.  Please choose another.\n" \
                                                "(If this is your nick, type \002%s%s IDENTIFY \037password\037\002.)")

Definition at line 94 of file language.h.

Referenced by MyNickServService::Validate().

#define NICK_IS_SECURE
Value:
_("This nickname is registered and protected.  If it is your\n" \
                                                "nick, type \002%s%s IDENTIFY \037password\037\002.  Otherwise,\n" \
                                                "please choose a different nick.")

Definition at line 96 of file language.h.

Referenced by MyNickServService::Validate().

#define NICK_LIST_SYNTAX   _("LIST \037pattern\037")

Definition at line 106 of file language.h.

#define NICK_NOT_REGISTERED   _("Your nick isn't registered.")

Definition at line 78 of file language.h.

Referenced by CommandNSResend::Execute(), and CommandNSDrop::Execute().

#define NICK_RECOVERED
Value:
_("User claiming your nick has been killed.\n" \
                                                "\002%s%s RELEASE %s\002 to get it back before %s timeout.")

Definition at line 107 of file language.h.

#define NICK_REQUESTED   _("This nick has already been requested, please check your e-mail address for the pass code")

Definition at line 109 of file language.h.

#define NICK_SET_DISABLED   _("Sorry, nickname option setting is temporarily disabled.")

Definition at line 103 of file language.h.

#define NICK_SET_DISPLAY_CHANGED   _("The new display is now \002%s\002.")

Definition at line 105 of file language.h.

Referenced by CommandNSSetDisplay::Run().

#define NICK_SET_SYNTAX   _("SET \037option\037 \037parameters\037")

Definition at line 102 of file language.h.

#define NICK_SET_UNKNOWN_OPTION   _("Unknown SET option \002%s%s\002.")

Definition at line 104 of file language.h.

#define NICK_X_NOT_IN_USE   _("Nick \002%s\002 isn't currently in use.")
#define NICK_X_NOT_ON_CHAN   _("\002%s\002 is not currently on channel %s.")

Definition at line 81 of file language.h.

Referenced by CommandCSKick::Execute().

#define NICK_X_NOT_REGISTERED   _("Nick \002%s\002 isn't registered.")
#define NICK_X_SUSPENDED   _("Nick %s is currently suspended.")
#define NO_EXPIRE   _("does not expire")

Definition at line 90 of file language.h.

Referenced by Anope::Expires().

#define NO_REASON   _("No reason")

Definition at line 88 of file language.h.

#define PASSWORD_INCORRECT   _("Password incorrect.")
#define PASSWORD_TOO_LONG   _("Your password is too long. Please try again with a shorter password.")
#define READ_ONLY_MODE   _("Services are in read-only mode!")
#define UNKNOWN   _("<unknown>")

Definition at line 89 of file language.h.

#define UNKNOWN_OPTION
Value:
_("Unknown option \002%s\002.\n" \
                                                "Type %s%s HELP %s for more information.")

Definition at line 92 of file language.h.

#define USERHOST_MASK_TOO_WIDE   _("%s coverage is too wide; Please use a more specific mask.")