~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/discovery/CBroadcastServer.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-28 16:17:15 UTC
  • Revision ID: admin@quickmediasolutions.com-20120628161715-hot2y9wx30m0ezw9
Added tr() where appropriate to facilitate translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    if(!Network::FindIPv4Address(Network::GetCurrentInterface(), Network::BroadcastAddress, &m_broadcast_address))
43
43
    {
44
44
        if(Settings::Notify("Error"))
45
 
            emit Message("Unable to find an IPv4 broadcast address for the current interface.", QSystemTrayIcon::Critical);
 
45
            emit Message(tr("Unable to find an IPv4 broadcast address for the current interface."), QSystemTrayIcon::Critical);
46
46
 
47
47
        return;
48
48
    }
50
50
    if(!bind(Settings::Get("Network/BroadcastPort").toUInt(), QUdpSocket::ShareAddress))
51
51
    {
52
52
        if(Settings::Notify("Error"))
53
 
            emit Message("Unable to listen for broadcast notifications.", QSystemTrayIcon::Critical);
 
53
            emit Message(tr("Unable to listen for broadcast notifications."), QSystemTrayIcon::Critical);
54
54
 
55
55
        return;
56
56
    }