# HG changeset patch # User Chris Cannam # Date 1308904111 -3600 # Node ID 6a9756700fd12ffcb1679009d8b6396335a6cd35 # Parent a47eac9c7feab3c433419930b37789b92be69895 Compile fix, plural fix diff -r a47eac9c7fea -r 6a9756700fd1 src/mainwindow.cpp --- a/src/mainwindow.cpp Thu Jun 23 21:04:25 2011 +0100 +++ b/src/mainwindow.cpp Fri Jun 24 09:28:31 2011 +0100 @@ -637,7 +637,7 @@ } QString directory; - bool dirCount = 0; + int dirCount = 0; foreach (QString file, files) { QString d = QFileInfo(file).path(); if (d != directory) { @@ -1254,10 +1254,16 @@ //!!! should find available port as well QTextStream ts(&msg); - ts << QString("

%1

%2

%3

") + ts << QString("

%1

%2

") .arg(tr("Sharing Repository")) - .arg(tr("Your local repository is now being made temporarily available via HTTP for workgroup access.")) - .arg(tr("Users who have network access to your computer can now clone your repository by using the following URL as a remote location:")); + .arg(tr("Your local repository is now being made temporarily available via HTTP for workgroup access.")); + if (addrs.size() > 1) { + ts << QString("

%3

") + .arg(tr("Users who have network access to your computer can now clone your repository, by using one of the following URLs as a remote location:")); + } else { + ts << QString("

%3

") + .arg(tr("Users who have network access to your computer can now clone your repository, by using the following URL as a remote location:")); + } foreach (QString addr, addrs) { ts << QString("
  http://%1:8000
").arg(xmlEncode(addr)); }