patch from costa to add a spanish intro server

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5031 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-03-17 15:34:03 +00:00
parent c9f99c0be9
commit ded4174a13
2 changed files with 13 additions and 3 deletions

View File

@ -130,11 +130,19 @@ int RsIntroServer::setupChatLobbies(std::string &genericLobbyName)
std::string englishLobbyName = LOBBY_BASENAME;
std::string germanLobbyName = LOBBY_BASENAME;
std::string frenchLobbyName = LOBBY_BASENAME;
std::string spanishLobbyName = LOBBY_BASENAME;
std::string englishLobbyTopic = "Welcome!";
std::string germanLobbyTopic = "Willkommen !";
std::string frenchLobbyTopic = "Bienvenue !";
std::string spanishLobbyTopic = "Bienvenido !";
genericLobbyName += " " + trimmedstr;
englishLobbyName += " (EN) " + trimmedstr;
germanLobbyName += " (DE) " + trimmedstr;
frenchLobbyName += " (FR) " + trimmedstr;
spanishLobbyName += " (ES) " + trimmedstr;
std::string englishTopic = "Connect to this lobby to meet new friends" ;
std::string frenchTopic = "Connectez vous a ce lobby pour rencontrer de nouveaux amis" ;
@ -143,9 +151,10 @@ int RsIntroServer::setupChatLobbies(std::string &genericLobbyName)
std::list<std::string> emptyList;
uint32_t lobby_privacy_type = RS_CHAT_LOBBY_PRIVACY_LEVEL_PUBLIC;
mEnglishLobby = rsMsgs->createChatLobby(englishLobbyName,englishTopic, emptyList, lobby_privacy_type);
mFrenchLobby = rsMsgs->createChatLobby(frenchLobbyName,frenchTopic, emptyList, lobby_privacy_type);
mGermanLobby = rsMsgs->createChatLobby(germanLobbyName,germanTopic, emptyList, lobby_privacy_type);
mEnglishLobby = rsMsgs->createChatLobby(englishLobbyName, englishLobbyTopic, emptyList, lobby_privacy_type);
mFrenchLobby = rsMsgs->createChatLobby(frenchLobbyName, frenchLobbyTopic, emptyList, lobby_privacy_type);
mGermanLobby = rsMsgs->createChatLobby(germanLobbyName, germanLobbyTopic, emptyList, lobby_privacy_type);
mSpanishLobby = rsMsgs->createChatLobby(spanishLobbyName, spanishLobbyTopic, emptyList, lobby_privacy_type);
return 1;
}

View File

@ -68,6 +68,7 @@ int mMaxPeerAge;
ChatLobbyId mEnglishLobby;
ChatLobbyId mFrenchLobby;
ChatLobbyId mGermanLobby;
ChatLobbyId mSpanishLobby;
};