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

« back to all changes in this revision

Viewing changes to src/net/ea/network.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:
96
96
 
97
97
    if (server.hostname.empty())
98
98
    {
 
99
        // TRANSLATORS: error message
99
100
        setError(_("Empty address given to Network::connect()!"));
100
101
        return false;
101
102
    }
190
191
        mServer.port) == -1)
191
192
    {
192
193
        const std::string errorMessage = std::string(
 
194
            // TRANSLATORS: error message
193
195
            _("Unable to resolve host \"")).append(
194
196
            mServer.hostname).append("\"");
195
197
        setError(errorMessage);
265
267
                }
266
268
                else if (ret < 0)
267
269
                {
 
270
                    // TRANSLATORS: error message
268
271
                    setError(_("Connection to server terminated. ") +
269
272
                             std::string(TcpNet::getError()));
270
273
                }