mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
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:
parent
c4e1d73837
commit
bfb0b2be2b
13 changed files with 228 additions and 90 deletions
|
@ -152,8 +152,10 @@ void NotifyTxt::displayMessages()
|
|||
for(it = msgs.begin(); it != msgs.end(); it++)
|
||||
{
|
||||
out << "Message: ";
|
||||
out << it->title << std::endl;
|
||||
out << "\t" << it->msg << std::endl;
|
||||
std::string cnv_title(it->title.begin(), it->title.end());
|
||||
out << cnv_title << std::endl;
|
||||
std::string cnv_msg(it->msg.begin(), it->msg.end());
|
||||
out << "\t" << cnv_msg << std::endl;
|
||||
const std::list<FileInfo> &files = it -> files;
|
||||
for(fit = files.begin(), i = 1; fit != files.end(); fit++, i++)
|
||||
{
|
||||
|
|
|
@ -187,11 +187,11 @@ class MessageInfo: public BaseInfo
|
|||
std::list<PersonInfo> msgcc;
|
||||
std::list<PersonInfo> msgbcc;
|
||||
|
||||
std::string title;
|
||||
std::string msg;
|
||||
std::wstring title;
|
||||
std::wstring msg;
|
||||
|
||||
std::string attach_title;
|
||||
std::string attach_comment;
|
||||
std::wstring attach_title;
|
||||
std::wstring attach_comment;
|
||||
std::list<FileInfo> files;
|
||||
int size; /* total of files */
|
||||
int count; /* file count */
|
||||
|
@ -228,7 +228,7 @@ class ChatInfo: public BaseInfo
|
|||
std::string rsid;
|
||||
unsigned int chatflags;
|
||||
std::string name;
|
||||
std::string msg;
|
||||
std::wstring msg;
|
||||
};
|
||||
|
||||
/* matched to the uPnP states */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue