Modifications to chat and msgs to allow wchar_t messages

(support for multiple languages)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@317 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-01-26 13:00:57 +00:00
parent c4e1d73837
commit bfb0b2be2b
13 changed files with 228 additions and 90 deletions

View file

@ -67,7 +67,7 @@ int p3ChatService::status()
/***************** Chat Stuff **********************/
int p3ChatService::sendChat(std::string msg)
int p3ChatService::sendChat(std::wstring msg)
{
/* go through all the peers */
@ -103,7 +103,7 @@ int p3ChatService::sendChat(std::string msg)
return 1;
}
int p3ChatService::sendPrivateChat(std::string msg, std::string id)
int p3ChatService::sendPrivateChat(std::wstring msg, std::string id)
{
// make chat item....
pqioutput(PQL_DEBUG_BASIC, p3chatzone,

View file

@ -49,8 +49,8 @@ class p3ChatService: public p3Service
virtual int tick();
virtual int status();
int sendChat(std::string msg);
int sendPrivateChat(std::string msg, std::string id);
int sendChat(std::wstring msg);
int sendPrivateChat(std::wstring msg, std::string id);
std::list<RsChatItem *> getChatQueue();

View file

@ -352,18 +352,18 @@ void p3MsgService::loadWelcomeMsg()
msg -> sendTime = 0;
msg -> subject = "Welcome to Retroshare";
msg -> subject = L"Welcome to Retroshare";
msg -> message = "Send and receive messages\n";
msg -> message += "with your friends...\n\n";
msg -> message = L"Send and receive messages\n";
msg -> message += L"with your friends...\n\n";
msg -> message += "These can hold recommendations\n";
msg -> message += "from your local shared files\n\n";
msg -> message += L"These can hold recommendations\n";
msg -> message += L"from your local shared files\n\n";
msg -> message += "Add recommendations through\n";
msg -> message += "the Local Files Dialog\n\n";
msg -> message += L"Add recommendations through\n";
msg -> message += L"the Local Files Dialog\n\n";
msg -> message += "Enjoy.\n";
msg -> message += L"Enjoy.\n";
imsg.push_back(msg);
}