first release of translation facility
* runtime - loading and translating * design-time - works with *.ts file (pip_tr utility) * compile-time - CMake macro for compile *.ts
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "piclientserver_client.h"
|
||||
#include "piethernet.h"
|
||||
#include "piliterals_time.h"
|
||||
#include "pitranslator.h"
|
||||
|
||||
|
||||
PIClientServer::Server::Server() {
|
||||
@@ -30,13 +30,13 @@ PIClientServer::Server::Server() {
|
||||
CONNECTL(tcp_server, newConnection, [this](PIEthernet * c) {
|
||||
PIMutexLocker guard(clients_mutex);
|
||||
if (clients.size_s() >= max_clients) {
|
||||
piCout << "Server::newConnection overflow clients count";
|
||||
piCout << "Server::newConnection overflow clients count"_tr("PIClientServer");
|
||||
delete c;
|
||||
return;
|
||||
}
|
||||
auto sc = client_factory();
|
||||
if (!sc) {
|
||||
piCout << "ClientFactory returns nullptr!";
|
||||
piCout << "ClientFactory returns nullptr!"_tr("PIClientServer");
|
||||
return;
|
||||
}
|
||||
sc->createForServer(this, c);
|
||||
|
||||
Reference in New Issue
Block a user