~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/widgets/guildchattab.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "debug.h"
38
38
 
39
39
GuildChatTab::GuildChatTab(const Widget2 *const widget) :
 
40
    // TRANSLATORS: guild chat tab name
40
41
    ChatTab(widget, _("Guild"), "")
41
42
{
42
43
    setTabColor(&getThemeColor(Theme::GUILD_CHAT_TAB),
61
62
    {
62
63
        if (args == "invite")
63
64
        {
 
65
            // TRANSLATORS: guild chat tab help
64
66
            chatLog(_("Command: /invite <nick>"));
 
67
            // TRANSLATORS: guild chat tab help
65
68
            chatLog(_("This command invites <nick> to the guild you're in."));
 
69
            // TRANSLATORS: guild chat tab help
66
70
            chatLog(_("If the <nick> has spaces in it, enclose it in "
67
71
                            "double quotes (\")."));
68
72
        }
69
73
        else if (args == "leave")
70
74
        {
 
75
            // TRANSLATORS: guild chat tab help
71
76
            chatLog(_("Command: /leave"));
 
77
            // TRANSLATORS: guild chat tab help
72
78
            chatLog(_("This command causes the player to leave the guild."));
73
79
        }
74
80
        else
 
81
        {
75
82
            return false;
 
83
        }
76
84
    }
77
85
    else if (type == "invite" && guildManager)
78
86
    {
111
119
 
112
120
void GuildChatTab::showHelp()
113
121
{
 
122
    // TRANSLATORS: guild chat tab help
114
123
    chatLog(_("/help > Display this help."));
 
124
    // TRANSLATORS: guild chat tab help
115
125
    chatLog(_("/invite > Invite a player to your guild"));
 
126
    // TRANSLATORS: guild chat tab help
116
127
    chatLog(_("/leave > Leave the guild you are in"));
 
128
    // TRANSLATORS: guild chat tab help
117
129
    chatLog(_("/kick > Kick some one from the guild you are in"));
118
130
}
119
131