summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/chat/colorchooser.cpp4
-rw-r--r--plugins/TabSRMM/chat/log.cpp26
-rw-r--r--plugins/TabSRMM/chat/muchighlight.cpp4
-rw-r--r--plugins/TabSRMM/chat/options.cpp58
-rw-r--r--plugins/TabSRMM/chat/tools.cpp94
-rw-r--r--plugins/TabSRMM/chat/window.cpp32
-rw-r--r--plugins/TabSRMM/include/translator.h456
-rw-r--r--plugins/TabSRMM/src/container.cpp22
-rw-r--r--plugins/TabSRMM/src/containeroptions.cpp57
-rw-r--r--plugins/TabSRMM/src/controls.cpp26
-rw-r--r--plugins/TabSRMM/src/eventpopups.cpp22
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp24
-rw-r--r--plugins/TabSRMM/src/globals.cpp10
-rw-r--r--plugins/TabSRMM/src/infopanel.cpp62
-rw-r--r--plugins/TabSRMM/src/mim.cpp6
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp60
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp20
-rw-r--r--plugins/TabSRMM/src/msglog.cpp32
-rw-r--r--plugins/TabSRMM/src/msgoptions.cpp58
-rw-r--r--plugins/TabSRMM/src/selectcontainer.cpp22
-rw-r--r--plugins/TabSRMM/src/sendlater.cpp32
-rw-r--r--plugins/TabSRMM/src/sendqueue.cpp20
-rw-r--r--plugins/TabSRMM/src/srmm.cpp2
-rw-r--r--plugins/TabSRMM/src/taskbar.cpp20
-rw-r--r--plugins/TabSRMM/src/templates.cpp10
-rw-r--r--plugins/TabSRMM/src/themes.cpp4
-rw-r--r--plugins/TabSRMM/src/translator.cpp507
-rw-r--r--plugins/TabSRMM/src/trayicon.cpp4
-rw-r--r--plugins/TabSRMM/src/typingnotify.cpp12
-rw-r--r--plugins/TabSRMM/src/userprefs.cpp34
-rw-r--r--plugins/TabSRMM/src/utils.cpp46
-rw-r--r--plugins/TabSRMM/tabmodplus/modplus.cpp6
32 files changed, 457 insertions, 1335 deletions
diff --git a/plugins/TabSRMM/chat/colorchooser.cpp b/plugins/TabSRMM/chat/colorchooser.cpp
index 4879f56d95..a618dafa5b 100644
--- a/plugins/TabSRMM/chat/colorchooser.cpp
+++ b/plugins/TabSRMM/chat/colorchooser.cpp
@@ -110,8 +110,8 @@ INT_PTR CALLBACK DlgProcColorToolWindow(HWND hwndDlg, UINT msg, WPARAM wParam, L
pCC->yPosition -= height;
- SetDlgItemText(hwndDlg, IDC_COLORTEXT, pCC->bForeground ? CTranslator::get(CTranslator::GEN_MUC_TEXTCOLOR) :
- CTranslator::get(CTranslator::GEN_MUC_BGCOLOR));
+ SetDlgItemText(hwndDlg, IDC_COLORTEXT, pCC->bForeground ? TranslateT("Text color") :
+ TranslateT("Background color"));
SetWindowPos(GetDlgItem(hwndDlg, IDC_COLORTEXT), NULL, 0, 0, width, 20, 0);
SetWindowPos(hwndDlg, NULL, pCC->xPosition, pCC->yPosition, width, height, SWP_SHOWWINDOW);
}
diff --git a/plugins/TabSRMM/chat/log.cpp b/plugins/TabSRMM/chat/log.cpp
index 7c167441d0..a297c9b006 100644
--- a/plugins/TabSRMM/chat/log.cpp
+++ b/plugins/TabSRMM/chat/log.cpp
@@ -692,52 +692,52 @@ static void AddEventToBuffer(char **buffer, int *bufferEnd, int *bufferAlloced,
if (pszNick) {
if (!streamData->lin->bIsMe)
/* replace nick of a newcomer with a link */
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_JOINED), pszNick);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("%s has joined"), pszNick);
else
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_ME_JOINED), streamData->si->ptszName);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("You have joined %s"), streamData->si->ptszName);
}
break;
case GC_EVENT_PART:
if (pszNick)
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_LEFT), pszNick);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("%s has left"), pszNick);
if (streamData->lin->ptszText)
Log_AppendRTF(streamData, FALSE, buffer, bufferEnd, bufferAlloced, _T(": %s"), streamData->lin->ptszText);
break;
case GC_EVENT_QUIT:
if (pszNick)
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_DISC), pszNick);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("%s has disconnected"), pszNick);
if (streamData->lin->ptszText)
Log_AppendRTF(streamData, FALSE, buffer, bufferEnd, bufferAlloced, _T(": %s"), streamData->lin->ptszText);
break;
case GC_EVENT_NICK:
if (pszNick && streamData->lin->ptszText) {
if (!streamData->lin->bIsMe)
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_NICKCHANGE), pszNick, streamData->lin->ptszText);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("%s is now known as %s"), pszNick, streamData->lin->ptszText);
else
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_ME_NICKCHANGE), streamData->lin->ptszText);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("You are now known as %s"), streamData->lin->ptszText);
}
break;
case GC_EVENT_KICK:
if (pszNick && streamData->lin->ptszStatus)
Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced,
- CTranslator::get(CTranslator::MUC_LOG_KICK), streamData->lin->ptszStatus, pszNick);
+ TranslateT("%s kicked %s"), streamData->lin->ptszStatus, pszNick);
if (streamData->lin->ptszText)
Log_AppendRTF(streamData, FALSE, buffer, bufferEnd, bufferAlloced, _T(": %s"), streamData->lin->ptszText);
break;
case GC_EVENT_NOTICE:
if (pszNick && streamData->lin->ptszText) {
- Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_NOTICE), pszNick);
+ Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced, TranslateT("Notice from %s: "), pszNick);
Log_AppendRTF(streamData, FALSE, buffer, bufferEnd, bufferAlloced, _T("%s"), streamData->lin->ptszText);
}
break;
case GC_EVENT_TOPIC:
if (streamData->lin->ptszText)
- Log_AppendRTF(streamData, FALSE, buffer, bufferEnd, bufferAlloced, CTranslator::get(CTranslator::MUC_LOG_TOPICIS), streamData->lin->ptszText, _T("%r"));
+ Log_AppendRTF(streamData, FALSE, buffer, bufferEnd, bufferAlloced, TranslateT("The topic is \'%s%s\'"), streamData->lin->ptszText, _T("%r"));
if (pszNick)
Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced,
- (streamData->lin->ptszUserInfo) ? CTranslator::get(CTranslator::MUC_LOG_TOPICSETBYON) :
- CTranslator::get(CTranslator::MUC_LOG_TOPICSETBY),
+ (streamData->lin->ptszUserInfo) ? TranslateT(" (set by %s on %s)") :
+ TranslateT(" (set by %s)"),
pszNick, streamData->lin->ptszUserInfo);
break;
case GC_EVENT_INFORMATION:
@@ -747,13 +747,13 @@ static void AddEventToBuffer(char **buffer, int *bufferEnd, int *bufferAlloced,
case GC_EVENT_ADDSTATUS:
if (pszNick && streamData->lin->ptszText && streamData->lin->ptszStatus)
Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced,
- CTranslator::get(CTranslator::MUC_LOG_STATUSENABLE),
+ TranslateT("%s enables \'%s\' status for %s"),
streamData->lin->ptszText, streamData->lin->ptszStatus, pszNick);
break;
case GC_EVENT_REMOVESTATUS:
if (pszNick && streamData->lin->ptszText && streamData->lin->ptszStatus) {
Log_AppendRTF(streamData, TRUE, buffer, bufferEnd, bufferAlloced,
- CTranslator::get(CTranslator::MUC_LOG_STATUSDISABLE),
+ TranslateT("%s disables \'%s\' status for %s"),
streamData->lin->ptszText , streamData->lin->ptszStatus, pszNick);
}
break;
diff --git a/plugins/TabSRMM/chat/muchighlight.cpp b/plugins/TabSRMM/chat/muchighlight.cpp
index 80709d863a..806a8544e8 100644
--- a/plugins/TabSRMM/chat/muchighlight.cpp
+++ b/plugins/TabSRMM/chat/muchighlight.cpp
@@ -386,14 +386,14 @@ INT_PTR CALLBACK CMUCHighlight::dlgProcAdd(HWND hwndDlg, UINT msg, WPARAM wParam
::SendDlgItemMessage(hwndDlg, IDC_ADDHIGHLIGHTTITLE, WM_SETFONT, (WPARAM)hFont, FALSE);
if(the->uCmd == THighLightEdit::CMD_ADD) {
Utils::showDlgControl(hwndDlg, IDC_ADDHIGHLIGHTEDITLIST, SW_HIDE);
- ::SetDlgItemTextW(hwndDlg, IDC_ADDHIGHLIGHTTITLE, CTranslator::get(CTranslator::GEN_MUC_HIGHLIGHT_ADD));
+ ::SetDlgItemTextW(hwndDlg, IDC_ADDHIGHLIGHTTITLE, TranslateT("Add user to highlight list"));
::SendDlgItemMessageW(hwndDlg, IDC_ADDHIGHLIGHTNAME, CB_INSERTSTRING, -1, (LPARAM)the->ui->pszNick);
::SendDlgItemMessageW(hwndDlg, IDC_ADDHIGHLIGHTNAME, CB_INSERTSTRING, -1, (LPARAM)the->ui->pszUID);
::SendDlgItemMessageW(hwndDlg, IDC_ADDHIGHLIGHTNAME, CB_SETCURSEL, 1, 0);
} else {
Utils::showDlgControl(hwndDlg, IDC_ADDHIGHLIGHTNAME, SW_HIDE);
Utils::showDlgControl(hwndDlg, IDC_ADDHIGHLIGHTEXPLAIN, SW_HIDE);
- ::SetDlgItemTextW(hwndDlg, IDC_ADDHIGHLIGHTTITLE, CTranslator::get(CTranslator::GEN_MUC_HIGHLIGHT_EDIT));
+ ::SetDlgItemTextW(hwndDlg, IDC_ADDHIGHLIGHTTITLE, TranslateT("Edit user highlight list"));
}
break;
}
diff --git a/plugins/TabSRMM/chat/options.cpp b/plugins/TabSRMM/chat/options.cpp
index d50ed5ecbb..a00a87161b 100644
--- a/plugins/TabSRMM/chat/options.cpp
+++ b/plugins/TabSRMM/chat/options.cpp
@@ -561,8 +561,8 @@ INT_PTR CALLBACK DlgProcOptions1(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
himlOptions = (HIMAGELIST)SendDlgItemMessage(hwndDlg, IDC_CHECKBOXES, TVM_SETIMAGELIST, TVSIL_STATE, (LPARAM)CreateStateImageList());
ImageList_Destroy(himlOptions);
- hListHeading1 = InsertBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_MUC_OPTHEADER1)), TRUE);
- hListHeading2 = InsertBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_MUC_OPTHEADER2)), TRUE);
+ hListHeading1 = InsertBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), TranslateT("Appearance and functionality of chat room windows"), TRUE);
+ hListHeading2 = InsertBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), TranslateT("Appearance of the message log"), TRUE);
FillBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), hListHeading1, branch1, SIZEOF(branch1), 0x0000);
FillBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), hListHeading2, branch2, SIZEOF(branch2), 0x0000);
@@ -956,31 +956,31 @@ INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
_T("%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n\n")
_T("%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s\n%s - %s"),
// contact vars
- _T("%nick%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP1),
- _T("%proto%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP2),
- _T("%userid%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP3),
+ _T("%nick%"), TranslateT("nick of current contact (if defined)"),
+ _T("%proto%"), TranslateT("protocol name of current contact (if defined). Account name is used when protocol supports multiaccounts"),
+ _T("%userid%"), TranslateT("UserID of current contact (if defined). It is like UIN Number for ICQ, JID for Jabber, etc."),
// global vars
- _T("%miranda_path%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP4),
- _T("%miranda_profile%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP5),
- _T("%miranda_profilename%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP6),
- _T("%miranda_userdata%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP7),
- _T("%appdata%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP8),
- _T("%username%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP9),
- _T("%mydocuments%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP10),
- _T("%desktop%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP11),
- _T("%xxxxxxx%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP12),
+ _T("%miranda_path%"), TranslateT("path to root miranda folder"),
+ _T("%miranda_profile%"), TranslateT("path to current miranda profile"),
+ _T("%miranda_profilename%"), TranslateT("name of current miranda profile (filename, without extension)"),
+ _T("%miranda_userdata%"), TranslateT("will return parsed string %miranda_profile%\\Profiles\\%miranda_profilename%"),
+ _T("%appdata%"), TranslateT("same as environment variable %APPDATA% for currently logged-on Windows user"),
+ _T("%username%"), TranslateT("username for currently logged-on Windows user"),
+ _T("%mydocuments%"), TranslateT("\"My Documents\" folder for currently logged-on Windows user"),
+ _T("%desktop%"), TranslateT("\"Desktop\" folder for currently logged-on Windows user"),
+ _T("%xxxxxxx%"), TranslateT("any environment variable defined in current Windows session (like %systemroot%, %allusersprofile%, etc.)"),
// date/time vars
- _T("%d%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP13),
- _T("%dd%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP14),
- _T("%m%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP15),
- _T("%mm%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP16),
- _T("%mon%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP17),
- _T("%month%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP18),
- _T("%yy%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP19),
- _T("%yyyy%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP20),
- _T("%wday%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP21),
- _T("%weekday%"), CTranslator::getOpt(CTranslator::OPT_MUC_LOGTIP22));
- hPathTip = CreateToolTip(GetDlgItem(hwndDlg, IDC_LOGDIRECTORY), tszTooltipText, const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_MUC_VARIABLES)));
+ _T("%d%"), TranslateT("day of month, 1-31"),
+ _T("%dd%"), TranslateT("day of month, 01-31"),
+ _T("%m%"), TranslateT("month number, 1-12"),
+ _T("%mm%"), TranslateT("month number, 01-12"),
+ _T("%mon%"), TranslateT("abbreviated month name"),
+ _T("%month%"), TranslateT("full month name"),
+ _T("%yy%"), TranslateT("year without century, 01-99"),
+ _T("%yyyy%"), TranslateT("year with century, 1901-9999"),
+ _T("%wday%"), TranslateT("abbreviated weekday name"),
+ _T("%weekday%"), TranslateT("full weekday name"));
+ hPathTip = CreateToolTip(GetDlgItem(hwndDlg, IDC_LOGDIRECTORY), tszTooltipText, TranslateT("Variables"));
}
} else {
@@ -1061,7 +1061,7 @@ INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
TCHAR tszTemp[MAX_PATH];
bi.hwndOwner = hwndDlg;
bi.pszDisplayName = tszDirectory;
- bi.lpszTitle = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_MUC_SELECTFOLDER));
+ bi.lpszTitle = TranslateT("Select Folder");
bi.ulFlags = BIF_NEWDIALOGSTYLE | BIF_EDITBOX | BIF_RETURNONLYFSDIRS;
bi.lpfn = BrowseCallbackProc;
bi.lParam = (LPARAM)tszDirectory;
@@ -1258,9 +1258,9 @@ INT_PTR CALLBACK DlgProcOptions3(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
CheckDlgButton(hwndDlg, IDC_P1 + i, dwPopupFlags & _eventorder[i] ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_T1 + i, dwTrayFlags & _eventorder[i] ? BST_CHECKED : BST_UNCHECKED);
}
- SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_ADDSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_MUC_NOMARKERS));
- SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_ADDSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_MUC_ASICONS));
- SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_ADDSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_MUC_ASSYMBOLS));
+ SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_ADDSTRING, -1, (LPARAM)TranslateT("No markers"));
+ SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_ADDSTRING, -1, (LPARAM)TranslateT("Show as icons"));
+ SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_ADDSTRING, -1, (LPARAM)TranslateT("Show as text symbols"));
SendDlgItemMessage(hwndDlg, IDC_LOGICONTYPE, CB_SETCURSEL, (g_Settings.LogSymbols ? 2 : (g_Settings.dwIconFlags ? 1 : 0)), 0);
diff --git a/plugins/TabSRMM/chat/tools.cpp b/plugins/TabSRMM/chat/tools.cpp
index c7ad91cc4c..9e1c0e531d 100644
--- a/plugins/TabSRMM/chat/tools.cpp
+++ b/plugins/TabSRMM/chat/tools.cpp
@@ -248,55 +248,55 @@ static BOOL DoTrayIcon(SESSION_INFO* si, GCEVENT * gce)
case GC_EVENT_MESSAGE | GC_EVENT_HIGHLIGHT :
case GC_EVENT_ACTION | GC_EVENT_HIGHLIGHT :
CList_AddEvent(si->hContact, PluginConfig.g_IconMsgEvent, szChatIconString, 0,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_HILIGHT), gce->ptszNick, si->ptszName);
+ TranslateT("%s wants your attention in %s"), gce->ptszNick, si->ptszName);
break;
case GC_EVENT_MESSAGE :
CList_AddEvent(si->hContact, hIcons[ICON_MESSAGE], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_MSG), gce->ptszNick, si->ptszName);
+ TranslateT("%s speaks in %s"), gce->ptszNick, si->ptszName);
break;
case GC_EVENT_ACTION:
CList_AddEvent(si->hContact, hIcons[ICON_ACTION], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_MSG), gce->ptszNick, si->ptszName);
+ TranslateT("%s speaks in %s"), gce->ptszNick, si->ptszName);
break;
case GC_EVENT_JOIN:
CList_AddEvent(si->hContact, hIcons[ICON_JOIN], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_JOINED), gce->ptszNick, si->ptszName);
+ TranslateT("%s has joined %s"), gce->ptszNick, si->ptszName);
break;
case GC_EVENT_PART:
CList_AddEvent(si->hContact, hIcons[ICON_PART], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_LEFT), gce->ptszNick, si->ptszName);
+ TranslateT("%s has left %s"), gce->ptszNick, si->ptszName);
break;
case GC_EVENT_QUIT:
CList_AddEvent(si->hContact, hIcons[ICON_QUIT], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_QUIT), gce->ptszNick);
+ TranslateT("%s has disconnected"), gce->ptszNick);
break;
case GC_EVENT_NICK:
CList_AddEvent(si->hContact, hIcons[ICON_NICK], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_NICK), gce->ptszNick, gce->pszText);
+ TranslateT("%s is now known as %s"), gce->ptszNick, gce->pszText);
break;
case GC_EVENT_KICK:
CList_AddEvent(si->hContact, hIcons[ICON_KICK], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_KICK), gce->pszStatus, gce->ptszNick, si->ptszName);
+ TranslateT("%s kicked %s from %s"), gce->pszStatus, gce->ptszNick, si->ptszName);
break;
case GC_EVENT_NOTICE:
CList_AddEvent(si->hContact, hIcons[ICON_NOTICE], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_NOTICE), gce->ptszNick);
+ TranslateT("Notice from %s"), gce->ptszNick);
break;
case GC_EVENT_TOPIC:
CList_AddEvent(si->hContact, hIcons[ICON_TOPIC], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_TOPIC), si->ptszName);
+ TranslateT("Topic change in %s"), si->ptszName);
break;
case GC_EVENT_INFORMATION:
CList_AddEvent(si->hContact, hIcons[ICON_INFO], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_INFO), si->ptszName);
+ TranslateT("Information in %s"), si->ptszName);
break;
case GC_EVENT_ADDSTATUS:
CList_AddEvent(si->hContact, hIcons[ICON_ADDSTATUS], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_STATUS_ON), gce->pszText, gce->pszStatus, gce->ptszNick, si->ptszName);
+ TranslateT("%s enables \'%s\' status for %s in %s"), gce->pszText, gce->pszStatus, gce->ptszNick, si->ptszName);
break;
case GC_EVENT_REMOVESTATUS:
CList_AddEvent(si->hContact, hIcons[ICON_REMSTATUS], szChatIconString, CLEF_ONLYAFEW,
- CTranslator::get(CTranslator::GEN_MUC_TRAY_STATUS_OFF), gce->pszText, gce->pszStatus, gce->ptszNick, si->ptszName);
+ TranslateT("%s disables \'%s\' status for %s in %s"), gce->pszText, gce->pszStatus, gce->ptszNick, si->ptszName);
break;
}
}
@@ -371,65 +371,65 @@ passed:
switch (iNewEvent) {
case GC_EVENT_MESSAGE :
ShowPopup(si->hContact, si, hIcons[ICON_MESSAGE], si->pszModule, si->ptszName, clr ? clr : aFonts[9].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_MSG), bbStart, gce->ptszNick, bbEnd, RemoveFormatting(gce->ptszText));
+ TranslateT("%s%s says:%s %s"), bbStart, gce->ptszNick, bbEnd, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_ACTION:
ShowPopup(si->hContact, si, hIcons[ICON_ACTION], si->pszModule, si->ptszName, clr ? clr : aFonts[15].color, _T("%s %s"), gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_JOIN:
ShowPopup(si->hContact, si, hIcons[ICON_JOIN], si->pszModule, si->ptszName, clr ? clr : aFonts[3].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_JOINED), gce->ptszNick);
+ TranslateT("%s has joined"), gce->ptszNick);
break;
case GC_EVENT_PART:
if (!gce->pszText)
ShowPopup(si->hContact, si, hIcons[ICON_PART], si->pszModule, si->ptszName, clr ? clr : aFonts[4].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_LEFT), gce->ptszNick);
+ TranslateT("%s has left"), gce->ptszNick);
else
ShowPopup(si->hContact, si, hIcons[ICON_PART], si->pszModule, si->ptszName, clr ? clr : aFonts[4].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_LEFT1), gce->ptszNick, RemoveFormatting(gce->ptszText));
+ TranslateT("%s has left (%s)"), gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_QUIT:
if (!gce->pszText)
ShowPopup(si->hContact, si, hIcons[ICON_QUIT], si->pszModule, si->ptszName, clr ? clr : aFonts[5].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_QUIT), gce->ptszNick);
+ TranslateT("%s has disconnected"), gce->ptszNick);
else
ShowPopup(si->hContact, si, hIcons[ICON_QUIT], si->pszModule, si->ptszName, clr ? clr : aFonts[5].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_QUIT1), gce->ptszNick, RemoveFormatting(gce->ptszText));
+ TranslateT("%s has disconnected (%s)"), gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_NICK:
ShowPopup(si->hContact, si, hIcons[ICON_NICK], si->pszModule, si->ptszName, clr ? clr : aFonts[7].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_NICK), gce->ptszNick, gce->ptszText);
+ TranslateT("%s is now known as %s"), gce->ptszNick, gce->ptszText);
break;
case GC_EVENT_KICK:
if (!gce->pszText)
ShowPopup(si->hContact, si, hIcons[ICON_KICK], si->pszModule, si->ptszName, clr ? clr : aFonts[6].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_KICK), (char *)gce->pszStatus, gce->ptszNick);
+ TranslateT("%s kicked %s"), (char *)gce->pszStatus, gce->ptszNick);
else
ShowPopup(si->hContact, si, hIcons[ICON_KICK], si->pszModule, si->ptszName, clr ? clr : aFonts[6].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_KICK1), (char *)gce->pszStatus, gce->ptszNick, RemoveFormatting(gce->ptszText));
+ TranslateT("%s kicked %s (%s)"), (char *)gce->pszStatus, gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_NOTICE:
ShowPopup(si->hContact, si, hIcons[ICON_NOTICE], si->pszModule, si->ptszName, clr ? clr : aFonts[8].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_NOTICE), gce->ptszNick, RemoveFormatting(gce->ptszText));
+ TranslateT("Notice from %s: %s"), gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_TOPIC:
if (!gce->ptszNick)
ShowPopup(si->hContact, si, hIcons[ICON_TOPIC], si->pszModule, si->ptszName, clr ? clr : aFonts[11].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_TOPIC), RemoveFormatting(gce->ptszText));
+ TranslateT("The topic is \'%s\'"), RemoveFormatting(gce->ptszText));
else
ShowPopup(si->hContact, si, hIcons[ICON_TOPIC], si->pszModule, si->ptszName, clr ? clr : aFonts[11].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_TOPIC1), RemoveFormatting(gce->ptszText), gce->ptszNick);
+ TranslateT("The topic is \'%s\' (set by %s)"), RemoveFormatting(gce->ptszText), gce->ptszNick);
break;
case GC_EVENT_INFORMATION:
ShowPopup(si->hContact, si, hIcons[ICON_INFO], si->pszModule, si->ptszName, clr ? clr : aFonts[12].color, _T("%s"), RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_ADDSTATUS:
ShowPopup(si->hContact, si, hIcons[ICON_ADDSTATUS], si->pszModule, si->ptszName, clr ? clr : aFonts[13].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_STATUS_ON), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
+ TranslateT("%s enables \'%s\' status for %s"), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
break;
case GC_EVENT_REMOVESTATUS:
ShowPopup(si->hContact, si, hIcons[ICON_REMSTATUS], si->pszModule, si->ptszName, clr ? clr : aFonts[14].color,
- CTranslator::get(CTranslator::GEN_MUC_POPUP_STATUS_OFF), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
+ TranslateT("%s disables \'%s\' status for %s"), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
break;
}
}
@@ -821,43 +821,43 @@ BOOL LogToFile(SESSION_INFO* si, GCEVENT * gce)
break;
case GC_EVENT_JOIN:
p = '>';
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_JOINED), (char *)pszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s has joined"), (char *)pszNick);
break;
case GC_EVENT_PART:
p = '<';
if (!gce->pszText)
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_LEFT), (char *)pszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s has left"), (char *)pszNick);
else
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_LEFT1), (char *)pszNick, RemoveFormatting(gce->ptszText));
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s has left (%s)"), (char *)pszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_QUIT:
p = '<';
if (!gce->pszText)
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_QUIT), (char *)pszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s has disconnected"), (char *)pszNick);
else
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_QUIT1), (char *)pszNick, RemoveFormatting(gce->ptszText));
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s has disconnected (%s)"), (char *)pszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_NICK:
p = '^';
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_NICK), gce->ptszNick, gce->ptszText);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s is now known as %s"), gce->ptszNick, gce->ptszText);
break;
case GC_EVENT_KICK:
p = '~';
if (!gce->pszText)
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_KICK), (char *)gce->pszStatus, gce->ptszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s kicked %s"), (char *)gce->pszStatus, gce->ptszNick);
else
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_KICK1), (char *)gce->pszStatus, gce->ptszNick, RemoveFormatting(gce->ptszText));
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s kicked %s (%s)"), (char *)gce->pszStatus, gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_NOTICE:
p = 'o';
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_NOTICE), gce->ptszNick, RemoveFormatting(gce->ptszText));
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("Notice from %s: %s"), gce->ptszNick, RemoveFormatting(gce->ptszText));
break;
case GC_EVENT_TOPIC:
p = '#';
if (!gce->pszNick)
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_TOPIC), RemoveFormatting(gce->ptszText));
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("The topic is \'%s\'"), RemoveFormatting(gce->ptszText));
else
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_TOPIC1), RemoveFormatting(gce->ptszText), gce->ptszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("The topic is \'%s\' (set by %s)"), RemoveFormatting(gce->ptszText), gce->ptszNick);
break;
case GC_EVENT_INFORMATION:
p = '!';
@@ -865,11 +865,11 @@ BOOL LogToFile(SESSION_INFO* si, GCEVENT * gce)
break;
case GC_EVENT_ADDSTATUS:
p = '+';
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_STATUS_ON), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s enables \'%s\' status for %s"), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
break;
case GC_EVENT_REMOVESTATUS:
p = '-';
- mir_sntprintf(szBuffer, SIZEOF(szBuffer), CTranslator::get(CTranslator::GEN_MUC_POPUP_STATUS_OFF), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
+ mir_sntprintf(szBuffer, SIZEOF(szBuffer), TranslateT("%s disables \'%s\' status for %s"), gce->ptszText, (char *)gce->pszStatus, gce->ptszNick);
break;
}
/*
@@ -963,13 +963,13 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO
if (pszWordText && pszWordText[0]) {
TCHAR szMenuText[4096];
- mir_sntprintf(szMenuText, 4096, CTranslator::get(CTranslator::GEN_MUC_LOOKUP), pszWordText);
+ mir_sntprintf(szMenuText, 4096, TranslateT("Look up \'%s\':"), pszWordText);
ModifyMenu(*hMenu, 4, MF_STRING | MF_BYPOSITION, 4, szMenuText);
- } else ModifyMenu(*hMenu, 4, MF_STRING | MF_GRAYED | MF_BYPOSITION, 4, CTranslator::get(CTranslator::GEN_MUC_LOOKUP_NOWORD));
+ } else ModifyMenu(*hMenu, 4, MF_STRING | MF_GRAYED | MF_BYPOSITION, 4, TranslateT("No word to look up"));
gcmi.Type = MENU_ON_LOG;
} else if (iIndex == 0) {
TCHAR szTemp[30], szTemp2[30];
- lstrcpyn(szTemp, CTranslator::get(CTranslator::GEN_MUC_MESSAGEAMP), 24);
+ lstrcpyn(szTemp, TranslateT("&Message"), 24);
if (pszUID)
mir_sntprintf(szTemp2, SIZEOF(szTemp2), _T("%s %s"), szTemp, pszUID);
else
@@ -1017,15 +1017,15 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO
if (iIndex == 0) {
AppendMenu(*hMenu, MF_SEPARATOR, 0, 0);
pos = GetMenuItemCount(*hMenu);
- InsertMenu(*hMenu, pos, MF_BYPOSITION, (UINT_PTR)20020, CTranslator::get(CTranslator::GEN_MUC_MENU_ADDTOHIGHLIGHT));
- InsertMenu(*hMenu, pos, MF_BYPOSITION, (UINT_PTR)20021, CTranslator::get(CTranslator::GEN_MUC_MENU_EDITHIGHLIGHTLIST));
+ InsertMenu(*hMenu, pos, MF_BYPOSITION, (UINT_PTR)20020, TranslateT("Highlight User..."));
+ InsertMenu(*hMenu, pos, MF_BYPOSITION, (UINT_PTR)20021, TranslateT("Edit Highlight List..."));
}
#endif
if (iIndex == 1 && si->iType != GCW_SERVER && !(si->dwFlags & GC_UNICODE)) {
AppendMenu(*hMenu, MF_SEPARATOR, 0, 0);
- InsertMenu(PluginConfig.g_hMenuEncoding, 1, MF_BYPOSITION | MF_STRING, (UINT_PTR)CP_UTF8, CTranslator::get(CTranslator::GEN_STRING_UTF8));
+ InsertMenu(PluginConfig.g_hMenuEncoding, 1, MF_BYPOSITION | MF_STRING, (UINT_PTR)CP_UTF8, TranslateT("UTF-8"));
pos = GetMenuItemCount(*hMenu);
- InsertMenu(*hMenu, pos, MF_BYPOSITION | MF_POPUP, (UINT_PTR) PluginConfig.g_hMenuEncoding, CTranslator::get(CTranslator::GEN_MSG_ENCODING));
+ InsertMenu(*hMenu, pos, MF_BYPOSITION | MF_POPUP, (UINT_PTR) PluginConfig.g_hMenuEncoding, TranslateT("Character Encoding"));
for (i = 0; i < GetMenuItemCount(PluginConfig.g_hMenuEncoding); i++)
CheckMenuItem(PluginConfig.g_hMenuEncoding, i, MF_BYPOSITION | MF_UNCHECKED);
if (codepage == CP_ACP)
diff --git a/plugins/TabSRMM/chat/window.cpp b/plugins/TabSRMM/chat/window.cpp
index 61913f04b5..eba669e62d 100644
--- a/plugins/TabSRMM/chat/window.cpp
+++ b/plugins/TabSRMM/chat/window.cpp
@@ -1493,9 +1493,9 @@ static void ProcessNickListHovering(HWND hwnd, int hoveredItem, POINT * pt, SESS
else {
TCHAR ptszBuf[ 1024 ];
mir_sntprintf( ptszBuf, SIZEOF(ptszBuf), _T("%s: %s\r\n%s: %s\r\n%s: %s"),
- CTranslator::get(CTranslator::GEN_MUC_NICKNAME), ui1->pszNick,
- CTranslator::get(CTranslator::GEN_MUC_UID), ui1->pszUID,
- CTranslator::get(CTranslator::GEN_MUC_STATUS), TM_WordToString( parentdat->pStatuses, ui1->Status ));
+ TranslateT("Nick name"), ui1->pszNick,
+ TranslateT("Unique Id"), ui1->pszUID,
+ TranslateT("Status"), TM_WordToString( parentdat->pStatuses, ui1->Status ));
ti.lpszText = mir_tstrdup( ptszBuf );
}
}
@@ -2141,14 +2141,14 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
hIcon = dat->wStatus <= ID_STATUS_OFFLINE ? LoadSkinnedProtoIcon(si->pszModule, ID_STATUS_OFFLINE) : LoadSkinnedProtoIcon(si->pszModule, dat->wStatus);
fNoCopy = FALSE;
mir_sntprintf(szTemp, SIZEOF(szTemp),
- (si->nUsersInNicklist == 1) ? CTranslator::get(CTranslator::GEN_MUC_ROOM_TITLE_USER) :
- CTranslator::get(CTranslator::GEN_MUC_ROOM_TITLE_USERS),
- si->ptszName, si->nUsersInNicklist, si->bFilterEnabled ? CTranslator::get(CTranslator::GEN_MUC_ROOM_TITLE_FILTER) : _T(""));
+ (si->nUsersInNicklist == 1) ? TranslateT("%s: Chat Room (%u user%s)") :
+ TranslateT("%s: Chat Room (%u users%s)"),
+ si->ptszName, si->nUsersInNicklist, si->bFilterEnabled ? TranslateT(", event filter active") : _T(""));
break;
case GCW_PRIVMESS:
mir_sntprintf(szTemp, SIZEOF(szTemp),
- (si->nUsersInNicklist == 1) ? CTranslator::get(CTranslator::GEN_MUC_PRIVSESSION) :
- CTranslator::get(CTranslator::GEN_MUC_PRIVSESSION_MULTI), si->ptszName, si->nUsersInNicklist);
+ (si->nUsersInNicklist == 1) ? TranslateT("%s: Message Session") :
+ TranslateT("%s: Message Session (%u users)"), si->ptszName, si->nUsersInNicklist);
break;
case GCW_SERVER:
mir_sntprintf(szTemp, SIZEOF(szTemp), _T("%s: Server"), si->ptszName);
@@ -2218,15 +2218,15 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
else if(diff > 59) {
DWORD hours = diff / 60;
DWORD minutes = diff % 60;
- mir_sntprintf(mi->tszIdleMsg, 60, CTranslator::get(CTranslator::MUC_SBAR_IDLEFORMAT), hours, hours > 1 ?
- CTranslator::get(CTranslator::GEN_STRING_HOURS) : CTranslator::get(CTranslator::GEN_STRING_HOUR),
- minutes, minutes > 1 ? CTranslator::get(CTranslator::GEN_STRING_MINUTES) : CTranslator::get(CTranslator::GEN_STRING_MINUTE));
+ mir_sntprintf(mi->tszIdleMsg, 60, TranslateT(", %d %s, %d %s idle"), hours, hours > 1 ?
+ TranslateT("hours") : TranslateT("hour"),
+ minutes, minutes > 1 ? TranslateT("minutes") : TranslateT("minute"));
}
else
- mir_sntprintf(mi->tszIdleMsg, 60, CTranslator::get(CTranslator::MUC_SBAR_IDLEFORMAT_SHORT),
- diff, diff > 1 ? CTranslator::get(CTranslator::GEN_STRING_MINUTES) : CTranslator::get(CTranslator::GEN_STRING_MINUTE));
+ mir_sntprintf(mi->tszIdleMsg, 60, TranslateT(", %d %s idle"),
+ diff, diff > 1 ? TranslateT("minutes") : TranslateT("minute"));
}
- mir_sntprintf(szFinalStatusBarText, SIZEOF(szFinalStatusBarText), CTranslator::get(CTranslator::MUC_SBAR_ON_SERVER), dat->szMyNickname, mi->ptszModDispName, mi->tszIdleMsg);
+ mir_sntprintf(szFinalStatusBarText, SIZEOF(szFinalStatusBarText), TranslateT("%s on %s%s"), dat->szMyNickname, mi->ptszModDispName, mi->tszIdleMsg);
} else {
if (si->ptszStatusbarText)
mir_sntprintf(szFinalStatusBarText, SIZEOF(szFinalStatusBarText), _T("%s %s"), mi->ptszModDispName, si->ptszStatusbarText);
@@ -3283,7 +3283,7 @@ LABEL_SHOWWINDOW:
break;
if (si->iLogFilterFlags == 0 && !si->bFilterEnabled) {
- MessageBox(0, CTranslator::get(CTranslator::GEN_MUC_FILTER_ERROR), CTranslator::get(CTranslator::GEN_MUC_FILTER_ERROR_TITLE), MB_OK);
+ MessageBox(0, TranslateT("The filter canoot be enabled, because there are no event types selected either global or for this chat room"), TranslateT("Event filter error"), MB_OK);
si->bFilterEnabled = 0;
} else
si->bFilterEnabled = !si->bFilterEnabled;
@@ -3540,7 +3540,7 @@ LABEL_SHOWWINDOW:
case DM_CONTAINERSELECTED: {
struct TContainerData *pNewContainer = 0;
TCHAR *szNewName = (TCHAR *)lParam;
- if (!_tcscmp(szNewName, CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME)))
+ if (!_tcscmp(szNewName, TranslateT("Default container")))
szNewName = CGlobals::m_default_container_name;
int iOldItems = TabCtrl_GetItemCount(hwndTab);
if (!_tcsncmp(dat->pContainer->szName, szNewName, CONTAINER_NAMELEN))
diff --git a/plugins/TabSRMM/include/translator.h b/plugins/TabSRMM/include/translator.h
index 98a5b80031..5fadb83eee 100644
--- a/plugins/TabSRMM/include/translator.h
+++ b/plugins/TabSRMM/include/translator.h
@@ -39,374 +39,6 @@ class CTranslator {
public:
- enum {
- NR_WEEKDAYS = 7,
- NR_MONTHS = 12
- };
-
- enum {
- CNT_MENU_STAYONTOP = 0,
- CNT_MENU_HIDETITLEBAR = 1,
- CNT_MENU_CONTAINEROPTIONS = 2,
- CNT_TITLE_DEFAULT = 3,
- CNT_ATTACH_TO = 4,
- GEN_META_CONTACT = 5,
- GEN_META_FORCED = 6,
- GEN_META_AUTOSELECT = 7,
- GEN_META_USEPROTO = 8,
- GEN_META_SETDEFAULT = 9,
- GEN_MUC_NICKNAME = 10,
- GEN_MUC_UID = 11,
- GEN_MUC_STATUS = 12,
- GEN_MUC_ROOM_TITLE_USER = 13,
- GEN_MUC_ROOM_TITLE_USERS = 14,
- GEN_MUC_ROOM_TITLE_FILTER = 15,
- GEN_MUC_PRIVSESSION = 16,
- GEN_MUC_PRIVSESSION_MULTI = 17,
- GEN_MUC_FILTER_ERROR = 18,
- GEN_MUC_FILTER_ERROR_TITLE = 19,
- GEN_MUC_TEXTCOLOR = 20,
- GEN_MUC_BGCOLOR = 21,
- CNT_OPT_TITLE = 22,
- CNT_OPT_TABSTOP = 23,
- CNT_OPT_TABSBOTTOM = 24,
- CNT_OPT_TABSLEFT = 25,
- CNT_OPT_TABSRIGHT = 26,
- CNT_OPT_HEADERBAR = 27,
- GEN_MENUBAR_FILE = 28,
- GEN_MENUBAR_VIEW = 29,
- GEN_MENUBAR_USER = 30,
- GEN_MENUBAR_ROOM = 31,
- GEN_MENUBAR_LOG = 32,
- GEN_MENUBAR_CONTAINER = 33,
- GEN_MENUBAR_HELP = 34,
- CNT_SBAR_SOUNDS = 35,
- GEN_ENABLED = 36,
- GEN_DISABLED = 37,
- CNT_SBAR_MTN = 38,
- GEN_IP_TIP_XSTATUS = 39,
- GEN_IP_TIP_CLIENT = 40,
- GEN_IP_TIP_STATUSMSG = 41,
- GEN_IP_TIP_TITLE = 42,
- GEN_SKIN_WARNCLOSE = 43,
- GEN_SKIN_WARNCLOSE_TITLE = 44,
- GEN_MTN_POPUP_WARNING = 45,
- GEN_MTN_POPUP_UNSUPPORTED = 46,
- GEN_CONTACT = 47,
- GEN_MTN_START = 48,
- GEN_MTN_STOP = 49,
- GEN_FAVORITES = 50,
- GEN_RECENT_SESSIONS = 51,
- GEN_SBAR_LASTRECEIVED = 52,
- GEN_SBAR_TIP_MSGLENGTH = 53,
- CNT_OPT_TITLE_GEN = 54,
- CNT_OPT_TITLE_LAYOUT = 55,
- CNT_OPT_TITLE_TABS = 56,
- CNT_OPT_TITLE_NOTIFY = 57,
- CNT_OPT_TITLE_FLASHING = 58,
- CNT_OPT_TITLE_TITLEBAR = 59,
- CNT_OPT_TITLE_THEME = 60,
- CNT_OPT_TITLE_TRANS = 61,
- CNT_OPT_DESC_TABS = 62,
- CNT_OPT_DESC_NOTIFY = 63,
- CNT_OPT_DESC_THEME = 64,
- CNT_OPT_DESC_TRANS = 65,
- GEN_POPUPS_MESSAGE = 66,
- GEN_POPUPS_UNKNOWN = 67,
- GEN_POPUPS_NEW = 68,
- GEN_NO_STATUS = 69,
- GEN_MTN_STARTWITHNICK = 70,
- GEN_MTN_TTITLE = 71,
- GEN_MSG_TTITLE = 72,
- GEN_ICONPACK_WARNING = 73, // unused!
- CNT_SELECT_FOR = 74,
- CNT_SELECT_INUSE = 75,
- CNT_SELECT_RENAMEERROR = 76,
- CNT_SELECT_DELETEERROR = 77,
- GEN_WARN_CLOSE = 78,
- GEN_MSG_SAVE_NODIR = 79,
- GEN_MSG_SAVE = 80,
- GEN_MSG_SAVE_FILE_EXISTS = 81,
- GEN_MUC_TOPIC_IS = 82,
- GEN_MUC_NO_TOPIC = 83,
- GEN_MTN_STOPPED = 84,
- GEN_AVATAR_SETTINGS = 85,
- GEN_AVATAR_SETOWN = 86,
- GEN_WARNING_LOADTEMPLATES = 87,
- GEN_TITLE_LOADTHEME = 88,
- GEN_WARNING_PASTEANDSEND_DISABLED = 89,
- GEN_WARNING_NUDGE_DISABLED = 90,
- GEN_UNKNOWN_CONTACT = 91,
- GEN_LOG_TODAY = 92,
- GEN_LOG_YESTERDAY = 93,
- GEN_LOG_USEDEFAULTCP = 94,
- GEN_MSG_UINCOPY = 95,
- GEN_MSG_NOUIN = 96,
- GEN_MSG_UINCOPY_NOMC = 97,
- GEN_MSG_SIGNEDOFF = 98,
- GEN_MSG_SIGNEDON = 99,
- GEN_MSG_CHANGEDSTATUS = 100,
- GEN_SQ_WARNING = 101,
- GEN_SQ_WARNING_TITLE = 102,
- GEN_SQ_MULTISEND_NO_CONTACTS = 103,
- GEN_SQ_DELIVERYFAILED = 104,
- GEN_SQ_DELIVERYFAILEDLATE = 105,
- GEN_SQ_MULTISEND_SUCCESS = 106,
- GEN_SQ_QUEUED_MESSAGE = 107,
- GEN_SQ_QUEUING_NOT_AVAIL = 108,
- GEN_SQ_SENDLATER_HEADER = 109,
- CNT_SBAR_SLIST = 110,
- GEN_MSG_ENCODING = 111,
- GEN_MSG_FAILEDSEND = 112,
- GEN_MSG_TOO_LONG_SPLIT = 113,
- GEN_MSG_TOO_LONG_NOSPLIT = 114,
- GEN_MSG_CLOSE = 115,
- GEN_MSG_SAVEANDCLOSE = 116,
- GEN_MSG_LOGFROZENSTATIC = 117,
- GEN_MSG_TIP_CONTACTMENU = 118,
- GEN_MSG_BUTTON_RETRY = 119,
- GEN_MSG_BUTTON_CANCEL = 120,
- GEN_MSG_BUTTON_SENDLATER = 121,
- GEN_MSG_SEL_COPIED = 122,
- GEN_MSG_LOGFROZENQUEUED = 123,
- GEN_MSG_UNKNOWNCLIENT = 124,
- GEN_MSG_NOXSTATUSMSG = 125,
- GEN_MSG_DELIVERYFAILURE = 126,
- GEN_MSG_SENDTIMEOUT = 127,
- GEN_MSG_SHOWPICTURE = 128,
- GEN_MSG_NO_EDIT_NOTES = 129,
- GEN_MSG_EDIT_NOTES_TIP = 130,
- GEN_MSG_MC_OFFLINEPROTOCOL = 131,
- GEN_MSG_OFFLINE_NO_FILE = 132,
- GEN_STRING_FILE = 133,
- GEN_STRING_MESSAGEFROM = 134,
- GEN_SQ_MULTISENDERROR = 135,
- GEN_MUC_LOOKUP = 136,
- GEN_MUC_LOOKUP_NOWORD = 137,
- GEN_MUC_MESSAGEAMP = 138,
- GEN_STRING_UTF8 = 139,
- MUC_LOG_JOINED = 140,
- MUC_LOG_ME_JOINED = 141,
- MUC_LOG_LEFT = 142,
- MUC_LOG_DISC = 143,
- MUC_LOG_NICKCHANGE = 144,
- MUC_LOG_ME_NICKCHANGE = 145,
- MUC_LOG_KICK = 146,
- MUC_LOG_NOTICE = 147,
- MUC_LOG_TOPICIS = 148,
- MUC_LOG_TOPICSETBYON = 149,
- MUC_LOG_TOPICSETBY = 150,
- MUC_LOG_STATUSENABLE = 151,
- MUC_LOG_STATUSDISABLE = 152,
- GEN_MUC_MENU_ADDTOHIGHLIGHT = 153,
- GEN_MUC_HIGHLIGHT_ADD = 154,
- GEN_MUC_HIGHLIGHT_EDIT = 155,
- GEN_MUC_MENU_EDITHIGHLIGHTLIST = 156,
- GEN_MSG_CONTACT_NOT_ON_LIST = 157,
- GEN_SQ_SENDLATER_SUCCESS_POPUP = 158,
- GEN_IP_MENU_COPY = 159,
- GEN_IP_MENU_USER_DETAILS = 160,
- GEN_IP_MENU_MSGPREFS = 161,
- GEN_IP_MENU_ROOMPREFS = 162,
- GEN_IP_MENU_HISTORY = 163,
- GEN_STRING_HOUR = 164,
- GEN_STRING_HOURS = 165,
- GEN_STRING_MINUTE = 166,
- GEN_STRING_MINUTES = 167,
- MUC_SBAR_IDLEFORMAT = 168,
- MUC_SBAR_ON_SERVER = 169,
- MUC_SBAR_IDLEFORMAT_SHORT = 170,
- CNT_OPT_TITLE_AVATARS = 171,
- GEN_MUC_TRAY_HILIGHT = 172,
- GEN_MUC_TRAY_MSG = 173,
- GEN_MUC_TRAY_JOINED = 174,
- GEN_MUC_TRAY_LEFT = 175,
- GEN_MUC_TRAY_QUIT = 176,
- GEN_MUC_TRAY_NICK = 177,
- GEN_MUC_TRAY_KICK = 178,
- GEN_MUC_TRAY_NOTICE = 179,
- GEN_MUC_TRAY_TOPIC = 180,
- GEN_MUC_TRAY_INFO = 181,
- GEN_MUC_TRAY_STATUS_ON = 182,
- GEN_MUC_TRAY_STATUS_OFF = 183,
-
- GEN_MUC_POPUP_MSG = 184,
- GEN_MUC_POPUP_JOINED = 185,
- GEN_MUC_POPUP_LEFT = 186,
- GEN_MUC_POPUP_LEFT1 = 187,
- GEN_MUC_POPUP_QUIT = 188,
- GEN_MUC_POPUP_QUIT1 = 189,
- GEN_MUC_POPUP_NICK = 190,
- GEN_MUC_POPUP_KICK = 191,
- GEN_MUC_POPUP_KICK1 = 192,
- GEN_MUC_POPUP_NOTICE = 193,
- GEN_MUC_POPUP_TOPIC = 194,
- GEN_MUC_POPUP_TOPIC1 = 195,
- GEN_MUC_POPUP_STATUS_ON = 196,
- GEN_MUC_POPUP_STATUS_OFF = 197,
- CNT_OPT_TITLE_SOUNDS = 198,
- GEN_IP_IDLENOTICE = 199,
- GEN_INFOTIP_STATUSMSG = 200,
- GEN_INFOTIP_XSTATUS = 201,
- GEN_INFOTIP_LISTENING = 202,
- GEN_INFOTIP_CLIENT = 203,
- GEN_BB_IMGTOOLTIP = 204,
- QMGR_COL_ODATE = 205,
- QMGR_COL_MESSAGETEXT = 206,
- QMGR_COL_STATUS = 207,
- QMGR_COL_LASTSENDINFO = 208,
- QMGR_FILTER_ALLCONTACTS = 209,
- QMGR_STATUS_FAILED = 210,
- QMGR_STATUS_SENTOK = 211,
- QMGR_STATUS_PENDING = 212,
- QMGR_STATUS_WAITACK = 213,
- QMGR_ERROR_NOMULTISEND = 214,
- QMGR_STATUS_REMOVED = 215,
- QMGR_WARNING_REMOVAL = 216,
- QMGR_TITLE = 217,
- QMGR_STATUS_HOLD = 218,
- QMGR_STATUS_DEFERRED = 219,
- GEN_SQ_SENDLATER_FAILED_POPUP = 220,
- GEN_SQ_SENDLATER_ERROR_MSG_TOO_LONG = 221,
- GEN_DEFAULT_CONTAINER_NAME = 222,
- GEN_STRING_EVENT_FILE_NODESC = 223,
- GEN_STRING_EVENT_FILE_INVALID = 224,
- GEN_STRING_EVENT_FILE = 225,
- GEN_TOOLTIP_ADDCONTACT = 226,
- GEN_TOOLTIP_DONTADD = 227,
- GEN_TOOLTIP_EXPANDSIDEBAR = 228,
- GEN_TASKBAR_STRING_CHAT_ROOM = 229,
- GEN_TASKBAR_STRING_SERVER_WINDOW = 230,
- GEN_TASKBAR_STRING_UNREAD = 231,
- GEN_TASKBAR_STRING_USERS = 232,
- GEN_AEROPEEK_NOHPP = 233,
- GEN_STRING_WARNING_TITLE = 234,
- GEN_IP_CLIENT = 235,
- GEN_IP_CLIENT_UNKNOWN = 236,
- STR_LAST = 237
- };
-
- enum {
- OPT_UPREFS_IPGLOBAL = 0,
- OPT_UPREFS_IPON = 1,
- OPT_UPREFS_IPOFF = 2,
- OPT_UPREFS_AVON = 3,
- OPT_UPREFS_AVOFF = 4,
- OPT_UPREFS_FORCEHPP = 5,
- OPT_UPREFS_FORCEIEV = 6,
- OPT_UPREFS_FORCEDEFAULT = 7,
- OPT_UPREFS_SIMPLETAGS = 8,
- OPT_UPREFS_BBCODE = 9,
- OPT_UPREFS_FORMATTING_OFF = 10,
- OPT_UPREFS_DEFAULTCP = 11,
- OPT_UPREFS_NOTZSVC = 12,
- OPT_UPREFS_TITLE = 13,
- OPT_UPREFS_MSGLOG = 14,
- OPT_UPREFS_GENERIC = 15,
- OPT_AERO_EFFECT_NONE = 16,
- OPT_AERO_EFFECT_MILK = 17,
- OPT_AERO_EFFECT_CARBON = 18,
- OPT_AERO_EFFECT_SOLID = 19,
- OPT_GEN_NONE = 20,
- OPT_GEN_AUTO = 21,
- OPT_GEN_SUNKEN = 22,
- OPT_GEN_1PIXEL = 23,
- OPT_GEN_ROUNDED = 24,
- OPT_GEN_GLOBALLY_ON = 25,
- OPT_GEN_ON_IF_PRESENT = 26,
- OPT_GEN_GLOBALLY_OFF = 27,
- OPT_GEN_ON_ALWAYS_BOTTOM = 28,
- OPT_GEN_DONT_SHOW = 29,
- OPT_TAB_LAYOUTTWEAKS = 30,
- OPT_TAB_SKINLOAD = 31,
- OPT_IPANEL_VISBILITY_TITLE = 32,
- OPT_IPANEL_VISIBILTY_IM = 33,
- OPT_IPANEL_VISIBILTY_CHAT = 34,
- OPT_IPANEL_SYNC_TITLE_IM = 35,
- OPT_IPANEL_SYNC_TITLE_MUC = 36,
- OPT_IPANEL_VIS_INHERIT = 37,
- OPT_IPANEL_VIS_OFF = 38,
- OPT_IPANEL_VIS_ON = 39,
- OPT_IPANEL_SIZE_GLOBAL = 40,
- OPT_IPANEL_SIZE_PRIVATE = 41,
- OPT_GEN_OFF = 42,
- OPT_GEN_BBCODE = 43,
- OPT_LOG_DEFAULT = 44,
- OPT_LOG_IEVIEW = 45,
- OPT_LOG_HPP = 46,
- OPT_MTN_NEW = 47,
- OPT_MTN_UNKNOWN = 48,
- OPT_GEN_ALWAYS = 49,
- OPT_MTN_NOTFOCUSED = 50,
- OPT_MTN_ONLYCLOSED = 51,
- OPT_CNT_ESCNORMAL = 52,
- OPT_CNT_ESCMINIMIZE = 53,
- OPT_CNT_ESCCLOS = 54,
- OPT_MTN_UNSUPPORTED = 55,
- OPT_SMODE_CHOOSE = 56,
- OPT_MUC_LOGTIP1 = 57,
- OPT_MUC_LOGTIP2 = 58,
- OPT_MUC_LOGTIP3 = 59,
- OPT_MUC_LOGTIP4 = 60,
- OPT_MUC_LOGTIP5 = 61,
- OPT_MUC_LOGTIP6 = 62,
- OPT_MUC_LOGTIP7 = 63,
- OPT_MUC_LOGTIP8 = 64,
- OPT_MUC_LOGTIP9 = 65,
- OPT_MUC_LOGTIP10 = 66,
- OPT_MUC_LOGTIP11 = 67,
- OPT_MUC_LOGTIP12 = 68,
- OPT_MUC_LOGTIP13 = 69,
- OPT_MUC_LOGTIP14 = 70,
- OPT_MUC_LOGTIP15 = 71,
- OPT_MUC_LOGTIP16 = 72,
- OPT_MUC_LOGTIP17 = 73,
- OPT_MUC_LOGTIP18 = 74,
- OPT_MUC_LOGTIP19 = 75,
- OPT_MUC_LOGTIP20 = 76,
- OPT_MUC_LOGTIP21 = 77,
- OPT_MUC_LOGTIP22 = 78,
- OPT_MUC_OPTHEADER1 = 79,
- OPT_MUC_OPTHEADER2 = 80,
- OPT_MUC_VARIABLES = 81,
- OPT_MUC_SELECTFOLDER = 82,
- OPT_MUC_NOMARKERS = 83,
- OPT_MUC_ASICONS = 84,
- OPT_MUC_ASSYMBOLS = 85,
- OPT_TEMP_TITLE = 86,
- OPT_TEMP_RESET = 87,
- OPT_TEMP_WASRESET = 88,
- OPT_TEMP_HELPTITLE = 89,
- OPT_TABS_GENERAL = 90,
- OPT_TABS_TABS = 91,
- OPT_TABS_CONTAINERS = 92,
- OPT_TABS_LOG = 93,
- OPT_TABS_TOOLBAR = 94,
- OPT_TABS_ADVANCED = 95,
- OPT_TABS_MUC_SETTINGS = 96,
- OPT_TABS_MUC_LOG = 97,
- OPT_TABS_MUC_EVENTS = 98,
- OPT_TABS_MUC_HIGHLIGHT = 99,
- OPT_MSGLOG_EXPLAINSETTINGS = 100,
- OPT_SKIN_NOSKINSELECT = 101,
- OPT_LAST = 102
- };
-
- enum {
- WARN_RELNOTES = 0,
- WARN_ICONPACKVERSION = 1,
- WARN_EDITUSERNOTES = 2,
- WARN_ICONPACKMISSING = 3,
- WARN_AEROPEEKSKIN = 4,
- WARN_CHAT_ENABLED = 5,
- WARN_IMGSVC_MISSING = 6,
- WARN_HPP_APICHECK = 7,
- WARN_NO_SENDLATER = 8,
- WARN_CLOSEWINDOW = 9,
- WARN_OPTION_CLOSE = 10,
- WARN_THEME_OVERWRITE = 11,
- WARN_LAST = 12
- };
/*
* identities for the option trees
*/
@@ -422,92 +54,8 @@ public:
CTranslator();
~CTranslator();
- inline static const wchar_t* get(const UINT id)
- {
- return(m_translated[id]);
- }
-
- inline static const wchar_t* getOpt(const UINT id)
- {
- return(m_OptTranslated[id]);
- }
-
- inline static const wchar_t* getWarning(const UINT id)
- {
- return(m_WarningsTranslated[id]);
- }
-
- inline static const wchar_t* getUntranslatedWarning(const UINT id)
- {
- return(m_Warnings[id]);
- }
-
- inline static const wchar_t* getWeekday(const UINT id)
- {
- return(weekDays_translated[id]);
- }
-
- inline static const wchar_t* getMonth(const UINT id)
- {
- return(months_translated[id]);
- }
-
- static void preTranslateAll()
- {
- int i;
-
- for(i = 0; i < STR_LAST; i++)
- m_translated[i] = TranslateTS(m_strings[i]);
-
- for(i = 0; i < OPT_LAST; i++)
- m_OptTranslated[i] = TranslateTS(m_OptStrings[i]);
-
- for(i = 0; i < WARN_LAST; i++)
- m_WarningsTranslated[i] = TranslateTS(m_Warnings[i]);
-
- translateGroupTree(m_lvGroupsModPlus);
- translateGroupTree(m_lvGroupsNEN);
- translateGroupTree(m_lvGroupsMsg);
- translateGroupTree(m_lvGroupsTab);
- translateGroupTree(m_lvGroupsLog);
-
- translateOptionTree(m_lvItemsModPlus);
- translateOptionTree(m_lvItemsNEN);
- translateOptionTree(m_lvItemsMsg);
- translateOptionTree(m_lvItemsTab);
- translateOptionTree(m_lvItemsLog);
-
- for(i = 0; i < NR_WEEKDAYS; i++)
- weekDays_translated[i] = TranslateTS(weekDays[i]);
-
- for(i = 0; i < NR_MONTHS; i++)
- months_translated[i] = TranslateTS(months[i]);
- }
-
- static void translateGroupTree(TOptionListGroup *groups);
- static void translateOptionTree(TOptionListItem *items);
-
- static TOptionListItem* getTree(UINT id);
- static TOptionListGroup* getGroupTree(UINT id);
-
-private:
- static wchar_t *m_strings[STR_LAST];
- static wchar_t *m_translated[STR_LAST];
-
- static wchar_t *m_OptStrings[OPT_LAST];
- static wchar_t *m_OptTranslated[OPT_LAST];
-
- static wchar_t *m_Warnings[WARN_LAST];
- static wchar_t *m_WarningsTranslated[WARN_LAST];
-
- static wchar_t *weekDays[7];
- static wchar_t *months[12];
-
- static wchar_t *weekDays_translated[7];
- static wchar_t *months_translated[12];
-
- static TOptionListGroup m_lvGroupsModPlus[], m_lvGroupsNEN[], m_lvGroupsMsg[], m_lvGroupsLog[], m_lvGroupsTab[];
- static TOptionListItem m_lvItemsModPlus[], m_lvItemsNEN[], m_lvItemsMsg[], m_lvItemsLog[], m_lvItemsTab[];
+ static TOptionListItem* getTree(UINT id);
+ static TOptionListGroup* getGroupTree(UINT id);
};
#endif
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index ac72ba55cf..d10459da58 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -645,12 +645,12 @@ static INT_PTR CALLBACK DlgProcContainer(HWND hwndDlg, UINT msg, WPARAM wParam,
iMenuItems = GetMenuItemCount(hSysmenu);
InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_SEPARATOR, 0, _T(""));
- InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_STRING, IDM_STAYONTOP, CTranslator::get(CTranslator::CNT_MENU_STAYONTOP));
+ InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_STRING, IDM_STAYONTOP, TranslateT("Stay on Top"));
if (!CSkin::m_frameSkins)
- InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_STRING, IDM_NOTITLE, CTranslator::get(CTranslator::CNT_MENU_HIDETITLEBAR));
+ InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_STRING, IDM_NOTITLE, TranslateT("Hide titlebar"));
InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_SEPARATOR, 0, _T(""));
- InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_STRING, IDM_MOREOPTIONS, CTranslator::get(CTranslator::CNT_MENU_CONTAINEROPTIONS));
- SetWindowText(hwndDlg, CTranslator::get(CTranslator::CNT_TITLE_DEFAULT));
+ InsertMenu(hSysmenu, iMenuItems++ - 2, MF_BYPOSITION | MF_STRING, IDM_MOREOPTIONS, TranslateT("Container options..."));
+ SetWindowText(hwndDlg, TranslateT("Message Session..."));
SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)PluginConfig.g_iconContainer);
/*
@@ -2565,14 +2565,14 @@ HMENU TSAPI BuildContainerMenu()
if (dbv.type == DBVT_ASCIIZ || dbv.type == DBVT_WCHAR) {
if (_tcsncmp(dbv.ptszVal, _T("**free**"), CONTAINER_NAMELEN))
AppendMenu(hMenu, MF_STRING, IDM_CONTAINERMENU + i, !_tcscmp(dbv.ptszVal, _T("default")) ?
- CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME) : dbv.ptszVal);
+ TranslateT("Default container") : dbv.ptszVal);
}
DBFreeVariant(&dbv);
i++;
}
while (TRUE);
- InsertMenu(PluginConfig.g_hMenuContext, ID_TABMENU_ATTACHTOCONTAINER, MF_BYCOMMAND | MF_POPUP, (UINT_PTR) hMenu, CTranslator::get(CTranslator::CNT_ATTACH_TO));
+ InsertMenu(PluginConfig.g_hMenuContext, ID_TABMENU_ATTACHTOCONTAINER, MF_BYCOMMAND | MF_POPUP, (UINT_PTR) hMenu, TranslateT("Attach to"));
PluginConfig.g_hMenuContainer = hMenu;
return hMenu;
}
@@ -2600,7 +2600,7 @@ HMENU TSAPI BuildMCProtocolMenu(HWND hwndDlg) {
hMCSubForce = CreatePopupMenu();
hMCSubDefault = CreatePopupMenu();
- AppendMenu(hMenu, MF_STRING | MF_DISABLED | MF_GRAYED | MF_CHECKED, 1, CTranslator::get(CTranslator::GEN_META_CONTACT));
+ AppendMenu(hMenu, MF_STRING | MF_DISABLED | MF_GRAYED | MF_CHECKED, 1, TranslateT("Meta Contact"));
AppendMenu(hMenu, MF_SEPARATOR, 1, _T(""));
iNumProtos = (int)CallService(MS_MC_GETNUMCONTACTS, (WPARAM)dat->hContact, 0);
@@ -2626,7 +2626,7 @@ HMENU TSAPI BuildMCProtocolMenu(HWND hwndDlg) {
szStatusText = (TCHAR *) CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, wStatus, GSMDF_TCHAR);
}
mir_sntprintf(szMenuLine, safe_sizeof(szMenuLine), _T("%s: %s [%s] %s"), acc->tszAccountName, nick, szStatusText,
- i == isForced ? CTranslator::get(CTranslator::GEN_META_FORCED) : _T(""));
+ i == isForced ? TranslateT("(Forced)") : _T(""));
iChecked = MF_UNCHECKED;
if (hContactMostOnline != 0 && hContactMostOnline == handle)
iChecked = MF_CHECKED;
@@ -2636,9 +2636,9 @@ HMENU TSAPI BuildMCProtocolMenu(HWND hwndDlg) {
DBFreeVariant(&dbv);
}
AppendMenu(hMCSubForce, MF_SEPARATOR, 900, _T(""));
- AppendMenu(hMCSubForce, MF_STRING | ((isForced == -1) ? MF_CHECKED : MF_UNCHECKED), 999, CTranslator::get(CTranslator::GEN_META_AUTOSELECT));
- InsertMenu(hMenu, 2, MF_BYPOSITION | MF_POPUP, (UINT_PTR) hMCSubForce, CTranslator::get(CTranslator::GEN_META_USEPROTO));
- InsertMenu(hMenu, 2, MF_BYPOSITION | MF_POPUP, (UINT_PTR) hMCSubDefault, CTranslator::get(CTranslator::GEN_META_SETDEFAULT));
+ AppendMenu(hMCSubForce, MF_STRING | ((isForced == -1) ? MF_CHECKED : MF_UNCHECKED), 999, TranslateT("Autoselect"));
+ InsertMenu(hMenu, 2, MF_BYPOSITION | MF_POPUP, (UINT_PTR) hMCSubForce, TranslateT("Use Protocol"));
+ InsertMenu(hMenu, 2, MF_BYPOSITION | MF_POPUP, (UINT_PTR) hMCSubDefault, TranslateT("Set Default Protocol"));
return hMenu;
}
diff --git a/plugins/TabSRMM/src/containeroptions.cpp b/plugins/TabSRMM/src/containeroptions.cpp
index e030bcacab..29bb69afa2 100644
--- a/plugins/TabSRMM/src/containeroptions.cpp
+++ b/plugins/TabSRMM/src/containeroptions.cpp
@@ -116,20 +116,19 @@ void TSAPI ApplyContainerSetting(TContainerData *pContainer, DWORD flags, UINT m
#define NR_O_OPTIONSPERPAGE 10
static struct _tagPages {
- UINT idTitle;
- UINT idDesc;
+ const TCHAR *szTitle, *szDesc;
UINT uIds[10];
} o_pages[] = {
- { CTranslator::CNT_OPT_TITLE_GEN, CTranslator::STR_LAST, IDC_O_NOTABS, IDC_O_STICKY, IDC_VERTICALMAX, IDC_AUTOSPLITTER, IDC_O_AUTOHIDE, IDC_AUTOCLOSETABTIME, IDC_AUTOCLOSETABSPIN, IDC_O_AUTOHIDESECONDS, 0, 0},
- { CTranslator::CNT_OPT_TITLE_LAYOUT, CTranslator::STR_LAST, IDC_CNTNOSTATUSBAR, IDC_HIDEMENUBAR, IDC_UIDSTATUSBAR, IDC_HIDETOOLBAR, IDC_INFOPANEL, IDC_BOTTOMTOOLBAR, 0, 0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_TABS, CTranslator::CNT_OPT_DESC_TABS, IDC_TABMODE, IDC_O_TABMODE, IDC_O_SBARLAYOUT, IDC_SBARLAYOUT, IDC_FLASHICON, IDC_FLASHLABEL, IDC_SINGLEROWTAB, IDC_BUTTONTABS, IDC_CLOSEBUTTONONTABS, 0},
- { CTranslator::CNT_OPT_TITLE_NOTIFY, CTranslator::CNT_OPT_DESC_NOTIFY, IDC_O_DONTREPORT, IDC_DONTREPORTUNFOCUSED2, IDC_DONTREPORTFOCUSED2, IDC_ALWAYSPOPUPSINACTIVE, IDC_O_EXPLAINGLOBALNOTIFY, 0, 0, 0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_FLASHING, CTranslator::STR_LAST, IDC_O_FLASHDEFAULT, IDC_O_FLASHALWAYS, IDC_O_FLASHNEVER, 0, 0, 0, 0, 0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_TITLEBAR, CTranslator::STR_LAST, IDC_O_HIDETITLE, IDC_TITLEFORMAT, IDC_O_TITLEBARFORMAT, IDC_O_HELP_TITLEFORMAT, 0, 0, 0, 0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_THEME, CTranslator::CNT_OPT_DESC_THEME, IDC_THEME, IDC_SELECTTHEME, IDC_USEGLOBALSIZE, IDC_SAVESIZEASGLOBAL, IDC_LABEL_PRIVATETHEME, IDC_TSLABEL_EXPLAINTHEME, 0, 0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_TRANS, CTranslator::CNT_OPT_DESC_TRANS, IDC_TRANSPARENCY, IDC_TRANSPARENCY_ACTIVE, IDC_TRANSPARENCY_INACTIVE, IDC_TSLABEL_ACTIVE, IDC_TSLABEL_INACTIVE, 0, 0,0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_AVATARS, CTranslator::STR_LAST, IDC_O_STATIC_AVATAR, IDC_O_STATIC_OWNAVATAR, IDC_AVATARMODE, IDC_OWNAVATARMODE, IDC_AVATARSONTASKBAR, 0, 0, 0, 0, 0},
- { CTranslator::CNT_OPT_TITLE_SOUNDS, CTranslator::STR_LAST, IDC_O_ENABLESOUNDS, IDC_O_SOUNDSMINIMIZED, IDC_O_SOUNDSUNFOCUSED, IDC_O_SOUNDSINACTIVE, IDC_O_SOUNDSFOCUSED, 0, 0, 0, 0, 0},
+ { _T("General options"), NULL, IDC_O_NOTABS, IDC_O_STICKY, IDC_VERTICALMAX, IDC_AUTOSPLITTER, IDC_O_AUTOHIDE, IDC_AUTOCLOSETABTIME, IDC_AUTOCLOSETABSPIN, IDC_O_AUTOHIDESECONDS, 0, 0},
+ { _T("Window layout"), NULL, IDC_CNTNOSTATUSBAR, IDC_HIDEMENUBAR, IDC_UIDSTATUSBAR, IDC_HIDETOOLBAR, IDC_INFOPANEL, IDC_BOTTOMTOOLBAR, 0, 0, 0, 0},
+ { _T("Tabs and switch bar"), _T("Choose your options for the tabbed user interface. Not all options can be applied to open windows. You may need to close and re-open them."), IDC_TABMODE, IDC_O_TABMODE, IDC_O_SBARLAYOUT, IDC_SBARLAYOUT, IDC_FLASHICON, IDC_FLASHLABEL, IDC_SINGLEROWTAB, IDC_BUTTONTABS, IDC_CLOSEBUTTONONTABS, 0},
+ { _T("Notifications"), _T("Select, when you want to see event notifications (popups) for this window. The settings apply to all tabs within this window."), IDC_O_DONTREPORT, IDC_DONTREPORTUNFOCUSED2, IDC_DONTREPORTFOCUSED2, IDC_ALWAYSPOPUPSINACTIVE, IDC_O_EXPLAINGLOBALNOTIFY, 0, 0, 0, 0, 0},
+ { _T("Flashing"), NULL, IDC_O_FLASHDEFAULT, IDC_O_FLASHALWAYS, IDC_O_FLASHNEVER, 0, 0, 0, 0, 0, 0, 0},
+ { _T("Title bar"), NULL, IDC_O_HIDETITLE, IDC_TITLEFORMAT, IDC_O_TITLEBARFORMAT, IDC_O_HELP_TITLEFORMAT, 0, 0, 0, 0, 0, 0},
+ { _T("Window size and theme"), _T("You can select a private theme (.tabsrmm file) for this container which will then override the default message log theme. You will have to close and re-open all message windows after changing this option."), IDC_THEME, IDC_SELECTTHEME, IDC_USEGLOBALSIZE, IDC_SAVESIZEASGLOBAL, IDC_LABEL_PRIVATETHEME, IDC_TSLABEL_EXPLAINTHEME, 0, 0, 0, 0},
+ { _T("Transparency"), _T("This feature requires Windows 2000 or later and may be unavailable when using a container skin."), IDC_TRANSPARENCY, IDC_TRANSPARENCY_ACTIVE, IDC_TRANSPARENCY_INACTIVE, IDC_TSLABEL_ACTIVE, IDC_TSLABEL_INACTIVE, 0, 0, 0, 0, 0},
+ { _T("Contact avatars"), NULL, IDC_O_STATIC_AVATAR, IDC_O_STATIC_OWNAVATAR, IDC_AVATARMODE, IDC_OWNAVATARMODE, IDC_AVATARSONTASKBAR, 0, 0, 0, 0, 0},
+ { _T("Sound notifications"), NULL, IDC_O_ENABLESOUNDS, IDC_O_SOUNDSMINIMIZED, IDC_O_SOUNDSUNFOCUSED, IDC_O_SOUNDSINACTIVE, IDC_O_SOUNDSFOCUSED, 0, 0, 0, 0, 0},
};
static void ShowPage(HWND hwndDlg, int iPage, BOOL fShow)
@@ -139,9 +138,9 @@ static void ShowPage(HWND hwndDlg, int iPage, BOOL fShow)
Utils::showDlgControl(hwndDlg, o_pages[iPage].uIds[i], fShow ? SW_SHOW : SW_HIDE);
}
if (fShow) {
- SetDlgItemText(hwndDlg, IDC_TITLEBOX, CTranslator::get(o_pages[iPage].idTitle));
- if (o_pages[iPage].idDesc != CTranslator::STR_LAST)
- SetDlgItemText(hwndDlg, IDC_DESC, CTranslator::get(o_pages[iPage].idDesc));
+ SetDlgItemText(hwndDlg, IDC_TITLEBOX, TranslateTS(o_pages[iPage].szTitle));
+ if (o_pages[iPage].szDesc != NULL)
+ SetDlgItemText(hwndDlg, IDC_DESC, TranslateTS(o_pages[iPage].szDesc));
else
SetDlgItemText(hwndDlg, IDC_DESC, _T(""));
}
@@ -175,31 +174,31 @@ INT_PTR CALLBACK DlgProcContainerOptions(HWND hwndDlg, UINT msg, WPARAM wParam,
pContainer = (TContainerData *) lParam;
pContainer->hWndOptions = hwndDlg;
TranslateDialogDefault(hwndDlg);
- SetWindowText(hwndDlg, CTranslator::get(CTranslator::CNT_OPT_TITLE));
- mir_sntprintf(szNewTitle, SIZEOF(szNewTitle), CTranslator::get(CTranslator::CNT_OPT_HEADERBAR), !_tcscmp(pContainer->szName, _T("default")) ?
- CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME) : pContainer->szName);
+ SetWindowText(hwndDlg, TranslateT("Container options"));
+ mir_sntprintf(szNewTitle, SIZEOF(szNewTitle), TranslateT("Configure container options for\n%s"), !_tcscmp(pContainer->szName, _T("default")) ?
+ TranslateT("Default container") : pContainer->szName);
SetDlgItemText(hwndDlg, IDC_HEADERBAR, szNewTitle);
Utils::enableDlgControl(hwndDlg, IDC_O_HIDETITLE, CSkin::m_frameSkins ? FALSE : TRUE);
CheckDlgButton(hwndDlg, IDC_CNTPRIVATE, pContainer->settings->fPrivate ? BST_CHECKED : BST_UNCHECKED);
- SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::get(CTranslator::CNT_OPT_TABSTOP));
- SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::get(CTranslator::CNT_OPT_TABSBOTTOM));
- SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::get(CTranslator::CNT_OPT_TABSLEFT));
- SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::get(CTranslator::CNT_OPT_TABSRIGHT));
+ SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Tabs at the top"));
+ SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Tabs at the bottom"));
+ SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Switch bar on the left side"));
+ SendDlgItemMessage(hwndDlg, IDC_TABMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Switch bar on the right side"));
SendDlgItemMessage(hwndDlg, IDC_AVATARMODE, CB_INSERTSTRING, -1,
- (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_GLOBALLY_ON));
+ (LPARAM)TranslateT("Globally on"));
SendDlgItemMessage(hwndDlg, IDC_AVATARMODE, CB_INSERTSTRING, -1,
- (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_ON_IF_PRESENT));
+ (LPARAM)TranslateT("On, if present"));
SendDlgItemMessage(hwndDlg, IDC_AVATARMODE, CB_INSERTSTRING, -1,
- (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_GLOBALLY_OFF));
+ (LPARAM)TranslateT("Globally OFF"));
SendDlgItemMessage(hwndDlg, IDC_AVATARMODE, CB_INSERTSTRING, -1,
- (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_ON_ALWAYS_BOTTOM));
+ (LPARAM)TranslateT("On, if present, always in bottom display"));
SendDlgItemMessage(hwndDlg, IDC_OWNAVATARMODE, CB_INSERTSTRING, -1,
- (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_ON_IF_PRESENT));
+ (LPARAM)TranslateT("On, if present"));
SendDlgItemMessage(hwndDlg, IDC_OWNAVATARMODE, CB_INSERTSTRING, -1,
- (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_DONT_SHOW));
+ (LPARAM)TranslateT("Don't show them"));
for(i = 0; i < nr_layouts; i++)
SendDlgItemMessage(hwndDlg, IDC_SBARLAYOUT, CB_INSERTSTRING, -1, (LPARAM)TranslateTS(sblayouts[i].szName));
@@ -216,7 +215,7 @@ INT_PTR CALLBACK DlgProcContainerOptions(HWND hwndDlg, UINT msg, WPARAM wParam,
tvis.hParent = NULL;
tvis.hInsertAfter = TVI_LAST;
tvis.item.mask = TVIF_TEXT | TVIF_PARAM;
- tvis.item.pszText = const_cast<TCHAR *>(CTranslator::get(o_pages[i].idTitle));
+ tvis.item.pszText = TranslateTS(o_pages[i].szTitle);
tvis.item.lParam = i;
hItem = TreeView_InsertItem(hwndTree, &tvis);
if (i == 0)
diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp
index ef6e15d35e..cbe2f9b6a1 100644
--- a/plugins/TabSRMM/src/controls.cpp
+++ b/plugins/TabSRMM/src/controls.cpp
@@ -83,49 +83,49 @@ CMenuBar::CMenuBar(HWND hwndParent, const TContainerData *pContainer)
m_TbButtons[0].dwData = 0;
m_TbButtons[1].iBitmap = I_IMAGENONE;
- m_TbButtons[1].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_FILE);
+ m_TbButtons[1].iString = (INT_PTR)TranslateT("&File");
m_TbButtons[1].fsState = TBSTATE_ENABLED;
m_TbButtons[1].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[1].idCommand = 101;
m_TbButtons[1].dwData = reinterpret_cast<DWORD_PTR>(::GetSubMenu(PluginConfig.getMenuBar(), 0));
m_TbButtons[2].iBitmap = I_IMAGENONE;
- m_TbButtons[2].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_VIEW);
+ m_TbButtons[2].iString = (INT_PTR)TranslateT("&View");
m_TbButtons[2].fsState = TBSTATE_ENABLED;
m_TbButtons[2].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[2].idCommand = 102;
m_TbButtons[2].dwData = reinterpret_cast<DWORD_PTR>(::GetSubMenu(PluginConfig.getMenuBar(), 1));
m_TbButtons[3].iBitmap = I_IMAGENONE;
- m_TbButtons[3].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_USER);
+ m_TbButtons[3].iString = (INT_PTR)TranslateT("&User");
m_TbButtons[3].fsState = TBSTATE_ENABLED;
m_TbButtons[3].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[3].idCommand = 103;
m_TbButtons[3].dwData = 0; // dynamically built by Clist service
m_TbButtons[4].iBitmap = I_IMAGENONE;
- m_TbButtons[4].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_ROOM);
+ m_TbButtons[4].iString = (INT_PTR)TranslateT("&Room");
m_TbButtons[4].fsState = TBSTATE_ENABLED;
m_TbButtons[4].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[4].idCommand = 104;
m_TbButtons[4].dwData = 0;
m_TbButtons[5].iBitmap = I_IMAGENONE;
- m_TbButtons[5].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_LOG);
+ m_TbButtons[5].iString = (INT_PTR)TranslateT("Message &Log");
m_TbButtons[5].fsState = TBSTATE_ENABLED;
m_TbButtons[5].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[5].idCommand = 105;
m_TbButtons[5].dwData = reinterpret_cast<DWORD_PTR>(::GetSubMenu(PluginConfig.getMenuBar(), 2));
m_TbButtons[6].iBitmap = I_IMAGENONE;
- m_TbButtons[6].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_CONTAINER);
+ m_TbButtons[6].iString = (INT_PTR)TranslateT("&Container");
m_TbButtons[6].fsState = TBSTATE_ENABLED;
m_TbButtons[6].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[6].idCommand = 106;
m_TbButtons[6].dwData = reinterpret_cast<DWORD_PTR>(::GetSubMenu(PluginConfig.getMenuBar(), 3));
m_TbButtons[7].iBitmap = I_IMAGENONE;
- m_TbButtons[7].iString = (INT_PTR)CTranslator::get(CTranslator::GEN_MENUBAR_HELP);
+ m_TbButtons[7].iString = (INT_PTR)TranslateT("Help");
m_TbButtons[7].fsState = TBSTATE_ENABLED;
m_TbButtons[7].fsStyle = BTNS_DROPDOWN|BTNS_AUTOSIZE;
m_TbButtons[7].idCommand = 107;
@@ -1079,8 +1079,8 @@ LONG_PTR CALLBACK StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR
if ((int)iconNum == list_icons && pContainer) {
TCHAR wBuf[512];
- mir_sntprintf(wBuf, safe_sizeof(wBuf), CTranslator::get(CTranslator::CNT_SBAR_SOUNDS),
- pContainer->dwFlags & CNT_NOSOUND ? CTranslator::get(CTranslator::GEN_DISABLED) : CTranslator::get(CTranslator::GEN_ENABLED));
+ mir_sntprintf(wBuf, safe_sizeof(wBuf), TranslateT("Sounds are %s. Click to toggle status, hold SHIFT and click to set for all open containers"),
+ pContainer->dwFlags & CNT_NOSOUND ? TranslateT("disabled") : TranslateT("enabled"));
CallService(szTTService, (WPARAM)wBuf, (LPARAM)&ti);
tooltip_active = TRUE;
}
@@ -1088,15 +1088,15 @@ LONG_PTR CALLBACK StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR
int mtnStatus = (int)M->GetByte(dat->hContact, SRMSGMOD, SRMSGSET_TYPING, M->GetByte(SRMSGMOD, SRMSGSET_TYPINGNEW, SRMSGDEFSET_TYPINGNEW));
TCHAR wBuf[512];
- mir_sntprintf(wBuf, safe_sizeof(wBuf), CTranslator::get(CTranslator::CNT_SBAR_MTN),
- mtnStatus ? CTranslator::get(CTranslator::GEN_ENABLED) : CTranslator::get(CTranslator::GEN_DISABLED));
+ mir_sntprintf(wBuf, safe_sizeof(wBuf), TranslateT("Sending typing notifications is %s."),
+ mtnStatus ? TranslateT("enabled") : TranslateT("disabled"));
CallService(szTTService, (WPARAM)wBuf, (LPARAM)&ti);
tooltip_active = TRUE;
}
else if ((int)iconNum == list_icons + 2) {
TCHAR wBuf[512];
- mir_sntprintf(wBuf, safe_sizeof(wBuf), _T("%s"), CTranslator::get(CTranslator::CNT_SBAR_SLIST));
+ mir_sntprintf(wBuf, safe_sizeof(wBuf), _T("%s"), TranslateT("Session list.\nClick left for a list of open sessions.\nClick right to access favorites and quickly configure message window behavior"));
CallService(szTTService, (WPARAM)wBuf, (LPARAM)&ti);
tooltip_active = TRUE;
@@ -1119,7 +1119,7 @@ LONG_PTR CALLBACK StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR
tooltip_active = TRUE;
TCHAR wBuf[512];
- const TCHAR *szFormat = CTranslator::get(CTranslator::GEN_SBAR_TIP_MSGLENGTH);
+ const TCHAR *szFormat = TranslateT("There are %d pending send jobs. Message length: %d bytes, message length limit: %d bytes\n\n%d messages are queued for later delivery");
mir_sntprintf(wBuf, safe_sizeof(wBuf), szFormat, dat->iOpenJobs, iLength, dat->nMax ? dat->nMax : 20000, iQueued);
CallService(szTTService, (WPARAM)wBuf, (LPARAM)&ti);
diff --git a/plugins/TabSRMM/src/eventpopups.cpp b/plugins/TabSRMM/src/eventpopups.cpp
index d6eac87767..94cd6b315c 100644
--- a/plugins/TabSRMM/src/eventpopups.cpp
+++ b/plugins/TabSRMM/src/eventpopups.cpp
@@ -559,12 +559,12 @@ static TCHAR *GetPreviewT(WORD eventType, DBEVENTINFO* dbe)
return(buf);
}
}
- commentFix = mir_tstrdup(CTranslator::get(CTranslator::GEN_POPUPS_MESSAGE));
+ commentFix = mir_tstrdup(TranslateT("Message"));
break;
case EVENTTYPE_FILE:
if(pBlob) {
if (!nen_options.bPreview) {
- commentFix = mir_tstrdup(CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE));
+ commentFix = mir_tstrdup(TranslateT("Incoming file"));
break;
}
if(dbe->cbBlob > 5) { // min valid size = (sizeof(DWORD) + 1 character file name + terminating 0)
@@ -582,9 +582,9 @@ static TCHAR *GetPreviewT(WORD eventType, DBEVENTINFO* dbe)
TCHAR* tszDescr = DbGetEventStringT(dbe, szDescr);
if(tszFileName && tszDescr) {
- size_t uRequired = sizeof(TCHAR) * (_tcslen(CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE)) + namelength + _tcslen(tszDescr) + 10);
+ size_t uRequired = sizeof(TCHAR) * (_tcslen(TranslateT("Incoming file")) + namelength + _tcslen(tszDescr) + 10);
buf = (TCHAR *)mir_alloc(uRequired);
- mir_sntprintf(buf, uRequired, _T("%s: %s (%s)"), CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE),
+ mir_sntprintf(buf, uRequired, _T("%s: %s (%s)"), TranslateT("Incoming file"),
tszFileName, tszDescr);
mir_free(tszDescr);
mir_free(tszFileName);
@@ -593,21 +593,21 @@ static TCHAR *GetPreviewT(WORD eventType, DBEVENTINFO* dbe)
}
if(tszFileName) {
- size_t uRequired = sizeof(TCHAR) * (_tcslen(CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE)) + namelength +
- _tcslen(CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE_NODESC)) + 10);
+ size_t uRequired = sizeof(TCHAR) * (_tcslen(TranslateT("Incoming file")) + namelength +
+ _tcslen(TranslateT("No description given")) + 10);
buf = (TCHAR *)mir_alloc(uRequired);
- mir_sntprintf(buf, uRequired, _T("%s: %s (%s)"), CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE),
- tszFileName, CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE_NODESC));
+ mir_sntprintf(buf, uRequired, _T("%s: %s (%s)"), TranslateT("Incoming file"),
+ tszFileName, TranslateT("No description given"));
mir_free(tszFileName);
}
if(buf)
return(buf);
}
}
- commentFix = mir_tstrdup(CTranslator::get(CTranslator::GEN_STRING_EVENT_FILE_INVALID));
+ commentFix = mir_tstrdup(TranslateT("Incoming file (invalid format"));
break;
default:
- commentFix = mir_tstrdup(CTranslator::get(CTranslator::GEN_POPUPS_UNKNOWN));
+ commentFix = mir_tstrdup(TranslateT("Unknown event"));
break;
}
return commentFix;
@@ -635,7 +635,7 @@ static int PopupUpdateT(HANDLE hContact, HANDLE hEvent)
if (hEvent) {
if (pdata->pluginOptions->bShowHeaders) {
mir_sntprintf(pdata->szHeader, safe_sizeof(pdata->szHeader), _T("%s %d\n"),
- CTranslator::get(CTranslator::GEN_POPUPS_NEW), pdata->nrMerged + 1);
+ TranslateT("New messages: "), pdata->nrMerged + 1);
pdata->szHeader[255] = 0;
}
ZeroMemory(&dbe, sizeof(dbe));
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index 54337a5df2..b08957e938 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -521,7 +521,7 @@ LRESULT TSAPI DM_MsgWindowCmdHandler(HWND hwndDlg, TContainerData *m_pContainer,
if(sendLater->isAvail())
dat->sendMode ^= SMODE_SENDLATER;
else
- CWarning::show(CWarning::WARN_NO_SENDLATER, MB_OK|MB_ICONINFORMATION, CTranslator::get(CTranslator::QMGR_ERROR_NOMULTISEND));
+ CWarning::show(CWarning::WARN_NO_SENDLATER, MB_OK|MB_ICONINFORMATION, TranslateT("Configuration issue|The unattended send feature is disabled. The \\b1 send later\\b0 and \\b1 send to multiple contacts\\b0 features depend on it.\n\nYou must enable it under \\b1Options->Message Sessions->Advanced tweaks\\b0. Changing this option requires a restart."));
break;
case ID_SENDMENU_SENDWITHOUTTIMEOUTS:
dat->sendMode ^= SMODE_NOACK;
@@ -565,7 +565,7 @@ LRESULT TSAPI DM_MsgWindowCmdHandler(HWND hwndDlg, TContainerData *m_pContainer,
if(dat->fEditNotesActive) {
int iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_MESSAGE));
if(iLen != 0) {
- SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_MESSAGE, (LPARAM)CTranslator::get(CTranslator::GEN_MSG_NO_EDIT_NOTES));
+ SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_MESSAGE, (LPARAM)TranslateT("You cannot edit user notes when there are unsent messages"));
dat->fEditNotesActive = false;
break;
}
@@ -1219,7 +1219,7 @@ LRESULT TSAPI DM_UpdateLastMessage(const TWindowData *dat)
if (dat->showTyping) {
TCHAR szBuf[80];
- mir_sntprintf(szBuf, safe_sizeof(szBuf), CTranslator::get(CTranslator::GEN_MTN_STARTWITHNICK), dat->cache->getNick());
+ mir_sntprintf(szBuf, safe_sizeof(szBuf), TranslateT("%s is typing a message."), dat->cache->getNick());
SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM) szBuf);
SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, (LPARAM) PluginConfig.g_buttonBarIcons[ICON_DEFAULT_TYPING]);
return 0;
@@ -1242,7 +1242,7 @@ LRESULT TSAPI DM_UpdateLastMessage(const TWindowData *dat)
SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)fmt);
} else {
TCHAR fmt[100];
- mir_sntprintf(fmt, safe_sizeof(fmt), CTranslator::get(CTranslator::GEN_SBAR_LASTRECEIVED), date, time);
+ mir_sntprintf(fmt, safe_sizeof(fmt), TranslateT("Last received: %s at %s"), date, time);
SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM) fmt);
}
} else
@@ -1313,7 +1313,7 @@ LRESULT TSAPI DM_WMCopyHandler(HWND hwnd, WNDPROC oldWndProc, WPARAM wParam, LPA
HWND TSAPI DM_CreateClist(TWindowData *dat)
{
if (!sendLater->isAvail()) {
- CWarning::show(CWarning::WARN_NO_SENDLATER, MB_OK|MB_ICONINFORMATION, CTranslator::get(CTranslator::QMGR_ERROR_NOMULTISEND));
+ CWarning::show(CWarning::WARN_NO_SENDLATER, MB_OK|MB_ICONINFORMATION, TranslateT("Configuration issue|The unattended send feature is disabled. The \\b1 send later\\b0 and \\b1 send to multiple contacts\\b0 features depend on it.\n\nYou must enable it under \\b1Options->Message Sessions->Advanced tweaks\\b0. Changing this option requires a restart."));
dat->sendMode &= ~SMODE_MULTIPLE;
return(0);
}
@@ -1614,7 +1614,7 @@ void TSAPI DM_Typing(TWindowData *dat, bool fForceOff)
dat->nTypeSecs = 86400;
mir_sntprintf(dat->szStatusBar, safe_sizeof(dat->szStatusBar),
- CTranslator::get(CTranslator::GEN_MTN_STOPPED), dat->cache->getNick());
+ TranslateT("%s has entered text."), dat->cache->getNick());
if(hwndStatus && dat->pContainer->hwndActive == hwndDlg)
SendMessage(hwndStatus, SB_SETTEXT, 0, (LPARAM) dat->szStatusBar);
}
@@ -1639,7 +1639,7 @@ void TSAPI DM_Typing(TWindowData *dat, bool fForceOff)
}
else {
if (dat->nTypeSecs > 0) {
- mir_sntprintf(dat->szStatusBar, safe_sizeof(dat->szStatusBar), CTranslator::get(CTranslator::GEN_MTN_STARTWITHNICK), dat->cache->getNick());
+ mir_sntprintf(dat->szStatusBar, safe_sizeof(dat->szStatusBar), TranslateT("%s is typing a message."), dat->cache->getNick());
dat->nTypeSecs--;
if (hwndStatus && dat->pContainer->hwndActive == hwndDlg) {
@@ -1848,7 +1848,7 @@ void TSAPI DM_EventAdded(TWindowData *dat, WPARAM wParam, LPARAM lParam)
dat->iEventQueueSize += 10;
}
dat->hQueuedEvents[dat->iNextQueuedEvent++] = (HANDLE)lParam;
- mir_sntprintf(szBuf, safe_sizeof(szBuf), CTranslator::get(CTranslator::GEN_MSG_LOGFROZENQUEUED),
+ mir_sntprintf(szBuf, safe_sizeof(szBuf), TranslateT("Autoscrolling is disabled, %d message(s) queued (press F12 to enable it)"),
dat->iNextQueuedEvent);
SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, szBuf);
RedrawWindow(GetDlgItem(hwndDlg, IDC_LOGFROZENTEXT), NULL, NULL, RDW_INVALIDATE);
@@ -2024,12 +2024,12 @@ void TSAPI DM_UpdateTitle(TWindowData *dat, WPARAM wParam, LPARAM lParam)
SendMessage(hwndDlg, DM_UPDATEWINICON, 0, 0);
if (dat->bIsMeta)
mir_sntprintf(fulluin, safe_sizeof(fulluin),
- CTranslator::get(CTranslator::GEN_MSG_UINCOPY),
- iHasName ? dat->cache->getUIN() : CTranslator::get(CTranslator::GEN_MSG_NOUIN));
+ TranslateT("UID: %s (SHIFT click -> copy to clipboard)\nClick for User's Details\nRight click for MetaContact control\nClick dropdown to add or remove user from your favorites."),
+ iHasName ? dat->cache->getUIN() : TranslateT("No UID"));
else
mir_sntprintf(fulluin, safe_sizeof(fulluin),
- CTranslator::get(CTranslator::GEN_MSG_UINCOPY_NOMC),
- iHasName ? dat->cache->getUIN() : CTranslator::get(CTranslator::GEN_MSG_NOUIN));
+ TranslateT("UID: %s (SHIFT click -> copy to clipboard)\nClick for User's Details\nClick dropdown to change this contact's favorite status."),
+ iHasName ? dat->cache->getUIN() : TranslateT("No UID"));
SendMessage(GetDlgItem(hwndDlg, IDC_NAME), BUTTONADDTOOLTIP, /*iHasName ?*/ (WPARAM)fulluin /*: (WPARAM)_T("")*/, 0);
}
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp
index 4894e29681..a92d20c92c 100644
--- a/plugins/TabSRMM/src/globals.cpp
+++ b/plugins/TabSRMM/src/globals.cpp
@@ -308,7 +308,7 @@ void CGlobals::reloadSettings(bool fReloadSkins)
m_smcxicon = 16;
m_smcyicon = 16;
m_PasteAndSend = (int)M->GetByte("pasteandsend", 1);
- m_szNoStatus = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_NO_STATUS));
+ m_szNoStatus = TranslateT("No status message");
m_LangPackCP = ServiceExists(MS_LANGPACK_GETCODEPAGE) ? CallService(MS_LANGPACK_GETCODEPAGE, 0, 0) : CP_ACP;
m_visualMessageSizeIndicator = M->GetByte("msgsizebar", 0);
m_autoSplit = M->GetByte("autosplit", 0);
@@ -767,7 +767,7 @@ void CGlobals::RestoreUnreadMessageAlerts(void)
cle.hContact = hContact;
cle.hDbEvent = hDbEvent;
- mir_sntprintf(toolTip, safe_sizeof(toolTip), CTranslator::get(CTranslator::GEN_STRING_MESSAGEFROM),
+ mir_sntprintf(toolTip, safe_sizeof(toolTip), TranslateT("Message from %s"),
(TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM) hContact, GCDNF_TCHAR));
cle.ptszTooltip = toolTip;
CallService(MS_CLIST_ADDEVENT, 0, (LPARAM) & cle);
@@ -818,11 +818,11 @@ void CGlobals::logStatusChange(WPARAM wParam, const CContactCache *c)
if (c->isValid()) {
if (wStatus == ID_STATUS_OFFLINE)
- mir_sntprintf(buffer, safe_sizeof(buffer), CTranslator::get(CTranslator::GEN_MSG_SIGNEDOFF));
+ mir_sntprintf(buffer, safe_sizeof(buffer), TranslateT("signed off."));
else if (wOldStatus == ID_STATUS_OFFLINE)
- mir_sntprintf(buffer, safe_sizeof(buffer), CTranslator::get(CTranslator::GEN_MSG_SIGNEDON), szNewStatus);
+ mir_sntprintf(buffer, safe_sizeof(buffer), TranslateT("signed on and is now %s."), szNewStatus);
else
- mir_sntprintf(buffer, safe_sizeof(buffer), CTranslator::get(CTranslator::GEN_MSG_CHANGEDSTATUS), szOldStatus, szNewStatus);
+ mir_sntprintf(buffer, safe_sizeof(buffer), TranslateT("changed status from %s to %s."), szOldStatus, szNewStatus);
}
char *szMsg = M->utf8_encodeT(buffer);
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp
index c33dd35f90..11ede3460e 100644
--- a/plugins/TabSRMM/src/infopanel.cpp
+++ b/plugins/TabSRMM/src/infopanel.cpp
@@ -498,16 +498,16 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem)
TCHAR temp[256];
DBVARIANT dbv = {0};
if ( !M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
- mir_sntprintf(temp, SIZEOF(temp), CTranslator::get(CTranslator::GEN_IP_CLIENT), dbv.ptszVal);
+ mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), dbv.ptszVal);
::DBFreeVariant(&dbv);
}
- else mir_sntprintf(temp, SIZEOF(temp), CTranslator::get(CTranslator::GEN_IP_CLIENT_UNKNOWN));
+ else mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
if (m_dat->idle) {
time_t diff = time(NULL) - m_dat->idle;
int i_hrs = diff / 3600;
int i_mins = (diff - i_hrs * 3600) / 60;
- mir_sntprintf(szBuf, safe_sizeof(szBuf), CTranslator::get(CTranslator::GEN_IP_IDLENOTICE), tszUin, i_hrs, i_mins);
+ mir_sntprintf(szBuf, safe_sizeof(szBuf), TranslateT("%s Idle: %dh,%02dm"), tszUin, i_hrs, i_mins);
}
else _tcscpy_s (szBuf, 256, tszUin);
_tcscat_s(szBuf, 256, temp);
@@ -633,8 +633,8 @@ void CInfoPanel::Chat_RenderIPNickname(const HDC hdc, RECT& rcItem)
if(m_height < DEGRADE_THRESHOLD) {
TCHAR tszText[2048];
- mir_sntprintf(tszText, safe_sizeof(tszText), CTranslator::get(CTranslator::GEN_MUC_TOPIC_IS), si->ptszTopic ? si->ptszTopic :
- CTranslator::get(CTranslator::GEN_MUC_NO_TOPIC));
+ mir_sntprintf(tszText, safe_sizeof(tszText), TranslateT("Topic is: %s"), si->ptszTopic ? si->ptszTopic :
+ TranslateT("no topic set."));
hOldFont = reinterpret_cast<HFONT>(::SelectObject(hdc, m_ipConfig.hFonts[IPFONTID_UIN]));
CSkin::RenderText(hdc, m_dat->hThemeIP, tszText, &rcItem, DT_SINGLELINE | DT_END_ELLIPSIS | DT_NOPREFIX | DT_VCENTER,
@@ -692,7 +692,7 @@ void CInfoPanel::Chat_RenderIPSecondLine(const HDC hdc, RECT& rcItem)
hOldFont = reinterpret_cast<HFONT>(::SelectObject(hdc, m_ipConfig.hFonts[IPFONTID_UIN]));
clr = m_ipConfig.clrs[IPFONTID_UIN];
- const TCHAR *szTopicTitle = CTranslator::get(CTranslator::GEN_MUC_TOPIC_IS);
+ const TCHAR *szTopicTitle = TranslateT("Topic is: %s");
mir_sntprintf(szPrefix, 100, szTopicTitle, _T(""));
::GetTextExtentPoint32(hdc, szPrefix, lstrlen(szPrefix), &szTitle);
mapRealRect(rcItem, m_rcUIN, szTitle);
@@ -706,7 +706,7 @@ void CInfoPanel::Chat_RenderIPSecondLine(const HDC hdc, RECT& rcItem)
if(si->ptszTopic && lstrlen(si->ptszTopic) > 1)
CSkin::RenderText(hdc, m_dat->hThemeIP, si->ptszTopic, &rcItem, DT_WORDBREAK | DT_END_ELLIPSIS | DT_NOPREFIX | DT_TOP, CSkin::m_glowSize, clr);
else
- CSkin::RenderText(hdc, m_dat->hThemeIP, CTranslator::get(CTranslator::GEN_MUC_NO_TOPIC), &rcItem, DT_TOP| DT_SINGLELINE | DT_NOPREFIX, CSkin::m_glowSize, clr);
+ CSkin::RenderText(hdc, m_dat->hThemeIP, TranslateT("no topic set."), &rcItem, DT_TOP| DT_SINGLELINE | DT_NOPREFIX, CSkin::m_glowSize, clr);
if(hOldFont)
::SelectObject(hdc, hOldFont);
@@ -743,23 +743,23 @@ HMENU CInfoPanel::constructContextualMenu() const
HMENU m = ::CreatePopupMenu();
if(m_hoverFlags & HOVER_NICK) {
- Utils::addMenuItem(m, mii, ::LoadSkinnedIcon(SKINICON_OTHER_USERDETAILS), CTranslator::get(CTranslator::GEN_IP_MENU_USER_DETAILS),
+ Utils::addMenuItem(m, mii, ::LoadSkinnedIcon(SKINICON_OTHER_USERDETAILS), TranslateT("Open User Details..."),
IDC_NAME, 0);
- Utils::addMenuItem(m, mii, ::LoadSkinnedIcon(SKINICON_OTHER_HISTORY), CTranslator::get(CTranslator::GEN_IP_MENU_HISTORY),
+ Utils::addMenuItem(m, mii, ::LoadSkinnedIcon(SKINICON_OTHER_HISTORY), TranslateT("Open History..."),
m_isChat ? IDC_CHAT_HISTORY : IDC_HISTORY, 0);
if (!m_isChat)
- Utils::addMenuItem(m, mii, PluginConfig.g_iconContainer, CTranslator::get(CTranslator::GEN_IP_MENU_MSGPREFS),
+ Utils::addMenuItem(m, mii, PluginConfig.g_iconContainer, TranslateT("Messaging Settings..."),
ID_MESSAGELOGSETTINGS_FORTHISCONTACT, 1);
else {
- ::AppendMenu(m, MF_STRING, IDC_CHANMGR, CTranslator::get(CTranslator::GEN_IP_MENU_ROOMPREFS));
+ ::AppendMenu(m, MF_STRING, IDC_CHANMGR, TranslateT("Room Settings..."));
if(GCW_SERVER & m_dat->si->iType)
::EnableMenuItem(m, IDC_CHANMGR, MF_BYCOMMAND | MF_GRAYED);
}
::AppendMenu(m, MF_SEPARATOR, 1000, 0);
- Utils::addMenuItem(m, mii, PluginConfig.g_buttonBarIcons[6], CTranslator::get(CTranslator::GEN_MSG_CLOSE), IDC_SAVE, 4);
+ Utils::addMenuItem(m, mii, PluginConfig.g_buttonBarIcons[6], TranslateT("Close Session"), IDC_SAVE, 4);
}
::AppendMenu(m, MF_SEPARATOR, 1000, 0);
- ::AppendMenu(m, MF_STRING, CMD_IP_COPY, CTranslator::get(CTranslator::GEN_IP_MENU_COPY));
+ ::AppendMenu(m, MF_STRING, CMD_IP_COPY, TranslateT("Copy To Clipboard"));
return(m);
}
@@ -920,8 +920,8 @@ void CInfoPanel::showTip(UINT ctrlId, const LPARAM lParam)
tstring *str = new tstring(temp);
- mir_sntprintf(temp, 1024, CTranslator::get(CTranslator::GEN_INFOTIP_STATUSMSG),
- m_dat->cache->getStatusMsg() ? m_dat->cache->getStatusMsg() : CTranslator::get(CTranslator::GEN_NO_STATUS));
+ mir_sntprintf(temp, 1024, TranslateT("\\tab \\ul\\b Status message:\\ul0\\b0 \\par %s"),
+ m_dat->cache->getStatusMsg() ? m_dat->cache->getStatusMsg() : TranslateT("No status message"));
str->append(temp);
if ((xStatus = m_dat->cache->getXStatusId())) {
@@ -932,7 +932,7 @@ void CInfoPanel::showTip(UINT ctrlId, const LPARAM lParam)
tszXStatusName = xStatusDescr[xStatus - 1];
if(tszXStatusName) {
- str->append(CTranslator::get(CTranslator::GEN_INFOTIP_XSTATUS));
+ str->append(TranslateT("\\par\\par\\tab \\ul\\b Extended status information:\\ul0\\b0 \\par "));
mir_sntprintf(temp, 1024, _T("%s%s%s"), tszXStatusName, m_dat->cache->getXStatusMsg() ? _T(" / ") : _T(""),
m_dat->cache->getXStatusMsg() ? m_dat->cache->getXStatusMsg() : _T(""));
str->append(temp);
@@ -942,12 +942,12 @@ void CInfoPanel::showTip(UINT ctrlId, const LPARAM lParam)
}
if(m_dat->cache->getListeningInfo()) {
- mir_sntprintf(temp, 1024, CTranslator::get(CTranslator::GEN_INFOTIP_LISTENING), m_dat->cache->getListeningInfo());
+ mir_sntprintf(temp, 1024, TranslateT("\\par\\par\\tab \\ul\\b Listening to:\\ul0\\b0 \\par %s"), m_dat->cache->getListeningInfo());
str->append(temp);
}
if(0 == M->GetTString(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
- mir_sntprintf(temp, 1024, CTranslator::get(CTranslator::GEN_INFOTIP_CLIENT), dbv.ptszVal);
+ mir_sntprintf(temp, 1024, TranslateT("\\par\\par\\ul\\b Client:\\ul0\\b0 %s"), dbv.ptszVal);
::DBFreeVariant(&dbv);
str->append(temp);
}
@@ -975,7 +975,7 @@ void CInfoPanel::showTip(UINT ctrlId, const LPARAM lParam)
m_tip->show(rc, pt, m_dat->hTabIcon, m_dat->szStatus);
return;
}
- mir_sntprintf(szTitle, safe_sizeof(szTitle), CTranslator::get(CTranslator::GEN_IP_TIP_TITLE));
+ mir_sntprintf(szTitle, safe_sizeof(szTitle), TranslateT("tabSRMM Information"));
::SendMessage(m_dat->hwndTip, TTM_UPDATETIPTEXT, 0, (LPARAM)&m_dat->ti);
::SendMessage(m_dat->hwndTip, TTM_SETMAXTIPWIDTH, 0, 350);
@@ -1122,24 +1122,24 @@ INT_PTR CALLBACK CInfoPanel::ConfigDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L
case WM_INITDIALOG: {
TCHAR tszTitle[100];
- mir_sntprintf(tszTitle, 100, CTranslator::getOpt(CTranslator::OPT_IPANEL_VISBILITY_TITLE),
- m_isChat ? CTranslator::getOpt(CTranslator::OPT_IPANEL_VISIBILTY_CHAT) : CTranslator::getOpt(CTranslator::OPT_IPANEL_VISIBILTY_IM));
+ mir_sntprintf(tszTitle, 100, TranslateT("Set panel visibility for this %s"),
+ m_isChat ? TranslateT("chat room") : TranslateT("contact"));
::SetDlgItemText(hwnd, IDC_STATIC_VISIBILTY, tszTitle);
- mir_sntprintf(tszTitle, 100, m_isChat ? CTranslator::getOpt(CTranslator::OPT_IPANEL_SYNC_TITLE_IM) :
- CTranslator::getOpt(CTranslator::OPT_IPANEL_SYNC_TITLE_MUC));
+ mir_sntprintf(tszTitle, 100, m_isChat ? TranslateT("Do not synchronize the panel height with IM windows") :
+ TranslateT("Do not synchronize the panel height with group chat windows"));
::SetDlgItemText(hwnd, IDC_NOSYNC, tszTitle);
- ::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_IPANEL_VIS_INHERIT));
- ::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_IPANEL_VIS_OFF));
- ::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_IPANEL_VIS_ON));
+ ::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Inherit from container setting"));
+ ::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always off"));
+ ::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always on"));
BYTE v = M->GetByte(m_dat->hContact, "infopanel", 0);
::SendDlgItemMessage(hwnd, IDC_PANELVISIBILITY, CB_SETCURSEL, (WPARAM)(v == 0 ? 0 : (v == (BYTE)-1 ? 1 : 2)), 0);
- ::SendDlgItemMessage(hwnd, IDC_PANELSIZE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_IPANEL_SIZE_GLOBAL));
- ::SendDlgItemMessage(hwnd, IDC_PANELSIZE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_IPANEL_SIZE_PRIVATE));
+ ::SendDlgItemMessage(hwnd, IDC_PANELSIZE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use default size"));
+ ::SendDlgItemMessage(hwnd, IDC_PANELSIZE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use private size"));
::SendDlgItemMessage(hwnd, IDC_PANELSIZE, CB_SETCURSEL, (WPARAM)(m_fPrivateHeight ? 1 : 0), 0);
@@ -1149,9 +1149,9 @@ INT_PTR CALLBACK CInfoPanel::ConfigDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L
if (!m_isChat) {
v = M->GetByte(m_dat->hContact, SRMSGMOD_T, "hideavatar", -1);
- ::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPGLOBAL));
- ::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_AVON));
- ::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_AVOFF));
+ ::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use Global Setting"));
+ ::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Show always (if present)"));
+ ::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Never show it at all"));
::SendDlgItemMessage(hwnd, IDC_PANELPICTUREVIS, CB_SETCURSEL, (v == (BYTE)-1 ? 0 : (v == 1 ? 1 : 2)), 0);
}
else
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp
index d473020e39..c57269f1d2 100644
--- a/plugins/TabSRMM/src/mim.cpp
+++ b/plugins/TabSRMM/src/mim.cpp
@@ -621,12 +621,12 @@ int CMimAPI::TypingMessage(WPARAM wParam, LPARAM lParam)
if ((int) lParam) {
TCHAR szTip[256];
- _sntprintf(szTip, SIZEOF(szTip), CTranslator::get(CTranslator::GEN_MTN_STARTWITHNICK), (TCHAR *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, wParam, GCDNF_TCHAR));
+ _sntprintf(szTip, SIZEOF(szTip), TranslateT("%s is typing a message."), (TCHAR *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, wParam, GCDNF_TCHAR));
if (fShowOnClist && ServiceExists(MS_CLIST_SYSTRAY_NOTIFY) && M->GetByte(SRMSGMOD, "ShowTypingBalloon", 0)) {
MIRANDASYSTRAYNOTIFY tn;
tn.szProto = NULL;
tn.cbSize = sizeof(tn);
- tn.tszInfoTitle = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_MTN_TTITLE));
+ tn.tszInfoTitle = TranslateT("Typing Notification");
tn.tszInfo = szTip;
tn.dwInfoFlags = NIIF_INFO | NIIF_INTERN_UNICODE;
tn.uTimeout = 1000 * 4;
@@ -922,7 +922,7 @@ nowindowcreate:
cle.hIcon = LoadSkinnedIcon(SKINICON_EVENT_MESSAGE);
cle.pszService = "SRMsg/ReadMessage";
contactName = (TCHAR*) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, wParam, GCDNF_TCHAR);
- mir_sntprintf(toolTip, SIZEOF(toolTip), CTranslator::get(CTranslator::GEN_MSG_TTITLE), contactName);
+ mir_sntprintf(toolTip, SIZEOF(toolTip), TranslateT("Message from %s"), contactName);
cle.ptszTooltip = toolTip;
CallService(MS_CLIST_ADDEVENT, 0, (LPARAM) & cle);
}
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 306258ad61..36fffd8b1f 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -53,11 +53,11 @@ static const UINT errorControls[] = { IDC_STATICERRORICON, IDC_STATICTEXT, ID
static struct _tooltips {
int id;
- int translate_id;
+ const TCHAR* text;
} tooltips[] = {
- IDC_ADD, CTranslator::GEN_TOOLTIP_ADDCONTACT,
- IDC_CANCELADD, CTranslator::GEN_TOOLTIP_DONTADD,
- IDC_TOGGLESIDEBAR, CTranslator::GEN_TOOLTIP_EXPANDSIDEBAR,
+ IDC_ADD, _T("Add this contact permanently to your contact list"),
+ IDC_CANCELADD, _T("Do not add this contact permanently"),
+ IDC_TOGGLESIDEBAR, _T("Expand or collapse the side bar")
-1, NULL
};
@@ -150,7 +150,7 @@ static void ShowPopupMenu(TWindowData *dat, int idFrom, HWND hwndFrom, POINT pt)
int i;
//MAD: quote mod
InsertMenuA(hSubMenu, 6/*5*/, MF_BYPOSITION | MF_SEPARATOR, 0, 0);
- InsertMenu(hSubMenu, 7/*6*/, MF_BYPOSITION | MF_POPUP, (UINT_PTR) PluginConfig.g_hMenuEncoding, CTranslator::get(CTranslator::GEN_MSG_ENCODING));
+ InsertMenu(hSubMenu, 7/*6*/, MF_BYPOSITION | MF_POPUP, (UINT_PTR) PluginConfig.g_hMenuEncoding, TranslateT("Character Encoding"));
for (i = 0; i < GetMenuItemCount(PluginConfig.g_hMenuEncoding); i++)
CheckMenuItem(PluginConfig.g_hMenuEncoding, i, MF_BYPOSITION | MF_UNCHECKED);
if (dat->codePage == CP_ACP)
@@ -482,7 +482,7 @@ void TSAPI SetDialogToType(HWND hwndDlg)
dat->bNotOnList = TRUE;
ShowMultipleControls(hwndDlg, addControls, 2, SW_SHOW);
Utils::showDlgControl(hwndDlg, IDC_LOGFROZENTEXT, SW_SHOW);
- SetWindowText(GetDlgItem(hwndDlg, IDC_LOGFROZENTEXT), CTranslator::get(CTranslator::GEN_MSG_CONTACT_NOT_ON_LIST));
+ SetWindowText(GetDlgItem(hwndDlg, IDC_LOGFROZENTEXT), TranslateT("Contact not on list. You may add it..."));
} else {
ShowMultipleControls(hwndDlg, addControls, 2, SW_HIDE);
dat->bNotOnList = FALSE;
@@ -509,7 +509,7 @@ void TSAPI SetDialogToType(HWND hwndDlg)
if (dat->pContainer->hwndActive == hwndDlg)
UpdateReadChars(dat);
- SetDlgItemText(hwndDlg, IDC_STATICTEXT, CTranslator::get(CTranslator::GEN_MSG_FAILEDSEND));
+ SetDlgItemText(hwndDlg, IDC_STATICTEXT, TranslateT("A message failed to send successfully."));
DM_RecalcPictureSize(dat);
GetAvatarVisibility(hwndDlg, dat);
@@ -716,9 +716,9 @@ static LRESULT CALLBACK MessageEditSubclassProc(HWND hwnd, UINT msg, WPARAM wPar
if (lstrlenA((char *)hClip) > mwdat->nMax) {
TCHAR szBuffer[512];
if (M->GetByte("autosplit", 0))
- _sntprintf(szBuffer, 512, CTranslator::get(CTranslator::GEN_MSG_TOO_LONG_SPLIT), mwdat->nMax - 10);
+ _sntprintf(szBuffer, 512, TranslateT("WARNING: The message you are trying to paste exceeds the message size limit for the active protocol. It will be sent in chunks of max %d characters"), mwdat->nMax - 10);
else
- _sntprintf(szBuffer, 512, CTranslator::get(CTranslator::GEN_MSG_TOO_LONG_NOSPLIT), mwdat->nMax);
+ _sntprintf(szBuffer, 512, TranslateT("The message you are trying to paste exceeds the message size limit for the active protocol. Only the first %d characters will be sent."), mwdat->nMax);
SendMessage(hwndParent, DM_ACTIVATETOOLTIP, IDC_MESSAGE, (LPARAM)szBuffer);
}
}
@@ -1336,8 +1336,8 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
DM_ThemeChanged(dat);
- pszIDCSAVE_close = CTranslator::get(CTranslator::GEN_MSG_CLOSE);
- pszIDCSAVE_save = CTranslator::get(CTranslator::GEN_MSG_SAVEANDCLOSE);
+ pszIDCSAVE_close = TranslateT("Close Session");
+ pszIDCSAVE_save = TranslateT("Save and close session");
dat->hContact = newData->hContact;
@@ -1473,15 +1473,15 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
for (i = 0;;i++) {
if (tooltips[i].id == -1)
break;
- SendDlgItemMessage(hwndDlg, tooltips[i].id, BUTTONADDTOOLTIP, (WPARAM)CTranslator::get(tooltips[i].translate_id), 0);
+ SendDlgItemMessage(hwndDlg, tooltips[i].id, BUTTONADDTOOLTIP, (WPARAM)TranslateTS(tooltips[i].text), 0);
}
- SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, dat->bNotOnList ? CTranslator::get(CTranslator::GEN_MSG_CONTACT_NOT_ON_LIST) :
- CTranslator::get(CTranslator::GEN_MSG_LOGFROZENSTATIC));
+ SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, dat->bNotOnList ? TranslateT("Contact not on list. You may add it...") :
+ TranslateT("Autoscrolling is disabled (press F12 to enable it)"));
SendMessage(GetDlgItem(hwndDlg, IDC_SAVE), BUTTONADDTOOLTIP, (WPARAM)pszIDCSAVE_close, 0);
- SendMessage(GetDlgItem(hwndDlg, IDC_PROTOCOL), BUTTONADDTOOLTIP, (WPARAM) CTranslator::get(CTranslator::GEN_MSG_TIP_CONTACTMENU), 0);
+ SendMessage(GetDlgItem(hwndDlg, IDC_PROTOCOL), BUTTONADDTOOLTIP, (WPARAM) TranslateT("Click for contact menu\nClick dropdown for window settings"), 0);
- SetWindowText(GetDlgItem(hwndDlg, IDC_RETRY), CTranslator::get(CTranslator::GEN_MSG_BUTTON_RETRY));
+ SetWindowText(GetDlgItem(hwndDlg, IDC_RETRY), TranslateT("Retry"));
{
UINT _ctrls[] = {IDC_RETRY, IDC_CANCELSEND, IDC_MSGSENDLATER};
@@ -1493,8 +1493,8 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
}
}
- SetWindowText(GetDlgItem(hwndDlg, IDC_CANCELSEND), CTranslator::get(CTranslator::GEN_MSG_BUTTON_CANCEL));
- SetWindowText(GetDlgItem(hwndDlg, IDC_MSGSENDLATER), CTranslator::get(CTranslator::GEN_MSG_BUTTON_SENDLATER));
+ SetWindowText(GetDlgItem(hwndDlg, IDC_CANCELSEND), TranslateT("Cancel"));
+ SetWindowText(GetDlgItem(hwndDlg, IDC_MSGSENDLATER), TranslateT("Send later"));
SendDlgItemMessage(hwndDlg, IDC_LOG, EM_SETUNDOLIMIT, 0, 0);
SendDlgItemMessage(hwndDlg, IDC_LOG, EM_SETEVENTMASK, 0, ENM_MOUSEEVENTS | ENM_KEYEVENTS | ENM_LINK);
@@ -1971,7 +1971,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
RedrawWindow(hwndDlg, 0, 0, RDW_INVALIDATE|RDW_ERASE|RDW_UPDATENOW|RDW_ALLCHILDREN);
}
else
- CWarning::show(CWarning::WARN_NO_SENDLATER, MB_OK|MB_ICONINFORMATION, CTranslator::get(CTranslator::QMGR_ERROR_NOMULTISEND));
+ CWarning::show(CWarning::WARN_NO_SENDLATER, MB_OK|MB_ICONINFORMATION, TranslateT("Configuration issue|The unattended send feature is disabled. The \\b1 send later\\b0 and \\b1 send to multiple contacts\\b0 features depend on it.\n\nYou must enable it under \\b1Options->Message Sessions->Advanced tweaks\\b0. Changing this option requires a restart."));
return(_dlgReturn(hwndDlg, 1));
case TABSRMM_HK_TOGGLERTL:
{
@@ -2119,9 +2119,9 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
dat->dwFlagsEx ^= MWF_SHOW_SCROLLINGDISABLED;
Utils::showDlgControl(hwndDlg, IDC_LOGFROZENTEXT, (dat->bNotOnList || dat->dwFlagsEx & MWF_SHOW_SCROLLINGDISABLED) ? SW_SHOW : SW_HIDE);
if (!(dat->dwFlagsEx & MWF_SHOW_SCROLLINGDISABLED))
- SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, CTranslator::get(CTranslator::GEN_MSG_CONTACT_NOT_ON_LIST));
+ SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, TranslateT("Contact not on list. You may add it..."));
else
- SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, CTranslator::get(CTranslator::GEN_MSG_LOGFROZENSTATIC));
+ SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, TranslateT("Autoscrolling is disabled (press F12 to enable it)"));
SendMessage(hwndDlg, WM_SIZE, 0, 0);
DM_ScrollToBottom(dat, 1, 1);
return(_dlgReturn(hwndDlg, 1));
@@ -2264,7 +2264,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
SendMessage(GetDlgItem(hwndDlg, IDC_LOG), WM_COPY, 0, 0);
SetFocus(GetDlgItem(hwndDlg, IDC_MESSAGE));
if (m_pContainer->hwndStatus)
- SendMessage(m_pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)CTranslator::get(CTranslator::GEN_MSG_SEL_COPIED));
+ SendMessage(m_pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)TranslateT("Selection copied to clipboard"));
}
}
}
@@ -2616,8 +2616,8 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
StreamInEvents(hwndDlg, dat->hQueuedEvents[i], 1, 1, NULL);
}
dat->iNextQueuedEvent = 0;
- SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, dat->bNotOnList ? CTranslator::get(CTranslator::GEN_MSG_CONTACT_NOT_ON_LIST) :
- CTranslator::get(CTranslator::GEN_MSG_LOGFROZENSTATIC));
+ SetDlgItemText(hwndDlg, IDC_LOGFROZENTEXT, dat->bNotOnList ? TranslateT("Contact not on list. You may add it...") :
+ TranslateT("Autoscrolling is disabled (press F12 to enable it)"));
return 0;
}
case DM_SCROLLIEVIEW: {
@@ -2698,8 +2698,8 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
if (iIndex < SendQueue::NR_SENDJOBS) { // single sendjob timer
SendJob *job = sendQueue->getJobByIndex(iIndex);
KillTimer(hwndDlg, wParam);
- mir_sntprintf(job->szErrorMsg, safe_sizeof(job->szErrorMsg), CTranslator::get(CTranslator::GEN_MSG_DELIVERYFAILURE),
- CTranslator::get(CTranslator::GEN_MSG_SENDTIMEOUT));
+ mir_sntprintf(job->szErrorMsg, safe_sizeof(job->szErrorMsg), TranslateT("Delivery failure: %s"),
+ TranslateT("The message send timed out"));
job->iStatus = SendQueue::SQ_ERROR;
if (!nen_options.iNoSounds && !(m_pContainer->dwFlags & CNT_NOSOUND))
SkinPlaySound("SendError");
@@ -2983,7 +2983,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
switch (LOWORD(wParam)) {
case IDOK: {
if(dat->fEditNotesActive) {
- SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_PIC, (LPARAM)CTranslator::get(CTranslator::GEN_MSG_EDIT_NOTES_TIP));
+ SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_PIC, (LPARAM)TranslateT("You are editing the user notes. Click the button again or use the hotkey (default: Alt-N) to save the notes and return to normal messaging mode"));
return(0);
}
int bufSize = 0, memRequired = 0, flags = 0;
@@ -3322,7 +3322,7 @@ quote_from_last:
struct TContainerData *pNewContainer = 0;
TCHAR *szNewName = (TCHAR *)lParam;
- if (!_tcscmp(szNewName, CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME)))
+ if (!_tcscmp(szNewName, TranslateT("Default container")))
szNewName = CGlobals::m_default_container_name;
int iOldItems = TabCtrl_GetItemCount(hwndTab);
@@ -3412,7 +3412,7 @@ quote_from_last:
mir_snprintf(szTemp, sizeof(szTemp), "Status%d", isForced);
if (DBGetContactSettingWord(dat->hContact, PluginConfig.szMetaName, szTemp, 0) == ID_STATUS_OFFLINE) {
TCHAR szBuffer[200];
- mir_sntprintf(szBuffer, 200, CTranslator::get(CTranslator::GEN_MSG_MC_OFFLINEPROTOCOL));
+ mir_sntprintf(szBuffer, 200, TranslateT("Warning: you have selected a subprotocol for sending the following messages which is currently offline"));
SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_MESSAGE, (LPARAM)szBuffer);
}
}
@@ -3527,7 +3527,7 @@ quote_from_last:
if (!(pcaps & PF4_OFFLINEFILES)) {
TCHAR szBuffer[256];
- _sntprintf(szBuffer, safe_sizeof(szBuffer), CTranslator::get(CTranslator::GEN_MSG_OFFLINE_NO_FILE));
+ _sntprintf(szBuffer, safe_sizeof(szBuffer), TranslateT("Contact is offline and this protocol does not support sending files to offline users."));
SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_MESSAGE, (LPARAM)szBuffer);
break;
}
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 3a85f830d7..27bb4741cb 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -164,8 +164,8 @@ static void SaveAvatarToFile(TWindowData *dat, HBITMAP hbm, int isOwnPic)
if (CreateDirectory(szFinalPath, 0) == 0) {
if (GetLastError() != ERROR_ALREADY_EXISTS) {
- MessageBox(0, CTranslator::get(CTranslator::GEN_MSG_SAVE_NODIR),
- CTranslator::get(CTranslator::GEN_MSG_SAVE), MB_OK | MB_ICONSTOP);
+ MessageBox(0, TranslateT("Error creating destination directory"),
+ TranslateT("Save contact picture"), MB_OK | MB_ICONSTOP);
return;
}
}
@@ -201,8 +201,8 @@ static void SaveAvatarToFile(TWindowData *dat, HBITMAP hbm, int isOwnPic)
ofn.lCustData = (LPARAM) & setView;
if (GetSaveFileName(&ofn)) {
if (PathFileExists(szFinalFilename)) {
- if (MessageBox(0, CTranslator::get(CTranslator::GEN_MSG_SAVE_FILE_EXISTS),
- CTranslator::get(CTranslator::GEN_MSG_SAVE), MB_YESNO | MB_ICONQUESTION) == IDNO)
+ if (MessageBox(0, TranslateT("The file exists. Do you want to overwrite it?"),
+ TranslateT("Save contact picture"), MB_YESNO | MB_ICONQUESTION) == IDNO)
return;
}
IMGSRVC_INFO ii;
@@ -357,12 +357,12 @@ int TSAPI MsgWindowUpdateMenu(TWindowData *dat, HMENU submenu, int menuID)
CheckMenuItem(submenu, ID_PICMENU_ALWAYSKEEPTHEBUTTONBARATFULLWIDTH, MF_BYCOMMAND | (PluginConfig.m_AlwaysFullToolbarWidth ? MF_CHECKED : MF_UNCHECKED));
if (!fInfoPanel) {
EnableMenuItem(submenu, ID_PICMENU_SETTINGS, MF_BYCOMMAND | (ServiceExists(MS_AV_GETAVATARBITMAP) ? MF_ENABLED : MF_GRAYED));
- szText = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_AVATAR_SETTINGS));
+ szText = TranslateT("Contact Picture Settings...");
EnableMenuItem(submenu, 0, MF_BYPOSITION | MF_ENABLED);
} else {
EnableMenuItem(submenu, 0, MF_BYPOSITION | MF_GRAYED);
EnableMenuItem(submenu, ID_PICMENU_SETTINGS, MF_BYCOMMAND | ((ServiceExists(MS_AV_SETMYAVATAR) && CallService(MS_AV_CANSETMYAVATAR, (WPARAM)(dat->cache->getActiveProto()), 0)) ? MF_ENABLED : MF_GRAYED));
- szText = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_AVATAR_SETOWN));
+ szText = TranslateT("Set Your Avatar...");
}
mii.dwTypeData = szText;
mii.cch = lstrlen(szText) + 1;
@@ -1719,7 +1719,7 @@ void TSAPI HandlePasteAndSend(const TWindowData *dat)
UINT ctrlID = dat->bType == SESSIONTYPE_IM ? IDC_MESSAGE : IDC_CHAT_MESSAGE;
if (!PluginConfig.m_PasteAndSend) {
- SendMessage(dat->hwnd, DM_ACTIVATETOOLTIP, ctrlID, (LPARAM)CTranslator::get(CTranslator::GEN_WARNING_PASTEANDSEND_DISABLED));
+ SendMessage(dat->hwnd, DM_ACTIVATETOOLTIP, ctrlID, (LPARAM)TranslateT("The 'paste and send' feature is disabled. You can enable it on the 'General' options page in the 'Sending Messages' section"));
return; // feature disabled
}
@@ -2239,7 +2239,7 @@ void TSAPI SendNudge(const TWindowData *dat)
CallService(MS_NUDGE_SEND, (WPARAM)dat->cache->getActiveContact(), 0);
else
SendMessage(dat->hwnd, DM_ACTIVATETOOLTIP, IDC_MESSAGE,
- (LPARAM)CTranslator::get(CTranslator::GEN_WARNING_NUDGE_DISABLED));
+ (LPARAM)TranslateT("Either the nudge plugin is not installed or the contact's protocol does not support sending a nudge event."));
}
void TSAPI GetClientIcon(TWindowData *dat)
@@ -2271,8 +2271,8 @@ void TSAPI GetMyNick(TWindowData *dat)
if (!CallService(MS_CONTACT_GETCONTACTINFO, 0, (LPARAM)&ci)) {
if (ci.type == CNFT_ASCIIZ) {
if (lstrlen(reinterpret_cast<TCHAR *>(ci.pszVal)) < 1 || !_tcscmp(reinterpret_cast<TCHAR *>(ci.pszVal),
- CTranslator::get(CTranslator::GEN_UNKNOWN_CONTACT))) {
- mir_sntprintf(dat->szMyNickname, safe_sizeof(dat->szMyNickname), _T("%s"), dat->myUin[0] ? dat->myUin : CTranslator::get(CTranslator::GEN_UNKNOWN_CONTACT));
+ TranslateT("'(Unknown Contact)'"))) {
+ mir_sntprintf(dat->szMyNickname, safe_sizeof(dat->szMyNickname), _T("%s"), dat->myUin[0] ? dat->myUin : TranslateT("'(Unknown Contact)'"));
if (ci.pszVal) {
mir_free(ci.pszVal);
ci.pszVal = NULL;
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index ff5fd5a68b..4e4e95c037 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -62,8 +62,16 @@ struct TCpTable cpTable[] = {
{ -1, NULL}
};
-static TCHAR *Template_MakeRelativeDate(struct TWindowData *dat, HANDLE hTimeZone, time_t check, int groupBreak, TCHAR code);
-static void ReplaceIcons(HWND hwndDlg, struct TWindowData *dat, LONG startAt, int fAppend, BOOL isSent);
+wchar_t* weekDays[7] = {LPGENT("Sunday"), LPGENT("Monday"), LPGENT("Tuesday"), LPGENT("Wednesday"), LPGENT("Thursday"), LPGENT("Friday"), LPGENT("Saturday")};
+
+wchar_t* months[12] =
+{
+ LPGENT("January"), LPGENT("February"), LPGENT("March"), LPGENT("April"), LPGENT("May"), LPGENT("June"),
+ LPGENT("July"), LPGENT("August"), LPGENT("September"), LPGENT("October"), LPGENT("November"), LPGENT("December")
+};
+
+static TCHAR *Template_MakeRelativeDate(struct TWindowData *dat, HANDLE hTimeZone, time_t check, int groupBreak, TCHAR code);
+static void ReplaceIcons(HWND hwndDlg, struct TWindowData *dat, LONG startAt, int fAppend, BOOL isSent);
static time_t today;
@@ -143,8 +151,8 @@ void TSAPI CacheLogFonts()
}
wsprintfA(rtfFontsGlobal[MSGDLGFONTCOUNT], "\\f%u\\cf%u\\b%d\\i%d\\fs%u", MSGDLGFONTCOUNT, MSGDLGFONTCOUNT, 0, 0, 0);
- _tcsncpy(szToday, CTranslator::get(CTranslator::GEN_LOG_TODAY), 20);
- _tcsncpy(szYesterday, CTranslator::get(CTranslator::GEN_LOG_YESTERDAY), 20);
+ _tcsncpy(szToday, TranslateT("Today"), 20);
+ _tcsncpy(szYesterday, TranslateT("Yesterday"), 20);
szToday[19] = szYesterday[19] = 0;
/*
@@ -887,12 +895,10 @@ static char *Template_CreateRTFFromDbEvent(struct TWindowData *dat, HANDLE hCont
case'O': // month (name)
if (showTime && showDate) {
if (skipFont)
- AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, const_cast<TCHAR *>(CTranslator::getMonth(event_time.tm_mon)),
- MAKELONG(isSent, dat->isHistory));
+ AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, TranslateTS( months[event_time.tm_mon]), MAKELONG(isSent, dat->isHistory));
else {
AppendToBuffer(&buffer, &bufferEnd, &bufferAlloced, "%s ", GetRTFFont(isSent ? MSGFONTID_MYTIME + iFontIDOffset : MSGFONTID_YOURTIME + iFontIDOffset));
- AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, const_cast<TCHAR *>(CTranslator::getMonth(event_time.tm_mon)),
- MAKELONG(isSent, dat->isHistory));
+ AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, TranslateTS( months[ event_time.tm_mon]), MAKELONG(isSent, dat->isHistory));
}
} else
skipToNext = TRUE;
@@ -909,10 +915,10 @@ static char *Template_CreateRTFFromDbEvent(struct TWindowData *dat, HANDLE hCont
case 'w': // day of week
if (showTime && showDate) {
if (skipFont)
- AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, const_cast<TCHAR *>(CTranslator::getWeekday(event_time.tm_wday)), MAKELONG(isSent, dat->isHistory));
+ AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, TranslateTS( weekDays[event_time.tm_wday]), MAKELONG(isSent, dat->isHistory));
else {
AppendToBuffer(&buffer, &bufferEnd, &bufferAlloced, "%s ", GetRTFFont(isSent ? MSGFONTID_MYTIME + iFontIDOffset : MSGFONTID_YOURTIME + iFontIDOffset));
- AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, const_cast<TCHAR *>(CTranslator::getWeekday(event_time.tm_wday)), MAKELONG(isSent, dat->isHistory));
+ AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, TranslateTS( weekDays[event_time.tm_wday]), MAKELONG(isSent, dat->isHistory));
}
} else
skipToNext = TRUE;
@@ -1581,16 +1587,16 @@ static BOOL CALLBACK LangAddCallback(LPTSTR str)
cp = _ttoi(str);
count = sizeof(cpTable) / sizeof(cpTable[0]);
for (i = 0; i < count && cpTable[i].cpId != cp; i++);
- if (i < count) {
+ if (i < count)
AppendMenu(PluginConfig.g_hMenuEncoding, MF_STRING, cp, TranslateTS(cpTable[i].cpName));
- }
+
return TRUE;
}
void TSAPI BuildCodePageList()
{
PluginConfig.g_hMenuEncoding = CreateMenu();
- AppendMenu(PluginConfig.g_hMenuEncoding, MF_STRING, 500, CTranslator::get(CTranslator::GEN_LOG_USEDEFAULTCP));
+ AppendMenu(PluginConfig.g_hMenuEncoding, MF_STRING, 500, TranslateT("Use default codepage"));
AppendMenuA(PluginConfig.g_hMenuEncoding, MF_SEPARATOR, 0, 0);
EnumSystemCodePages(LangAddCallback, CP_INSTALLED);
}
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp
index 4e239672c1..0a1cf60be1 100644
--- a/plugins/TabSRMM/src/msgoptions.cpp
+++ b/plugins/TabSRMM/src/msgoptions.cpp
@@ -185,7 +185,7 @@ static int TSAPI RescanSkins(HWND hwndCombobox)
mir_sntprintf(tszFindMask, MAX_PATH, _T("%s*.*"), tszSkinRoot);
SendMessage(hwndCombobox, CB_RESETCONTENT, 0, 0);
- SendMessage(hwndCombobox, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_SKIN_NOSKINSELECT));
+ SendMessage(hwndCombobox, CB_INSERTSTRING, -1, (LPARAM)TranslateT("<no skin>"));
HANDLE h = FindFirstFile(tszFindMask, &fd);
while (h != INVALID_HANDLE_VALUE) {
@@ -349,8 +349,8 @@ static INT_PTR CALLBACK DlgProcSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L
int result;
if (szFilename != NULL) {
- result = MessageBox(0, CTranslator::get(CTranslator::GEN_WARNING_LOADTEMPLATES),
- CTranslator::get(CTranslator::GEN_TITLE_LOADTHEME), MB_YESNOCANCEL);
+ result = MessageBox(0, TranslateT("Do you want to also read message templates from the theme?\nCaution: This will overwrite the stored template set which may affect the look of your message window significantly.\nSelect cancel to not load anything at all."),
+ TranslateT("Load theme"), MB_YESNOCANCEL);
if (result == IDCANCEL)
return 1;
else if (result == IDYES)
@@ -671,22 +671,22 @@ static INT_PTR CALLBACK DlgProcLogOptions(HWND hwndDlg, UINT msg, WPARAM wParam,
have_ieview = ServiceExists(MS_IEVIEW_WINDOW);
have_hpp = ServiceExists("History++/ExtGrid/NewWindow");
- SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_LOG_DEFAULT));
+ SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Default"));
SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_SETCURSEL, 0, 0);
if (have_ieview) {
- SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_LOG_IEVIEW));
+ SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_INSERTSTRING, -1, (LPARAM)TranslateT("IEView plugin"));
if (M->GetByte("default_ieview", 0))
SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_SETCURSEL, 1, 0);
}
if (have_hpp) {
- SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_LOG_HPP));
+ SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_INSERTSTRING, -1, (LPARAM)TranslateT("History++ plugin"));
if (M->GetByte("default_ieview", 0))
SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_SETCURSEL, 1, 0);
else if (M->GetByte("default_hpp", 0))
SendDlgItemMessage(hwndDlg, IDC_MSGLOGDIDSPLAY, CB_SETCURSEL, have_ieview ? 2 : 1, 0);
}
- SetDlgItemText(hwndDlg, IDC_EXPLAINMSGLOGSETTINGS, CTranslator::getOpt(CTranslator::OPT_MSGLOG_EXPLAINSETTINGS));
+ SetDlgItemText(hwndDlg, IDC_EXPLAINMSGLOGSETTINGS, TranslateT("You have chosen to use an external plugin for displaying the message history in the chat window. Most of the settings on this page are for the standard message log viewer only and will have no effect. To change the appearance of the message log, you must configure either IEView or History++."));
SendMessage(hwndDlg, WM_USER + 100, 0, 0);
return TRUE;
}
@@ -918,9 +918,9 @@ static INT_PTR CALLBACK DlgProcTypeOptions(HWND hwndDlg, UINT msg, WPARAM wParam
CLCINFOITEM cii = { 0 };
cii.cbSize = sizeof(cii);
cii.flags = CLCIIF_GROUPFONT | CLCIIF_CHECKBOX;
- cii.pszText = CTranslator::getOpt(CTranslator::OPT_MTN_NEW);
+ cii.pszText = TranslateT("** New contacts **");
hItemNew = (HANDLE) SendDlgItemMessage(hwndDlg, IDC_CLIST, CLM_ADDINFOITEM, 0, (LPARAM) & cii);
- cii.pszText = CTranslator::getOpt(CTranslator::OPT_MTN_UNKNOWN);
+ cii.pszText = TranslateT("** Unknown contacts **");
hItemUnknown = (HANDLE) SendDlgItemMessage(hwndDlg, IDC_CLIST, CLM_ADDINFOITEM, 0, (LPARAM) & cii);
}
SetWindowLongPtr(GetDlgItem(hwndDlg, IDC_CLIST), GWL_STYLE, GetWindowLongPtr(GetDlgItem(hwndDlg, IDC_CLIST), GWL_STYLE) | (CLS_SHOWHIDDEN));
@@ -947,12 +947,12 @@ static INT_PTR CALLBACK DlgProcTypeOptions(HWND hwndDlg, UINT msg, WPARAM wParam
if (!ServiceExists(MS_CLIST_SYSTRAY_NOTIFY)) {
Utils::enableDlgControl(hwndDlg, IDC_NOTIFYBALLOON, FALSE);
- SetWindowText(GetDlgItem(hwndDlg, IDC_NOTIFYBALLOON), CTranslator::getOpt(CTranslator::OPT_MTN_UNSUPPORTED));
+ SetWindowText(GetDlgItem(hwndDlg, IDC_NOTIFYBALLOON), TranslateT("Show balloon popup (unsupported system)"));
}
- SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_GEN_ALWAYS));
- SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_MTN_NOTFOCUSED));
- SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_MTN_ONLYCLOSED));
+ SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always"));
+ SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always, but no popup when window is focused"));
+ SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Only when no message window is open"));
SendDlgItemMessage(hwndDlg, IDC_MTN_POPUPMODE, CB_SETCURSEL, (WPARAM)M->GetByte("MTN_PopupMode", 0), 0);
@@ -1076,9 +1076,9 @@ static INT_PTR CALLBACK DlgProcTabbedOptions(HWND hwndDlg, UINT msg, WPARAM wPar
Utils::enableDlgControl(hwndDlg, IDC_CUT_TITLEMAX, IsDlgButtonChecked(hwndDlg, IDC_CUT_TABTITLE));
Utils::enableDlgControl(hwndDlg, IDC_CUT_TITLEMAXSPIN, IsDlgButtonChecked(hwndDlg, IDC_CUT_TABTITLE));
- SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_CNT_ESCNORMAL));
- SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_CNT_ESCMINIMIZE));
- SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_CNT_ESCCLOS));
+ SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Normal - close tab, if last tab is closed also close the window"));
+ SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Minimize the window to the task bar"));
+ SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Close or hide window, depends on the close button setting above"));
SendDlgItemMessage(hwndDlg, IDC_ESCMODE, CB_SETCURSEL, (WPARAM)PluginConfig.m_EscapeCloses, 0);
break;
}
@@ -1309,30 +1309,30 @@ static int OptInitialise(WPARAM wParam, LPARAM lParam)
odp.ptszGroup = NULL;
odp.nIDBottomSimpleControl = 0;
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_GENERAL));
+ odp.ptszTab = TranslateT("General");
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) & odp);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_TABS));
+ odp.ptszTab = TranslateT("Tabs and layout");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_TABBEDMSG);
odp.pfnDlgProc = DlgProcTabbedOptions;
CallService(MS_OPT_ADDPAGE, wParam,(LPARAM)&odp);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_CONTAINERS));
+ odp.ptszTab = TranslateT("Containers");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_CONTAINERS);
odp.pfnDlgProc = DlgProcContainerSettings;
CallService(MS_OPT_ADDPAGE, wParam,(LPARAM)&odp);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_LOG));
+ odp.ptszTab = TranslateT("Message log");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_MSGLOG);
odp.pfnDlgProc = DlgProcLogOptions;
CallService(MS_OPT_ADDPAGE, wParam,(LPARAM)&odp);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_TOOLBAR));
+ odp.ptszTab = TranslateT("Tool bar");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_TOOLBAR);
odp.pfnDlgProc = DlgProcToolBar;
CallService(MS_OPT_ADDPAGE, wParam,(LPARAM)&odp);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_ADVANCED));
+ odp.ptszTab = TranslateT("Advanced tweaks");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_PLUS);
odp.pfnDlgProc = PlusOptionsProc;
CallService(MS_OPT_ADDPAGE, wParam,(LPARAM)&odp);
@@ -1355,14 +1355,14 @@ static int OptInitialise(WPARAM wParam, LPARAM lParam)
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_SKIN);
odp.ptszTitle = LPGENT("Message window");
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TAB_SKINLOAD));
+ odp.ptszTab = TranslateT("Load and apply");
odp.pfnDlgProc = DlgProcSkinOpts;
odp.nIDBottomSimpleControl = 0;
odp.ptszGroup = LPGENT("Skins");
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) &odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_TABCONFIG);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TAB_LAYOUTTWEAKS));
+ odp.ptszTab = TranslateT("Window layout tweaks");
odp.pfnDlgProc = DlgProcTabConfig;
odp.nIDBottomSimpleControl = 0;
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) &odp);
@@ -1372,24 +1372,24 @@ static int OptInitialise(WPARAM wParam, LPARAM lParam)
odp.ptszGroup = LPGENT("Message Sessions");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS1);
odp.ptszTitle = LPGENT("Group Chats");
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_MUC_SETTINGS));
+ odp.ptszTab = TranslateT("Settings");
odp.pfnDlgProc = DlgProcOptions1;
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) & odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS2);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_MUC_LOG));
+ odp.ptszTab = TranslateT("Log formatting");
odp.pfnDlgProc = DlgProcOptions2;
odp.nIDBottomSimpleControl = 0;
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) & odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS3);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_MUC_EVENTS));
+ odp.ptszTab = TranslateT("Events and filters");
odp.pfnDlgProc = DlgProcOptions3;
odp.nIDBottomSimpleControl = 0;
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) & odp);
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS4);
- odp.ptszTab = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_TABS_MUC_HIGHLIGHT));
+ odp.ptszTab = TranslateT("Highlighting");
odp.pfnDlgProc = CMUCHighlight::dlgProc;
odp.nIDBottomSimpleControl = 0;
CallService(MS_OPT_ADDPAGE, wParam, (LPARAM) & odp);
@@ -1731,7 +1731,7 @@ INT_PTR CALLBACK DlgProcSetupStatusModes(HWND hwndDlg, UINT msg, WPARAM wParam,
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
dwStatusMask = lParam;
- SetWindowText(hwndDlg, CTranslator::getOpt(CTranslator::OPT_SMODE_CHOOSE));
+ SetWindowText(hwndDlg, TranslateT("Choose status modes"));
for (i = ID_STATUS_ONLINE; i <= ID_STATUS_OUTTOLUNCH; i++) {
SetWindowText(GetDlgItem(hwndDlg, i), (TCHAR *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, (WPARAM)i, GSMDF_TCHAR));
if (dwStatusMask != -1 && (dwStatusMask & (1 << (i - ID_STATUS_ONLINE))))
diff --git a/plugins/TabSRMM/src/selectcontainer.cpp b/plugins/TabSRMM/src/selectcontainer.cpp
index eada4d1c7d..494df12cf5 100644
--- a/plugins/TabSRMM/src/selectcontainer.cpp
+++ b/plugins/TabSRMM/src/selectcontainer.cpp
@@ -55,7 +55,7 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
if (lParam) {
struct TWindowData *dat = (struct TWindowData *)GetWindowLongPtr((HWND)lParam, GWLP_USERDATA);
if (dat) {
- mir_sntprintf(szNewTitle, safe_sizeof(szNewTitle), CTranslator::get(CTranslator::CNT_SELECT_FOR), dat->cache->getNick());
+ mir_sntprintf(szNewTitle, safe_sizeof(szNewTitle), TranslateT("Select container for %s"), dat->cache->getNick());
SetWindowText(hwndDlg, szNewTitle);
}
}
@@ -94,8 +94,8 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
if ((iItem = SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETCURSEL, 0, 0)) != LB_ERR) {
SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETTEXT, (WPARAM) iItem, (LPARAM) szName);
- if (!_tcsncmp(szName, _T("default"), CONTAINER_NAMELEN) || !_tcsncmp(szName, CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME), CONTAINER_NAMELEN))
- MessageBox(hwndDlg, CTranslator::get(CTranslator::CNT_SELECT_DELETEERROR), _T("Error"), MB_OK | MB_ICONERROR);
+ if (!_tcsncmp(szName, _T("default"), CONTAINER_NAMELEN) || !_tcsncmp(szName, TranslateT("Default container"), CONTAINER_NAMELEN))
+ MessageBox(hwndDlg, TranslateT("You cannot delete the default container"), _T("Error"), MB_OK | MB_ICONERROR);
else {
int iIndex = SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETITEMDATA, (WPARAM)iItem, 0);
DeleteContainer(iIndex);
@@ -114,8 +114,8 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
iLen = GetWindowTextLength(GetDlgItem(hwndDlg, IDC_NEWCONTAINERNAME));
if (iLen) {
GetWindowText(GetDlgItem(hwndDlg, IDC_NEWCONTAINERNAME), szNewName, CONTAINER_NAMELEN);
- if (!_tcsncmp(szNewName, CGlobals::m_default_container_name, CONTAINER_NAMELEN) || !_tcsncmp(szNewName, CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME), CONTAINER_NAMELEN)) {
- MessageBox(hwndDlg, CTranslator::get(CTranslator::CNT_SELECT_RENAMEERROR), _T("Error"), MB_OK | MB_ICONERROR);
+ if (!_tcsncmp(szNewName, CGlobals::m_default_container_name, CONTAINER_NAMELEN) || !_tcsncmp(szNewName, TranslateT("Default container"), CONTAINER_NAMELEN)) {
+ MessageBox(hwndDlg, TranslateT("You cannot rename the default container"), _T("Error"), MB_OK | MB_ICONERROR);
break;
}
@@ -124,15 +124,15 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
TCHAR szOldName[CONTAINER_NAMELEN + 1];
SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETTEXT, (WPARAM) iItem, (LPARAM) szOldName);
if (lstrlen(szOldName) == lstrlen(szNewName)) {
- MessageBox(0, CTranslator::get(CTranslator::CNT_SELECT_INUSE), _T("Error"), MB_OK | MB_ICONERROR);
+ MessageBox(0, TranslateT("This name is already in use"), _T("Error"), MB_OK | MB_ICONERROR);
SetFocus(GetDlgItem(hwndDlg, IDC_NEWCONTAINERNAME));
break;
}
}
if ((iItem = SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETCURSEL, 0, 0)) != LB_ERR) {
SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETTEXT, (WPARAM) iItem, (LPARAM) szName);
- if (!_tcsncmp(szName, _T("default"), CONTAINER_NAMELEN) || !_tcsncmp(szName, CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME), CONTAINER_NAMELEN))
- MessageBox(hwndDlg, CTranslator::get(CTranslator::CNT_SELECT_RENAMEERROR), _T("Error"), MB_OK | MB_ICONERROR);
+ if (!_tcsncmp(szName, _T("default"), CONTAINER_NAMELEN) || !_tcsncmp(szName, TranslateT("Default container"), CONTAINER_NAMELEN))
+ MessageBox(hwndDlg, TranslateT("You cannot rename the default container"), _T("Error"), MB_OK | MB_ICONERROR);
else {
int iIndex = SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETITEMDATA, (WPARAM)iItem, 0);
RenameContainer(iIndex, szNewName);
@@ -162,7 +162,7 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
if (iItem != LB_ERR || !_tcsncmp(szNewName, CGlobals::m_default_container_name, CONTAINER_NAMELEN)) {
SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_GETTEXT, (WPARAM)iItem, (LPARAM)szName);
if (lstrlen(szName) == lstrlen(szNewName) || !_tcsncmp(szNewName, CGlobals::m_default_container_name, CONTAINER_NAMELEN)) {
- MessageBox(0, CTranslator::get(CTranslator::CNT_SELECT_INUSE), _T("Error"), MB_OK | MB_ICONERROR);
+ MessageBox(0, TranslateT("This name is already in use"), _T("Error"), MB_OK | MB_ICONERROR);
SetFocus(GetDlgItem(hwndDlg, IDC_NEWCONTAINER));
break;
}
@@ -197,7 +197,7 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
if (dbv.type == DBVT_ASCIIZ || dbv.type == DBVT_WCHAR) {
if (_tcsncmp(dbv.ptszVal, _T("**free**"), CONTAINER_NAMELEN)) {
iItemNew = SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_ADDSTRING, 0, (LPARAM)(!_tcscmp(dbv.ptszVal, _T("default")) ?
- CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME) : dbv.ptszVal));
+ TranslateT("Default container") : dbv.ptszVal));
if (iItemNew != LB_ERR)
SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_SETITEMDATA, (WPARAM)iItemNew, (LPARAM)iCounter);
}
@@ -214,7 +214,7 @@ INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L
LRESULT iItem;
iItem = SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_FINDSTRING, (WPARAM) - 1, (LPARAM)(!_tcscmp(pContainer->szName, _T("default")) ?
- CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME) : pContainer->szName));
+ TranslateT("Default container") : pContainer->szName));
if (iItem != LB_ERR)
SendDlgItemMessage(hwndDlg, IDC_CNTLIST, LB_SETCURSEL, (WPARAM) iItem, 0);
}
diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp
index 5a03e985d3..4490f8b2e6 100644
--- a/plugins/TabSRMM/src/sendlater.cpp
+++ b/plugins/TabSRMM/src/sendlater.cpp
@@ -144,15 +144,15 @@ CSendLaterJob::~CSendLaterJob()
ZeroMemory((void *)&ppd, sizeof(ppd));
ppd.lchContact = hContact;
ppd.cbSize = sizeof(ppd);
- mir_sntprintf(ppd.lptzContactName, MAX_CONTACTNAME, _T("%s"), tszName ? tszName : CTranslator::get(CTranslator::GEN_UNKNOWN_CONTACT));
+ mir_sntprintf(ppd.lptzContactName, MAX_CONTACTNAME, _T("%s"), tszName ? tszName : TranslateT("'(Unknown Contact)'"));
TCHAR *msgPreview = Utils::GetPreviewWithEllipsis(reinterpret_cast<TCHAR *>(&pBuf[lstrlenA((char *)pBuf) + 1]), 100);
if(fSuccess) {
- mir_sntprintf(ppd.lptzText, MAX_SECONDLINE, CTranslator::get(CTranslator::GEN_SQ_SENDLATER_SUCCESS_POPUP),
+ mir_sntprintf(ppd.lptzText, MAX_SECONDLINE, TranslateT("A send later job completed successfully.\nThe original message: %s"),
msgPreview);
mir_free(msgPreview);
}
else if(fFailed) {
- mir_sntprintf(ppd.lptzText, MAX_SECONDLINE, CTranslator::get(CTranslator::GEN_SQ_SENDLATER_FAILED_POPUP),
+ mir_sntprintf(ppd.lptzText, MAX_SECONDLINE, TranslateT("A send later job failed to complete.\nThe original message: %s"),
msgPreview);
mir_free(msgPreview);
}
@@ -605,7 +605,7 @@ void CSendLater::qMgrFillList(bool fClear)
m_sel = 0;
::SendMessage(m_hwndFilter, CB_INSERTSTRING, -1,
- reinterpret_cast<LPARAM>(CTranslator::get(CTranslator::QMGR_FILTER_ALLCONTACTS)));
+ reinterpret_cast<LPARAM>(TranslateT("<All contacts>")));
::SendMessage(m_hwndFilter, CB_SETITEMDATA, 0, 0);
lvItem.cchTextMax = 255;
@@ -650,23 +650,23 @@ void CSendLater::qMgrFillList(bool fClear)
if ((*it)->fFailed) {
tszStatusText = (*it)->bCode == CSendLaterJob::JOB_REMOVABLE ?
- CTranslator::get(CTranslator::QMGR_STATUS_REMOVED) : CTranslator::get(CTranslator::QMGR_STATUS_FAILED);
+ TranslateT("Removed") : TranslateT("Failed");
}
else if ((*it)->fSuccess)
- tszStatusText = CTranslator::get(CTranslator::QMGR_STATUS_SENTOK);
+ tszStatusText = TranslateT("Sent OK");
else {
switch((*it)->bCode) {
case CSendLaterJob::JOB_DEFERRED:
- tszStatusText = CTranslator::get(CTranslator::QMGR_STATUS_DEFERRED);
+ tszStatusText = TranslateT("Deferred");
break;
case CSendLaterJob::JOB_AGE:
- tszStatusText = CTranslator::get(CTranslator::QMGR_STATUS_FAILED);
+ tszStatusText = TranslateT("Failed");
break;
case CSendLaterJob::JOB_HOLD:
- tszStatusText = CTranslator::get(CTranslator::QMGR_STATUS_HOLD);
+ tszStatusText = TranslateT("Suspended");
break;
default:
- tszStatusText = CTranslator::get(CTranslator::QMGR_STATUS_PENDING);
+ tszStatusText = TranslateT("Pending");
break;
}
}
@@ -724,23 +724,23 @@ void CSendLater::qMgrSetupColumns()
col.mask = LVCF_TEXT|LVCF_WIDTH|LVCF_SUBITEM;
col.cx = max(nWidths[0], 10);
- col.pszText = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_CONTACT));
+ col.pszText = TranslateT("Contact");
::SendMessage(m_hwndList, LVM_INSERTCOLUMN, 0, reinterpret_cast<LPARAM>(&col));
- col.pszText = const_cast<TCHAR *>(CTranslator::get(CTranslator::QMGR_COL_ODATE));
+ col.pszText = TranslateT("Original timestamp");
col.cx = max(nWidths[1], 10);
::SendMessage(m_hwndList, LVM_INSERTCOLUMN, 1, reinterpret_cast<LPARAM>(&col));
- col.pszText = const_cast<TCHAR *>(CTranslator::get(CTranslator::QMGR_COL_MESSAGETEXT));
+ col.pszText = TranslateT("Message text");
col.cx = max((cxList - nWidths[0] - nWidths[1] - nWidths[3] - nWidths[4] - 10), 10);
::SendMessage(m_hwndList, LVM_INSERTCOLUMN, 2, reinterpret_cast<LPARAM>(&col));
- col.pszText = const_cast<TCHAR *>(CTranslator::get(CTranslator::QMGR_COL_STATUS));
+ col.pszText = TranslateT("Status");
col.cx = max(nWidths[3], 10);
::SendMessage(m_hwndList, LVM_INSERTCOLUMN, 3, reinterpret_cast<LPARAM>(&col));
- col.pszText = const_cast<TCHAR *>(CTranslator::get(CTranslator::QMGR_COL_LASTSENDINFO));
+ col.pszText = TranslateT("Last send info");
col.cx = max(nWidths[4], 10);
::SendMessage(m_hwndList, LVM_INSERTCOLUMN, 4, reinterpret_cast<LPARAM>(&col));
@@ -895,7 +895,7 @@ INT_PTR CALLBACK CSendLater::DlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
item.stateMask = LVIS_SELECTED;
if(HIWORD(wParam) != ID_QUEUEMANAGER_COPYMESSAGETOCLIPBOARD) {
- if(MessageBox(0, CTranslator::get(CTranslator::QMGR_WARNING_REMOVAL), CTranslator::get(CTranslator::QMGR_TITLE),
+ if(MessageBox(0, TranslateT("You are about to modify the state of one or more items in the\nunattended send queue. The requested action(s) will be executed at the next scheduled queue processing.\n\nThis action cannot be made undone."), TranslateT("Queue manager"),
MB_ICONQUESTION | MB_OKCANCEL) == IDCANCEL)
break;
}
diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp
index a608f7006a..baf1289713 100644
--- a/plugins/TabSRMM/src/sendqueue.cpp
+++ b/plugins/TabSRMM/src/sendqueue.cpp
@@ -405,7 +405,7 @@ int SendQueue::sendQueued(TWindowData *dat, const int iEntry)
if(iSendLength >= iMinLength) {
TCHAR tszError[256];
- mir_sntprintf(tszError, 256, CTranslator::get(CTranslator::GEN_SQ_SENDLATER_ERROR_MSG_TOO_LONG), iMinLength);
+ mir_sntprintf(tszError, 256, TranslateT("The message cannot be sent delayed or to multiple contacts, because it exceeds the maximum allowed message length of %d bytes"), iMinLength);
::SendMessage(dat->hwnd, DM_ACTIVATETOOLTIP, IDC_MESSAGE, reinterpret_cast<LPARAM>(tszError));
sendQueue->clearJob(iEntry);
return(0);
@@ -478,7 +478,7 @@ send_unsplitted:
int iSendLength = getSendLength(iEntry, dat->sendMode);
if(iSendLength >= dat->nMax) {
- mir_sntprintf(tszError, 256, CTranslator::get(CTranslator::GEN_SQ_SENDLATER_ERROR_MSG_TOO_LONG), dat->nMax);
+ mir_sntprintf(tszError, 256, TranslateT("The message cannot be sent delayed or to multiple contacts, because it exceeds the maximum allowed message length of %d bytes"), dat->nMax);
SendMessage(dat->hwnd, DM_ACTIVATETOOLTIP, IDC_MESSAGE, reinterpret_cast<LPARAM>(tszError));
clearJob(iEntry);
return(0);
@@ -705,7 +705,7 @@ void SendQueue::NotifyDeliveryFailure(const TWindowData *dat)
ZeroMemory((void *)&ppd, sizeof(ppd));
ppd.lchContact = dat->hContact;
mir_sntprintf(ppd.lptzContactName, MAX_CONTACTNAME, _T("%s"), dat->cache->getNick());
- mir_sntprintf(ppd.lptzText, MAX_SECONDLINE, _T("%s"), CTranslator::get(CTranslator::GEN_SQ_DELIVERYFAILED));
+ mir_sntprintf(ppd.lptzText, MAX_SECONDLINE, _T("%s"), TranslateT("A message delivery has failed.\nClick to open the message window."));
if (!(BOOL)M->GetByte(MODULE, OPT_COLDEFAULT_ERR, TRUE))
{
ppd.colorText = (COLORREF)M->GetDword(MODULE, OPT_COLTEXT_ERR, DEFAULT_COLTEXT);
@@ -789,7 +789,7 @@ int SendQueue::ackMessage(TWindowData *dat, WPARAM wParam, LPARAM lParam)
TCHAR *szAckMsg = mir_a2t((char *)ack->lParam);
mir_sntprintf(m_jobs[iFound].szErrorMsg, safe_sizeof(m_jobs[iFound].szErrorMsg),
- CTranslator::get(CTranslator::GEN_MSG_DELIVERYFAILURE), szAckMsg);
+ TranslateT("Delivery failure: %s"), szAckMsg);
m_jobs[iFound].iStatus = SQ_ERROR;
mir_free(szAckMsg);
KillTimer(dat->hwnd, TIMERID_MSGSEND + iFound);
@@ -799,7 +799,7 @@ int SendQueue::ackMessage(TWindowData *dat, WPARAM wParam, LPARAM lParam)
}
else {
inform_and_discard:
- _DebugPopup(m_jobs[iFound].hOwner, CTranslator::get(CTranslator::GEN_SQ_DELIVERYFAILEDLATE));
+ _DebugPopup(m_jobs[iFound].hOwner, TranslateT("A message delivery has failed after the contacts chat window was closed. You may want to resend the last message"));
clearJob(iFound);
return 0;
}
@@ -874,8 +874,8 @@ inform_and_discard:
LRESULT SendQueue::WarnPendingJobs(unsigned int uNrMessages)
{
- return(MessageBox(0, CTranslator::get(CTranslator::GEN_SQ_WARNING),
- CTranslator::get(CTranslator::GEN_SQ_WARNING_TITLE), MB_YESNO | MB_ICONHAND));
+ return(MessageBox(0, TranslateT("There are unsent messages waiting for confirmation.\nWhen you close the window now, Miranda will try to send them but may be unable to inform you about possible delivery errors.\nDo you really want to close the Window(s)?"),
+ TranslateT("Message window warning"), MB_YESNO | MB_ICONHAND));
}
/**
@@ -897,9 +897,9 @@ int SendQueue::doSendLater(int iJobIndex, TWindowData *dat, HANDLE hContact, boo
if(fIsSendLater && dat) {
if(fAvail)
- szNote = CTranslator::get(CTranslator::GEN_SQ_QUEUED_MESSAGE);
+ szNote = TranslateT("Message successfully queued for later delivery.\nIt will be sent as soon as possible and a popup will inform you about the result.");
else
- szNote = CTranslator::get(CTranslator::GEN_SQ_QUEUING_NOT_AVAIL);
+ szNote = TranslateT("The send later feature is not available on this protocol.");
char *utfText = M->utf8_encodeT(szNote);
DBEVENTINFO dbei;
@@ -937,7 +937,7 @@ int SendQueue::doSendLater(int iJobIndex, TWindowData *dat, HANDLE hContact, boo
_tcsftime(tszTimestamp, 30, formatTime, _localtime32((__time32_t *)&now));
tszTimestamp[29] = 0;
mir_snprintf(szKeyName, 20, "S%d", now);
- mir_sntprintf(tszHeader, safe_sizeof(tszHeader), CTranslator::get(CTranslator::GEN_SQ_SENDLATER_HEADER), tszTimestamp);
+ mir_sntprintf(tszHeader, safe_sizeof(tszHeader), TranslateT("\n(Sent delayed. Original timestamp %s)"), tszTimestamp);
}
else
mir_sntprintf(tszHeader, safe_sizeof(tszHeader), _T("M%d|"), time(0));
diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp
index 60af12edfd..ff8aefa28a 100644
--- a/plugins/TabSRMM/src/srmm.cpp
+++ b/plugins/TabSRMM/src/srmm.cpp
@@ -116,8 +116,6 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK * link)
mir_getTMI(&tmi);
mir_getLP(&pluginInfo);
- CTranslator::preTranslateAll();
-
M = new CMimAPI();
SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lfDefault), &lfDefault, FALSE);
diff --git a/plugins/TabSRMM/src/taskbar.cpp b/plugins/TabSRMM/src/taskbar.cpp
index 19d042c031..e01414aedb 100644
--- a/plugins/TabSRMM/src/taskbar.cpp
+++ b/plugins/TabSRMM/src/taskbar.cpp
@@ -413,7 +413,7 @@ void CProxyWindow::sendPreview()
if(m_dat->hwndIEView)
::SendMessage(m_dat->hwndIEView, WM_PRINT, reinterpret_cast<WPARAM>(hdcRich), PRF_CLIENT | PRF_NONCLIENT);
else if(m_dat->hwndHPP) {
- CSkin::RenderText(hdcRich, m_dat->hTheme, CTranslator::get(CTranslator::GEN_AEROPEEK_NOHPP),
+ CSkin::RenderText(hdcRich, m_dat->hTheme, TranslateT("Previews not availble when using History++ plugin for message log display."),
&rcRich, DT_VCENTER | DT_CENTER | DT_WORDBREAK, 10, m_dat->pContainer->theme.fontColors[MSGFONTID_MYMSG], false);
}
else {
@@ -715,7 +715,7 @@ void CThumbBase::renderBase()
wchar_t tszTemp[30];
m_rcIcon.top += m_sz.cy;
- mir_sntprintf(tszTemp, 30, CTranslator::get(CTranslator::GEN_TASKBAR_STRING_UNREAD), m_dat->dwUnread);
+ mir_sntprintf(tszTemp, 30, TranslateT("%d Unread"), m_dat->dwUnread);
CSkin::RenderText(m_hdc, m_dat->hTheme, tszTemp, &m_rcIcon, m_dtFlags | DT_CENTER | DT_WORD_ELLIPSIS, 10, 0, true);
}
m_rcIcon= m_rcTop;
@@ -838,7 +838,7 @@ void CThumbIM::renderContent()
m_rcBottom.bottom -= ((m_rcBottom.bottom - m_rcBottom.top) % m_sz.cy); // adjust to a multiple of line height
if(0 == (tszStatusMsg = m_dat->cache->getStatusMsg()))
- tszStatusMsg = CTranslator::get(CTranslator::GEN_NO_STATUS);
+ tszStatusMsg = TranslateT("No status message");
CSkin::RenderText(m_hdc, m_dat->hTheme, tszStatusMsg, &m_rcBottom, DT_WORD_ELLIPSIS | DT_END_ELLIPSIS | m_dtFlags, 10, 0, true);
m_rcBottom.bottom = m_rc.bottom;
@@ -894,7 +894,7 @@ void CThumbMUC::renderContent()
if(mi) {
if(m_dat->dwUnread) {
- mir_sntprintf(szTemp, 30, CTranslator::get(CTranslator::GEN_TASKBAR_STRING_UNREAD), m_dat->dwUnread);
+ mir_sntprintf(szTemp, 30, TranslateT("%d Unread"), m_dat->dwUnread);
CSkin::RenderText(m_hdc, m_dat->hTheme, szTemp, &m_rcIcon, m_dtFlags | DT_SINGLELINE | DT_RIGHT, 10, 0, true);
m_rcIcon.top += m_sz.cy;
}
@@ -906,18 +906,18 @@ void CThumbMUC::renderContent()
_p++;
wchar_t _t = *_p;
*_p = 0;
- mir_sntprintf(szTemp, SIZEOF(szTemp), CTranslator::get(CTranslator::GEN_TASKBAR_STRING_CHAT_ROOM), m_dat->si->ptszStatusbarText);
+ mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("Chat room %s"), m_dat->si->ptszStatusbarText);
*_p = _t;
}
else
- mir_sntprintf(szTemp, SIZEOF(szTemp), CTranslator::get(CTranslator::GEN_TASKBAR_STRING_CHAT_ROOM), L"");
+ mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("Chat room %s"), L"");
CSkin::RenderText(m_hdc, m_dat->hTheme, szTemp, &m_rcIcon, m_dtFlags | DT_SINGLELINE | DT_RIGHT, 10, 0, true);
m_rcIcon.top += m_sz.cy;
- mir_sntprintf(szTemp, SIZEOF(szTemp), CTranslator::get(CTranslator::GEN_TASKBAR_STRING_USERS), m_dat->si->nUsersInNicklist);
+ mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("%d User(s)"), m_dat->si->nUsersInNicklist);
CSkin::RenderText(m_hdc, m_dat->hTheme, szTemp, &m_rcIcon, m_dtFlags | DT_SINGLELINE | DT_RIGHT, 10, 0, true);
}
else {
- mir_sntprintf(szTemp, SIZEOF(szTemp), CTranslator::get(CTranslator::GEN_TASKBAR_STRING_SERVER_WINDOW));
+ mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("Server window"));
CSkin::RenderText(m_hdc, m_dat->hTheme, szTemp, &m_rcIcon, m_dtFlags | DT_SINGLELINE | DT_RIGHT, 10, 0, true);
if(mi->tszIdleMsg[0] && _tcslen(mi->tszIdleMsg) > 2) {
m_rcIcon.top += m_sz.cy;
@@ -933,10 +933,10 @@ void CThumbMUC::renderContent()
if(m_dat->si->iType != GCW_SERVER) {
if(0 == (szStatusMsg = m_dat->si->ptszTopic))
- szStatusMsg = CTranslator::get(CTranslator::GEN_MUC_NO_TOPIC);
+ szStatusMsg = TranslateT("no topic set.");
}
else if(mi) {
- mir_sntprintf(szTemp, SIZEOF(szTemp), CTranslator::get(CTranslator::MUC_SBAR_ON_SERVER), m_dat->szMyNickname, mi->ptszModDispName, L"");
+ mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("%s on %s%s"), m_dat->szMyNickname, mi->ptszModDispName, L"");
szStatusMsg = szTemp;
}
diff --git a/plugins/TabSRMM/src/templates.cpp b/plugins/TabSRMM/src/templates.cpp
index 74000f7e11..d5a4c1e59c 100644
--- a/plugins/TabSRMM/src/templates.cpp
+++ b/plugins/TabSRMM/src/templates.cpp
@@ -180,7 +180,7 @@ INT_PTR CALLBACK DlgProcTemplateEditor(HWND hwndDlg, UINT msg, WPARAM wParam, LP
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR) dat);
ShowWindow(hwndDlg, SW_SHOW);
SendDlgItemMessage(hwndDlg, IDC_EDITTEMPLATE, EM_LIMITTEXT, (WPARAM)TEMPLATE_LENGTH - 1, 0);
- SetWindowText(hwndDlg, CTranslator::getOpt(CTranslator::OPT_TEMP_TITLE));
+ SetWindowText(hwndDlg, TranslateT("Template Set Editor"));
Utils::enableDlgControl(hwndDlg, IDC_SAVETEMPLATE, FALSE);
Utils::enableDlgControl(hwndDlg, IDC_REVERT, FALSE);
Utils::enableDlgControl(hwndDlg, IDC_FORGET, FALSE);
@@ -205,12 +205,12 @@ INT_PTR CALLBACK DlgProcTemplateEditor(HWND hwndDlg, UINT msg, WPARAM wParam, LP
DestroyWindow(hwndDlg);
break;
case IDC_RESETALLTEMPLATES:
- if (MessageBox(0, CTranslator::getOpt(CTranslator::OPT_TEMP_RESET),
- CTranslator::getOpt(CTranslator::OPT_TEMP_TITLE), MB_YESNO | MB_ICONQUESTION) == IDYES) {
+ if (MessageBox(0, TranslateT("This will reset the template set to the default built-in templates. Are you sure you want to do this?"),
+ TranslateT("Template Set Editor"), MB_YESNO | MB_ICONQUESTION) == IDYES) {
M->WriteByte(teInfo->rtl ? RTLTEMPLATES_MODULE : TEMPLATES_MODULE, "setup", 0);
LoadDefaultTemplates();
- MessageBox(0, CTranslator::getOpt(CTranslator::OPT_TEMP_WASRESET),
- CTranslator::getOpt(CTranslator::OPT_TEMP_TITLE), MB_OK);
+ MessageBox(0, TranslateT("Template set was successfully reset, please close and reopen all message windows. This template editor window will now close."),
+ TranslateT("Template Set Editor"), MB_OK);
DestroyWindow(hwndDlg);
}
break;
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp
index 083c827c07..426a90d2d2 100644
--- a/plugins/TabSRMM/src/themes.cpp
+++ b/plugins/TabSRMM/src/themes.cpp
@@ -1114,8 +1114,8 @@ void CSkin::Init(bool fStartup)
bool CSkin::warnToClose() const
{
if (::pFirstContainer) {
- if (MessageBox(0, CTranslator::get(CTranslator::GEN_SKIN_WARNCLOSE),
- CTranslator::get(CTranslator::GEN_SKIN_WARNCLOSE_TITLE), MB_YESNO | MB_ICONQUESTION) == IDYES) {
+ if (MessageBox(0, TranslateT("All message containers need to close before the skin can be changed\nProceed?"),
+ TranslateT("Change skin"), MB_YESNO | MB_ICONQUESTION) == IDYES) {
TContainerData *pContainer = ::pFirstContainer;
while (pFirstContainer)
SendMessage(pFirstContainer->hwnd, WM_CLOSE, 0, 1);
diff --git a/plugins/TabSRMM/src/translator.cpp b/plugins/TabSRMM/src/translator.cpp
index 6c413fedc2..edef96daa3 100644
--- a/plugins/TabSRMM/src/translator.cpp
+++ b/plugins/TabSRMM/src/translator.cpp
@@ -34,444 +34,13 @@
#include "commonheaders.h"
-wchar_t* CTranslator::weekDays[7] = {LPGENT("Sunday"), LPGENT("Monday"),
- LPGENT("Tuesday"), LPGENT("Wednesday"),
- LPGENT("Thursday"), LPGENT("Friday"), LPGENT("Saturday")};
-
-wchar_t* CTranslator::months[12] = {LPGENT("January"), LPGENT("February"),
- LPGENT("March"), LPGENT("April"), LPGENT("May"),
- LPGENT("June"), LPGENT("July"), LPGENT("August"),
- LPGENT("September"), LPGENT("October"), LPGENT("November"), LPGENT("December")};
-
-wchar_t* CTranslator::weekDays_translated[7];
-wchar_t* CTranslator::months_translated[12];
-
-wchar_t* CTranslator::m_strings[STR_LAST] = {
- LPGENT("Stay on Top"), /* CNT_MENU_STAYONTOP */
- LPGENT("Hide titlebar"), /* CNT_MENU_HIDETITLEBAR */
- LPGENT("Container options..."), /* CNT_MENU_CONTAINEROPTIONS */
- LPGENT("Message Session..."), /* CNT_TITLE_DEFAULT */
- LPGENT("Attach to"), /* CNT_ATTACH_TO */
- LPGENT("Meta Contact"), /* GEN_META_CONTACT */
- LPGENT("(Forced)"), /* GEN_META_FORCED */
- LPGENT("Autoselect"), /* GEN_META_AUTOSELECT */
- LPGENT("Use Protocol"), /* GEN_META_USEPROTO */
- LPGENT("Set Default Protocol"), /* GEN_META_SETDEFAULT */
- LPGENT("Nick name"), /* GEN_MUC_NICKNAME */
- LPGENT("Unique Id"), /* GEN_MUC_UID */
- LPGENT("Status"), /* GEN_MUC_STATUS */
- LPGENT("%s: Chat Room (%u user%s)"), /* GEN_MUC_ROOM_TITLE_USER */
- LPGENT("%s: Chat Room (%u users%s)"), /* GEN_MUC_ROOM_TITLE_USERS */
- LPGENT(", event filter active"), /* GEN_MUC_ROOM_TITLE_FILTER */
- LPGENT("%s: Message Session"), /* GEN_MUC_PRIVSESSION */
- LPGENT("%s: Message Session (%u users)"), /* GEN_MUC_PRIVSESSION_MULTI */
- LPGENT("The filter canoot be enabled, because there are no event types selected either global or for this chat room"), /* GEN_MUC_FILTER_ERROR */
- LPGENT("Event filter error"), /* GEN_MUC_FILTER_ERROR_TITLE */
- LPGENT("Text color"), /* GEN_MUC_TEXTCOLOR */
- LPGENT("Background color"), /* GEN_MUC_BGCOLOR */
- LPGENT("Container options"), /* CNT_OPT_TITLE */
- LPGENT("Tabs at the top"), /* CNT_OPT_TABSTOP */
- LPGENT("Tabs at the bottom"), /* CNT_OPT_TABSBOTTOM */
- LPGENT("Switch bar on the left side"), /* CNT_OPT_TABSLEFT */
- LPGENT("Switch bar on the right side"), /* CNT_OPT_TABSRIGHT */
- LPGENT("Configure container options for\n%s"), /* CNT_OPT_HEADERBAR */
- LPGENT("&File"), /* GEN_MENUBAR_FILE */
- LPGENT("&View"), /* GEN_MENUBAR_VIEW */
- LPGENT("&User"), /* GEN_MENUBAR_USER */
- LPGENT("&Room"), /* GEN_MENUBAR_FILE */
- LPGENT("Message &Log"), /* GEN_MENUBAR_LOG */
- LPGENT("&Container"), /* GEN_MENUBAR_CONTAINER */
- LPGENT("Help"), /* GEN_MENUBAR_HELP */
- LPGENT("Sounds are %s. Click to toggle status, hold SHIFT and click to set for all open containers"), /* GEN_CNT_SBAR_SOUNDS */
- LPGENT("enabled"), /* GEN_ENABLED */
- LPGENT("disabled"), /* GEN_DISABLED */
- LPGENT("Sending typing notifications is %s."), /* GEN_CNT_SBAR_MTN */
- LPGENT("Extended status for %s: %s"), /* GEN_IP_TIP_XSTATUS */
- LPGENT("%s is using"), /* GEN_IP_TIP_CLIENT */
- LPGENT("Status message for %s (%s)"), /* GEN_IP_TIP_STATUSMSG */
- LPGENT("tabSRMM Information"), /* GEN_IP_TIP_TITLE */
- LPGENT("All message containers need to close before the skin can be changed\nProceed?"), /* GEN_SKIN_WARNCLOSE */
- LPGENT("Change skin"), /* GEN_SKIN_WARNCLOSE_TITLE */
- LPGENT("Warning: Popup plugin not found."), /* GEN_MTN_POPUP_WARNING */
- LPGENT("Warning: Current Popup plugin version is not supported."), /* GEN_MTN_POPUP_UNSUPPORTED */
- LPGENT("Contact"), /* GEN_CONTACT */
- LPGENT("...is typing a message."), /* GEN_MTN_START */
- LPGENT("...has stopped typing."), /* GEN_MTN_STOP */
- LPGENT("Favorites"), /* GEN_FAVORITES */
- LPGENT("Recent Sessions"), /* GEN_RECENT_SESSIONS */
- LPGENT("Last received: %s at %s"), /* GEN_SBAR_LASTRECEIVED */
- LPGENT("There are %d pending send jobs. Message length: %d bytes, message length limit: %d bytes\n\n%d messages are queued for later delivery"), /* GEN_SBAR_TIP_MSGLENGTH */
- LPGENT("General options"), /* CNT_OPT_TITLE_GEN */
- LPGENT("Window layout"), /* CNT_OPT_TITLE_LAYOUT */
- LPGENT("Tabs and switch bar"), /* CNT_OPT_TITLE_TABS */
- LPGENT("Notifications"), /* CNT_OPT_TITLE_NOTIFY */
- LPGENT("Flashing"), /* CNT_OPT_TITLE_FLASHING */
- LPGENT("Title bar"), /* CNT_OPT_TITLE_TITLEBAR */
- LPGENT("Window size and theme"), /* CNT_OPT_TITLE_THEME */
- LPGENT("Transparency"), /* CNT_OPT_TITLE_TRANS */
- LPGENT("Choose your options for the tabbed user interface. Not all options can be applied to open windows. You may need to close and re-open them."), /* CNT_OPT_DESC_TABS */
- LPGENT("Select, when you want to see event notifications (popups) for this window. The settings apply to all tabs within this window."), /*CNT_OPT_DESC_NOTIFY */
- LPGENT("You can select a private theme (.tabsrmm file) for this container which will then override the default message log theme. You will have to close and re-open all message windows after changing this option."), /* CNT_OPT_DESC_THEME */
- LPGENT("This feature requires Windows 2000 or later and may be unavailable when using a container skin."), /* CNT_OPT_DESC_TRANS */
- LPGENT("Message"), /* GEN_POPUPS_MESSAGE */
- LPGENT("Unknown event"), /* GEN_POPUPS_UNKNOWN */
- LPGENT("New messages: "), /* GEN_POPUPS_NEW */
- LPGENT("No status message"), /* GEN_NO_STATUS */
- LPGENT("%s is typing a message."), /* GEN_MTN_STARTWITHNICK */
- LPGENT("Typing Notification"), /* GEN_MTN_TTITLE */
- LPGENT("Message from %s"), /* GEN_MSG_TTITLE */
- LPGENT("/"), /* GEN_ICONPACK_WARNING */ /* NOT IN USE!! */
- LPGENT("Select container for %s"), /* CNT_SELECT_FOR */
- LPGENT("This name is already in use"), /* CNT_SELECT_INUSE */
- LPGENT("You cannot rename the default container"), /* CNT_SELECT_RENAMEERROR */
- LPGENT("You cannot delete the default container"), /* CNT_SELECT_DELETEERROR */
- LPGENT(" "), /* GEN_WARN_CLOSE */ /* UNUSED */
- LPGENT("Error creating destination directory"), /* GEN_MSG_SAVE_NODIR */
- LPGENT("Save contact picture"), /* GEN_MSG_SAVE */
- LPGENT("The file exists. Do you want to overwrite it?"), /* GEN_MSG_SAVE_FILE_EXISTS */
- LPGENT("Topic is: %s"), /* GEN_MUC_TOPIC_IS */
- LPGENT("no topic set."), /* GEN_MUC_NO_TOPIC */
- LPGENT("%s has entered text."), /* GEN_MTN_STOPPED */
- LPGENT("Contact Picture Settings..."), /* GEN_AVATAR_SETTINGS */
- LPGENT("Set Your Avatar..."), /* GEN_AVATAR_SETOWN */
- LPGENT("Do you want to also read message templates from the theme?\nCaution: This will overwrite the stored template set which may affect the look of your message window significantly.\nSelect cancel to not load anything at all."), /* GEN_WARNING_LOADTEMPLATES */
- LPGENT("Load theme"), /* GEN_TITLE_LOADTHEME */
- LPGENT("The 'paste and send' feature is disabled. You can enable it on the 'General' options page in the 'Sending Messages' section"), /* GEN_WARNING_PASTEANDSEND_DISABELD */
- LPGENT("Either the nudge plugin is not installed or the contact's protocol does not support sending a nudge event."), /*GEN_WARNING_NUDGE_DISABLED */
- LPGENT("'(Unknown Contact)'"), /* GEN_UNKNOWN_CONTACT */
- LPGENT("Today"), /* GEN_LOG_TODAY */
- LPGENT("Yesterday"), /* GEN_LOG_YESTERDAY */
- LPGENT("Use default codepage"), /* GEN_LOG_USEDEFAAULTCP */
- LPGENT("UID: %s (SHIFT click -> copy to clipboard)\nClick for User's Details\nRight click for MetaContact control\nClick dropdown to add or remove user from your favorites."), /* GEN_MSG_UINCOPY */
- LPGENT("No UID"), /* GEN_MSG_NOUIN */
- LPGENT("UID: %s (SHIFT click -> copy to clipboard)\nClick for User's Details\nClick dropdown to change this contact's favorite status."), /* GEN_MSG_UINCOPY_NO_MC */
- LPGENT("signed off."), /* GEN_MSG_SIGNEDOFF */
- LPGENT("signed on and is now %s."), /* GEN_MSG_SIGNEDON */
- LPGENT("changed status from %s to %s."), /* GEN_MSG_CHANGEDSTATUS */
- LPGENT("There are unsent messages waiting for confirmation.\nWhen you close the window now, Miranda will try to send them but may be unable to inform you about possible delivery errors.\nDo you really want to close the Window(s)?"), /* GEN_SQ_WARNING */
- LPGENT("Message window warning"), /* GEN_SQ_WARNING_TITLE */
- LPGENT("You haven't selected any contacts from the list. Click the checkbox box next to a name to send the message to that person."), /* GEN_SQ_MULTISEND_NOCONTACTS */
- LPGENT("A message delivery has failed.\nClick to open the message window."), /* GEN_SQ_DELIVERYFAILED */
- LPGENT("A message delivery has failed after the contacts chat window was closed. You may want to resend the last message"), /* GEN_SQ_DELIVERYFAILEDLATE */
- LPGENT("Multisend: successfully sent to: %s"), /* GEN_SQ_MULTISEND_SUCCESS */
- LPGENT("Message successfully queued for later delivery.\nIt will be sent as soon as possible and a popup will inform you about the result."), /* GEN_SQ_QUEUED_MESSAGE */
- LPGENT("The send later feature is not available on this protocol."), /* GEN_SQ_QUEUING_NOT_AVAIL */
- LPGENT("\n(Sent delayed. Original timestamp %s)"), /* GEN_SQ_SENDLATER_HEADER */
- LPGENT("Session list.\nClick left for a list of open sessions.\nClick right to access favorites and quickly configure message window behavior"), /* CNT_SBAR_SLIST */
- LPGENT("Character Encoding"), /* GEN_MSG_ENCODING */
- LPGENT("A message failed to send successfully."), /* GEN_MSG_FAILEDSEND */
- LPGENT("WARNING: The message you are trying to paste exceeds the message size limit for the active protocol. It will be sent in chunks of max %d characters"), /* GEN_MSG_TOO_LONG_SPLIT */
- LPGENT("The message you are trying to paste exceeds the message size limit for the active protocol. Only the first %d characters will be sent."), /* GEN_MSG_TOO_LONG_NOSPLIT */
- LPGENT("Close Session"), /* GEN_MSG_CLOSE */
- LPGENT("Save and close session"), /* GEN_MSG_SAVEANDCLOSE */
- LPGENT("Autoscrolling is disabled (press F12 to enable it)"), /* GEN_MSG_LOGFROZENSTATIC */
- LPGENT("Click for contact menu\nClick dropdown for window settings"), /*GEN_MSG_TIP_CONTACTMENU */
- LPGENT("Retry"), /* GEN_MSG_BUTTON_RETRY */
- LPGENT("Cancel"), /* GEN_MSG_BUTTON_CANCEL */
- LPGENT("Send later"), /* GEN_MSG_BUTTON_SENDLATER */
- LPGENT("Selection copied to clipboard"), /* GEN_MSG_SEL_COPIED */
- LPGENT("Autoscrolling is disabled, %d message(s) queued (press F12 to enable it)"), /* GEN_MSG_LOGFROZENQUEUED */
- LPGENT("Unknown client"), /* GEN_MSG_UNKNOWNCLIENT */
- LPGENT("No extended status message available"), /* GEN_MSG_NOXSTATUSMSG */
- LPGENT("Delivery failure: %s"), /* GEN_MSG_DELIVERYFAILURE */
- LPGENT("The message send timed out"), /* GEN_MSG_SENDTIMEOUT */
- LPGENT("Show Contact Picture"), /* GEN_MSG_SHOWPICTURE */
- LPGENT("You cannot edit user notes when there are unsent messages"), /* GEN_MSG_NO_EDIT_NOTES */
- LPGENT("You are editing the user notes. Click the button again or use the hotkey (default: Alt-N) to save the notes and return to normal messaging mode"), /* GEN_MSG_EDIT_NOTES_TIP */
- LPGENT("Warning: you have selected a subprotocol for sending the following messages which is currently offline"), /* GEN_MSG_MC_OFFLINEPROTOCOL */
- LPGENT("Contact is offline and this protocol does not support sending files to offline users."), /* GEN_MSG_OFFLINE_NO_FILE */
- LPGENT("File"), /* GEN_STRING_FILE */
- LPGENT("Message from %s"), /* GEN_STRING_MESSAGEFROM */
- LPGENT("Multisend: failed sending to: %s"), /* GEN_SQ_MULTISENDERROR */
- LPGENT("Look up \'%s\':"), /* GEN_MUC_LOOKUP */
- LPGENT("No word to look up"), /* GEN_MUC_LOOKUP_NOWORD */
- LPGENT("&Message"), /* GEN_MUC_MESSAGEAMP */
- LPGENT("UTF-8"), /* GEN_STRING_UTF8 */
-
- /* MUC LOG Formatting strings*/
-
- LPGENT("%s has joined"), /* MUC_LOG_JOINED */
- LPGENT("You have joined %s"), /* MUC_LOG_ME_JOINED */
- LPGENT("%s has left"), /* MUC_LOG_LEFT */
- LPGENT("%s has disconnected"), /* MUC_LOG_DISC */
- LPGENT("%s is now known as %s"), /* MUC_LOG_NICKCHANGE */
- LPGENT("You are now known as %s"), /* MUC_LOG_ME_NICKCHANGE */
- LPGENT("%s kicked %s"), /* MUC_LOG_KICK */
- LPGENT("Notice from %s: "), /* MUC_LOG_NOTICE */
- LPGENT("The topic is \'%s%s\'"), /* MUC_LOG_TOPICIS */
- LPGENT(" (set by %s on %s)"), /* MUC_LOG_TOPICSETBYON */
- LPGENT(" (set by %s)"), /* MUC_LOG_TOPICSETBY */
- LPGENT("%s enables \'%s\' status for %s"), /* MUC_LOG_STATUSENABLE */
- LPGENT("%s disables \'%s\' status for %s"), /* MUC_LOG_STATUSDISABLE */
- LPGENT("Highlight User..."), /* GEN_MUC_MENU_ADDTOHIGHLIGHT */
- LPGENT("Add user to highlight list"), /* GEN_MUC_HIGHLIGHT_ADD */
- LPGENT("Edit user highlight list"), /* GEN_MUC_HIGHLIGHT_EDIT */
- LPGENT("Edit Highlight List..."), /* GEN_MUC_MENU_EDITHIGHLIGHTLIST */
- LPGENT("Contact not on list. You may add it..."), /* GEN_MSG_CONTACT_NOT_ON_LIST */
- LPGENT("A send later job completed successfully.\nThe original message: %s"), /* GEN_SQ_SENDLATER_SUCCESS_POPUP */
-
- LPGENT("Copy To Clipboard"), /* GEN_IP_MENU_COPY */
- LPGENT("Open User Details..."), /* GEN_IP_MENU_USER_DETAILS */
- LPGENT("Messaging Settings..."), /* GEN_IP_MENU_MSGPREFS */
- LPGENT("Room Settings..."), /* GEN_IP_MENU_ROOMPREFS */
- LPGENT("Open History..."), /* GEN_IP_MENU_HISTORY */
-
- LPGENT("hour"), /* GEN_STRING_HOUR */
- LPGENT("hours"), /* GEN_STRING_HOURS */
- LPGENT("minute"), /* GEN_STRING_MINUTE */
- LPGENT("minutes"), /* GEN_STRING_MINUTES */
- LPGENT(", %d %s, %d %s idle"), /* MUC_SBAR_IDLEFORMAT */
- LPGENT("%s on %s%s"), /* MUC_SBAR_ON_SERVER */
- LPGENT(", %d %s idle"), /* MUC_SBAR_IDLEFORMAT_SHORT */
- LPGENT("Contact avatars"), /* CNT_OPT_TITLE_AVATARS */
-
- /*
- * MUC tray icon notifications
- */
-
- LPGENT("%s wants your attention in %s"), /* GEN_MUC_TRAY_HILIGHT */
- LPGENT("%s speaks in %s"), /* GEN_MUC_TRAY_MSG */
- LPGENT("%s has joined %s"), /* GEN_MUC_TRAY_JOINED */
- LPGENT("%s has left %s"), /* GEN_MUC_TRAY_LEFT */
- LPGENT("%s has disconnected"), /* GEN_MUC_TRAY_QUIT */
- LPGENT("%s is now known as %s"), /* GEN_MUC_TRAY_NICK */
- LPGENT("%s kicked %s from %s"), /* GEN_MUC_TRAY_KICK */
- LPGENT("Notice from %s"), /* GEN_MUC_TRAY_NOTICE */
- LPGENT("Topic change in %s"), /* GEN_MUC_TRAY_TOPIC */
- LPGENT("Information in %s"), /* GEN_MUC_TRAY_INFO */
- LPGENT("%s enables \'%s\' status for %s in %s"), /* GEN_MUC_TRAY_STATUS_ON */
- LPGENT("%s disables \'%s\' status for %s in %s"), /* GEN_MUC_TRAY_STATUS_OFF */
-
- /*
- * muc popups and disk logging
- */
-
- LPGENT("%s%s says:%s %s"), /* GEN_MUC_POPUP_MSG */
- LPGENT("%s has joined"), /* GEN_MUC_POPUP_JOINED */
- LPGENT("%s has left"), /* GEN_MUC_POPUP_LEFT */
- LPGENT("%s has left (%s)"), /* GEN_MUC_POPUP_LEFT1 */
- LPGENT("%s has disconnected"), /* GEN_MUC_POPUP_QUIT */
- LPGENT("%s has disconnected (%s)"), /* GEN_MUC_POPUP_QUIT1 */
- LPGENT("%s is now known as %s"), /* GEN_MUC_POPUP_NICK */
- LPGENT("%s kicked %s"), /* GEN_MUC_POPUP_KICK */
- LPGENT("%s kicked %s (%s)"), /* GEN_MUC_POPUP_KICK1 */
- LPGENT("Notice from %s: %s"), /* GEN_MUC_POPUP_NOTICE */
- LPGENT("The topic is \'%s\'"), /* GEN_MUC_POPUP_TOPIC */
- LPGENT("The topic is \'%s\' (set by %s)"), /* GEN_MUC_POPUP_TOPIC1 */
- LPGENT("%s enables \'%s\' status for %s"), /* GEN_MUC_POPUP_STATUS_ON */
- LPGENT("%s disables \'%s\' status for %s"), /* GEN_MUC_POPUP_STATUS_OFF */
-
- LPGENT("Sound notifications"), /* CNT_OPT_TITLE_SOUNDS */
- LPGENT("%s Idle: %dh,%02dm"), /* GEN_IP_IDLENOTICE */
-
- /**
- * template strings for the richedit - based infopanel tooltip.
- * Please DO NOT mess with the RTF formatting codes or you may destroy the layout of the
- * tooltips, just translate the strings inside
- */
- LPGENT("\\tab \\ul\\b Status message:\\ul0\\b0 \\par %s"), /* GEN_INFOTIP_STATUSMSG */
- LPGENT("\\par\\par\\tab \\ul\\b Extended status information:\\ul0\\b0 \\par "), /* GEN_INFOTIP_XSTATUS */
- LPGENT("\\par\\par\\tab \\ul\\b Listening to:\\ul0\\b0 \\par %s"), /* GEN_INFOTIP_LISTENING */
- LPGENT("\\par\\par\\ul\\b Client:\\ul0\\b0 %s"), /* GEN_INFOTIP_CLIENT */
-
- LPGENT("Insert [img] tag / surround selected text with [img][/img]"), /* GEN_BB_IMGTOOLTIP */
- LPGENT("Original timestamp"), /* QMGR_COL_ODATE */
- LPGENT("Message text"), /* QMGR_COL_MESSAGETEXT */
- LPGENT("Status"), /* QMGR_COL_STATUS */
- LPGENT("Last send info"), /* QMGR_COL_LASTSENDINFO */
- LPGENT("<All contacts>"), /* QMGR_FILTER_ALLCONTACTS */
- LPGENT("Failed"), /* QMGR_STATUS_FAILED */
- LPGENT("Sent OK"), /* QMGR_STATUS_SENTOK */
- LPGENT("Pending"), /* QMGR_STATUS_PENDING */
- LPGENT("Wait ACK"), /* QMGR_STATUS_WAITACK */
- LPGENT("Configuration issue|The unattended send feature is disabled. The \\b1 send later\\b0 and \\b1 send to multiple contacts\\b0 features depend on it.\n\nYou must enable it under \\b1Options->Message Sessions->Advanced tweaks\\b0. Changing this option requires a restart."), /* QMGR_ERROR_NOMULTISEND */
- LPGENT("Removed"), /* QMGR_STATUS_REMOVED */
- LPGENT("You are about to modify the state of one or more items in the\nunattended send queue. The requested action(s) will be executed at the next scheduled queue processing.\n\nThis action cannot be made undone."), /* QMGR_WARNING_REMOVAL */
- LPGENT("Queue manager"), /* QMGR_TITLE */
- LPGENT("Suspended"), /* QMGR_STATUS_HOLD */
- LPGENT("Deferred"), /* QMGR_STATUS_DEFERRED */
- LPGENT("A send later job failed to complete.\nThe original message: %s"), /* GEN_SQ_SENDLATER_FAILED_POPUP */
- LPGENT("The message cannot be sent delayed or to multiple contacts, because it exceeds the maximum allowed message length of %d bytes"), /* GEN_SQ_SENDLATER_ERROR_MSG_TOO_LONG */
-
- LPGENT("Default container"), /* GEN_DEFAULT_CONTAINER_NAME */
- /*
- * event notification popups
- */
- LPGENT("No description given"), /* GEN_STRING_EVENT_FILE_NODESC */
- LPGENT("Incoming file (invalid format"), /* GEN_STRING_EVENT_FILE_INVALID */
- LPGENT("Incoming file"), /* GEN_STRING_EVENT_FILE */
- /*
- * tooltips for static message window buttons
- */
- LPGENT("Add this contact permanently to your contact list"), /* GEN_TOOLTIP_ADDCONTACT */
- LPGENT("Do not add this contact permanently"), /* GEN_TOOLTIP_DONTADD */
- LPGENT("Expand or collapse the side bar"), /* GEN_TOOLTIP_EXPANDSIDEBAR */
-
- /*
- * task bar support (thumbnails)
- */
- LPGENT("Chat room %s"), /* GEN_TASKBAR_STRING_CHAT_ROOM */
- LPGENT("Server window"), /* GEN_TASKBAR_STRING_SERVER_WINDOW */
- LPGENT("%d Unread"), /* GEN_TASKBAR_STRING_UNREAD */
- LPGENT("%d User(s)"), /* GEN_TASKBAR_STRING_USERS */
-
- LPGENT("Previews not availble when using History++ plugin for message log display."), /* GEN_AEROPEEK_NOHPP */
- LPGENT("TabSRMM warning message"), /* GEN_STRING_WARNING_TITLE */
- LPGENT(" Client: %s"), /* GEN_IP_CLIENT */
- LPGENT(" Client not cached yet"), /* GEN_IP_CLIENT_UNKNOWN */
-};
-
-/*
- * these strings are used by option pages ONLY
- */
-
-wchar_t* CTranslator::m_OptStrings[OPT_LAST] = {
- LPGENT("Use Global Setting"), /* OPT_UPREFS_IPGLOBAL */
- LPGENT("Always On"), /* OPT_UPREFS_ON */
- LPGENT("Always Off"), /* OPT_UPREFS_OFF */
- LPGENT("Show always (if present)"), /* OPT_UPREFS_AVON */
- LPGENT("Never show it at all"), /* OPT_UPREFS_AVOFF */
- LPGENT("Force History++"), /* OPT_UPREFS_FORCEHPP */
- LPGENT("Force IEView"), /* OPT_UPREFS_FORCEIEV */
- LPGENT("Force Default Message Log"), /* OPT_UPREFS_FORCEDEFAULT */
- LPGENT("Simple Tags (*/_)"), /* OPT_UPREFS_SIMPLETAGS */
- LPGENT("BBCode"), /* OPT_UPREFS_BBCODE */
- LPGENT("Force Off"), /* OPT_UPREFS_FORMATTING_OFF */
- LPGENT("Use default codepage"), /* OPT_UPREFS_DEFAULTCP */
- LPGENT("Time zone service is missing"), /* OPT_UPREFS_NOTZSVC */
- LPGENT("Set messaging options for %s"), /* OPT_UPREFS_TITLE */
- LPGENT("Message Log"), /* OPT_UPREFS_MSGLOG */
- LPGENT("General"), /* OPT_UPREFS_GENERIC */
- LPGENT(""), /* OPT_AERO_EFFECT_NONE */
- LPGENT(""), /* OPT_AERO_EFFECT_MILK */
- LPGENT(""), /* OPT_AERO_EFFECT_CARBON */
- LPGENT(""), /* OPT_AERO_EFFECT_SOLID */
- LPGENT("No border"), /* OPT_GEN_NONE */
- LPGENT(""), /* OPT_GEN_AUTO */
- LPGENT(""), /* OPT_GEN_SUNKEN */
- LPGENT("1 pixel, solid"), /* OPT_GEN_1PIXEL */
- LPGENT("Rounded (only for internal avatar drawing)"), /* OPT_GEN_ROUNDED */
- LPGENT("Globally on"), /* OPT_GEN_GLOBALLY ON */
- LPGENT("On, if present"), /* OPT_GEN_ON_IF_PRESENT */
- LPGENT("Globally OFF"), /* OPT_GEN_GLOBALLY_OFF */
- LPGENT("On, if present, always in bottom display"), /* OPT_GEN_ON_ALWAYS_BOTTOM */
- LPGENT("Don't show them"), /* OPT_GEN_DONT_SHOW */
- LPGENT("Window layout tweaks"), /* OPT_TAB_LAYOUTTWEAKS */
- LPGENT("Load and apply"), /* OPT_TAB_SKINLOAD */
- LPGENT("Set panel visibility for this %s"), /* OPT_IPANEL_VISIBILTY_TITLE */
- LPGENT("contact"), /* OPT_IPANEL_VISIBILTY_IM */
- LPGENT("chat room"), /* OPT_IPANEL_VISIBILTY_CHAT */
- LPGENT("Do not synchronize the panel height with IM windows"), /* OPT_IPANEL_SYNC_TITLE_IM */
- LPGENT("Do not synchronize the panel height with group chat windows"), /* OPT_IPANEL_SYNC_TITLE_MUC */
- LPGENT("Inherit from container setting"), /* OPT_IPANEL_VIS_INHERIT */
- LPGENT("Always off"), /* OPT_IPANEL_VIS_OFF */
- LPGENT("Always on"), /* OPT_IPANEL_VIS_ON*/
- LPGENT("Use default size"), /* OPT_IPANEL_SIZE_GLOBAL */
- LPGENT("Use private size"), /* OPT_IPANEL_SIZE_PRIVATE */
- LPGENT("Off"), /* OPT_GEN_OFF */
- LPGENT("BBCode"), /* OPT_GEN_BBCODE */
- LPGENT("Default"), /* OPT_LOG_DEFAULT */
- LPGENT("IEView plugin"), /* OPT_LOG_IEVIEW */
- LPGENT("History++ plugin"), /* OPT_LOG_HPP */
- LPGENT("** New contacts **"), /* OPT_MTN_NEW */
- LPGENT("** Unknown contacts **"), /* OPT_MTN_UNKNOWN */
- LPGENT("Always"), /* OPT_GEN_ALWAYS */
- LPGENT("Always, but no popup when window is focused"), /* OPT_MTN_NOTFOUCSED */
- LPGENT("Only when no message window is open"), /* OPT_MTN_ONLYCLOSED */
- LPGENT("Normal - close tab, if last tab is closed also close the window"), /* OPT_CNT_ESCNORMAL */
- LPGENT("Minimize the window to the task bar"), /* OPT_CNT_ESCMINIMIZE */
- LPGENT("Close or hide window, depends on the close button setting above"), /* OPT_CNT_ESCCLOSE */
- LPGENT("Show balloon popup (unsupported system)"), /* OPT_MTN_UNSUPPORTED */
- LPGENT("Choose status modes"), /* OPT_SMODE_CHOOSE */
- LPGENT("nick of current contact (if defined)"), /* OPT_MUC_LOGTIP1 */
- LPGENT("protocol name of current contact (if defined). Account name is used when protocol supports multiaccounts"), /* OPT_MUC_LOGTIP2 */
- LPGENT("UserID of current contact (if defined). It is like UIN Number for ICQ, JID for Jabber, etc."), /* OPT_MUC_LOGTIP3 */
- LPGENT("path to root miranda folder"), /* OPT_MUC_LOGTIP4 */
- LPGENT("path to current miranda profile"), /* OPT_MUC_LOGTIP5 */
- LPGENT("name of current miranda profile (filename, without extension)"), /* OPT_MUC_LOGTIP6 */
- LPGENT("will return parsed string %miranda_profile%\\Profiles\\%miranda_profilename%"), /* OPT_MUC_LOGTIP7 */
- LPGENT("same as environment variable %APPDATA% for currently logged-on Windows user"), /* OPT_MUC_LOGTIP8 */
- LPGENT("username for currently logged-on Windows user"), /* OPT_MUC_LOGTIP9 */
- LPGENT("\"My Documents\" folder for currently logged-on Windows user"), /* OPT_MUC_LOGTIP10 */
- LPGENT("\"Desktop\" folder for currently logged-on Windows user"), /* OPT_MUC_LOGTIP11 */
- LPGENT("any environment variable defined in current Windows session (like %systemroot%, %allusersprofile%, etc.)"), /* OPT_MUC_LOGTIP12 */
- LPGENT("day of month, 1-31"), /* OPT_MUC_LOGTIP13 */
- LPGENT("day of month, 01-31"), /* OPT_MUC_LOGTIP14 */
- LPGENT("month number, 1-12"), /* OPT_MUC_LOGTIP15 */
- LPGENT("month number, 01-12"), /* OPT_MUC_LOGTIP16 */
- LPGENT("abbreviated month name"), /* OPT_MUC_LOGTIP17 */
- LPGENT("full month name"), /* OPT_MUC_LOGTIP18 */
- LPGENT("year without century, 01-99"), /* OPT_MUC_LOGTIP19 */
- LPGENT("year with century, 1901-9999"), /* OPT_MUC_LOGTIP20 */
- LPGENT("abbreviated weekday name"), /* OPT_MUC_LOGTIP21 */
- LPGENT("full weekday name"), /* OPT_MUC_LOGTIP22 */
- LPGENT("Appearance and functionality of chat room windows"), /* OPT_MUC_OPTHEADER1 */
- LPGENT("Appearance of the message log"), /* OPT_MUC_OPTEHADER2 */
- LPGENT("Variables"), /* OPT_MUC_VARIABLES */
- LPGENT("Select Folder"), /* OPT_MUC_SELECTFOLDER */
- LPGENT("No markers"), /* OPT_MUC_NOMARKERS */
- LPGENT("Show as icons"), /* OPT_MUC_ASICONS */
- LPGENT("Show as text symbols"), /* OPT_MUC_ASSYMBOLS */
- LPGENT("Template Set Editor"), /* OPT_TEMP_TITLE */
- LPGENT("This will reset the template set to the default built-in templates. Are you sure you want to do this?"), /* OPT_TEMP_RESET */
- LPGENT("Template set was successfully reset, please close and reopen all message windows. This template editor window will now close."), /* OPT_TEMP_WASRESET */
- LPGENT("Template editor help"), /* OPT_TEMP_HELPTITLE */
- LPGENT("General"), /* OPT_TABS_GENERAL */
- LPGENT("Tabs and layout"), /* OPT_TABS_TABS */
- LPGENT("Containers"), /* OPT_TABS_CONTAINERS */
- LPGENT("Message log"), /* OPT_TABS_LOG */
- LPGENT("Tool bar"), /* OPT_TABS_TOOLBAR */
- LPGENT("Advanced tweaks"), /* OPT_TABS_ADVANCED */
- LPGENT("Settings"), /* OPT_TABS_MUC_SETTINGS */
- LPGENT("Log formatting"), /* OPT_TABS_MUC_LOG */
- LPGENT("Events and filters"), /* OPT_TABS_MUC_EVENTS */
- LPGENT("Highlighting"), /* OPT_TABS_MUC_HIGHLIGHT */
- LPGENT("You have chosen to use an external plugin for displaying the message history in the chat window. Most of the settings on this page are for the standard message log viewer only and will have no effect. To change the appearance of the message log, you must configure either IEView or History++."), /* OPT_MSGLOG_EXPLAINSETTINGS */
- LPGENT("<no skin>"), /* OPT_SKIN_NOSKINSELECT */
-};
-
-/** IMPORTANT note to translators for translation of the warning dialogs:
- *
- * Make sure to NOT remove the pipe character ( | ) from the strings. This separates the
- * warning title from the actual warning text.
- *
- * Also, do NOT insert multiple | characters in the translated string. Not well-formatted
- * warnings cannot be translated and the plugin will show the untranslated versions.
- *
- * strings marked with a NOT TRANSLATABLE comment cannot be translated at all. This
- * will be used for important and critical error messages only.
- *
- * some strings are empty, this is intentional and used for error messages that share
- * the message with other possible error notifications (popups, tool tips etc.)
- *
- * Entries that do not use the LPGENT() macro are NOT TRANSLATABLE, so don't bother translating them.
- */
-wchar_t* CTranslator::m_Warnings[WARN_LAST] = {
- LPGENT("Important release notes|A test warning message"), /* WARN_TEST */ /* reserved for important notes after upgrade - NOT translatable */
- LPGENT("Icon pack version check|The installed icon pack is outdated and might be incompatible with TabSRMM version 3.\n\n\\b1Missing or misplaced icons are possible issues with the currently installed icon pack.\\b0"), /* WARN_ICONPACKVERSION */ /* NOT TRANSLATABLE */
- LPGENT("Edit user notes|You are editing the user notes. Click the button again or use the hotkey (default: Alt-N) to save the notes and return to normal messaging mode"), /* WARN_EDITUSERNOTES */
- LPGENT("Missing component|The icon pack is missing. Please install it to the default icons folder.\n\nNo icons will be available"), /* WARN_ICONPACKMISSING */ /* NOT TRANSLATABLE */
- LPGENT("Aero peek warning|You have enabled Aero Peek features and loaded a custom container window skin\n\nThis can result in minor visual anomalies in the live preview feature."), /* WARN_AEROPEEKSKIN */
- LPGENT("TabSRMM group chat module|TabSRMM could not enable its group chat module. The most likely cause is that you have installed and enabled \\b1chat.dll\\b0 or another plugin that provides groupchat services.\n\nShould I try to fix this now \\b1(a restart of Miranda is required to apply these changes)?\\b0"), /* WARN_CHAT_ENABLED */ /* NOT TRANSLATABLE */
- L"Filetransfer problem|Sending the image by file transfer failed.\n\nPossible reasons: File transfers not supported, either you or the target contact is offline, or you are invisible and the target contact is not on your visibilty list.", /* WARN_IMGSVC_MISSING */ /* NOT TRANSLATABLE */
- LPGENT("Settings problem|The option \\b1 History->Imitate IEView API\\b0 is enabled and the History++ plugin is active. This can cause problems when using IEView as message log viewer.\n\nShould I correct the option (a restart is required)?"), /* WARN_HPP_APICHECK */
- L" ", /* WARN_NO_SENDLATER */ /*uses QMGR_ERROR_NOMULTISEND */
- LPGENT("Closing Window|You are about to close a window with multiple tabs open.\n\nProceed?"), /* WARN_CLOSEWINDOW */
- LPGENT("Closing options dialog|To reflect the changes done by importing a theme in the options dialog, the dialog must be closed after loading a theme \\b1 and unsaved changes might be lost\\b0 .\n\nDo you want to continue?"), /* WARN_OPTION_CLOSE */
- LPGENT("Loading a theme|Loading a color and font theme can overwrite the settings defined by your skin.\n\nDo you want to continue?"), /* WARN_THEME_OVERWRITE */
-};
-
-wchar_t* CTranslator::m_translated[STR_LAST];
-wchar_t* CTranslator::m_OptTranslated[OPT_LAST];
-wchar_t* CTranslator::m_WarningsTranslated[WARN_LAST];
-
-TOptionListGroup CTranslator::m_lvGroupsModPlus[] = {
+TOptionListGroup m_lvGroupsModPlus[] = {
0, LPGENT("Message window tweaks"),
0, LPGENT("Error feedback"),
0, NULL
};
-TOptionListItem CTranslator::m_lvItemsModPlus[] = {
+TOptionListItem m_lvItemsModPlus[] = {
0, LPGENT("Show client icon in status bar (fingerprint plugin required)"), 0, LOI_TYPE_SETTING, (UINT_PTR)"adv_ClientIconInStatusBar", 0,
0, LPGENT("Show skinnable tooltip in chat (tipper plugin required)"), 1, LOI_TYPE_SETTING, (UINT_PTR)"adv_TipperTooltip", 0,
0, LPGENT("Enable typing sounds"), 0, LOI_TYPE_SETTING, (UINT_PTR)"adv_soundontyping", 0,
@@ -483,7 +52,7 @@ TOptionListItem CTranslator::m_lvItemsModPlus[] = {
0, NULL, 0, 0, 0, 0
};
-TOptionListItem CTranslator::m_lvItemsNEN [] = {
+TOptionListItem m_lvItemsNEN [] = {
0, LPGENT("Show a preview of the event"), IDC_CHKPREVIEW, LOI_TYPE_SETTING, (UINT_PTR)&nen_options.bPreview, 1,
0, LPGENT("Don't announce event when message dialog is open"), IDC_CHKWINDOWCHECK, LOI_TYPE_SETTING, (UINT_PTR)&nen_options.bWindowCheck, 1,
0, LPGENT("Don't announce events from RSS protocols"), IDC_NORSS, LOI_TYPE_SETTING, (UINT_PTR)&nen_options.bNoRSS, 1,
@@ -512,7 +81,7 @@ TOptionListItem CTranslator::m_lvItemsNEN [] = {
0, NULL, 0, 0, 0, 0
};
-TOptionListGroup CTranslator::m_lvGroupsNEN[] = {
+TOptionListGroup m_lvGroupsNEN[] = {
0, LPGENT("Disable notifications"),
0, LPGENT("General options"),
0, LPGENT("System tray icon"),
@@ -524,14 +93,14 @@ TOptionListGroup CTranslator::m_lvGroupsNEN[] = {
0, NULL
};
-TOptionListGroup CTranslator::m_lvGroupsMsg[] = {
+TOptionListGroup m_lvGroupsMsg[] = {
0, LPGENT("Message window behaviour"),
0, LPGENT("Sending messages"),
0, LPGENT("Other options"),
0, NULL
};
-TOptionListItem CTranslator::m_lvItemsMsg[] = {
+TOptionListItem m_lvItemsMsg[] = {
0, LPGENT("Send on SHIFT - Enter"), 0, LOI_TYPE_SETTING, (UINT_PTR)"sendonshiftenter", 1,
0, LPGENT("Send message on 'Enter'"), SRMSGDEFSET_SENDONENTER, LOI_TYPE_SETTING, (UINT_PTR)SRMSGSET_SENDONENTER, 1,
0, LPGENT("Send message on double 'Enter'"), 0, LOI_TYPE_SETTING, (UINT_PTR)"SendOnDblEnter", 1,
@@ -547,7 +116,7 @@ TOptionListItem CTranslator::m_lvItemsMsg[] = {
0, NULL, 0, 0, 0, 0
};
-TOptionListGroup CTranslator::m_lvGroupsLog[] = {
+TOptionListGroup m_lvGroupsLog[] = {
0, LPGENT("Message log appearance"),
0, LPGENT("Support for external plugins"),
0, LPGENT("Other options"),
@@ -557,7 +126,7 @@ TOptionListGroup CTranslator::m_lvGroupsLog[] = {
0, NULL
};
-TOptionListItem CTranslator::m_lvItemsLog[] = {
+TOptionListItem m_lvItemsLog[] = {
0, LPGENT("Show file events"), 1, LOI_TYPE_SETTING, (UINT_PTR)SRMSGSET_SHOWFILES, 3,
0, LPGENT("Show timestamps"), 1, LOI_TYPE_FLAG, (UINT_PTR)MWF_LOG_SHOWTIME, 4,
0, LPGENT("Show dates in timestamps"), 1, LOI_TYPE_FLAG, (UINT_PTR)MWF_LOG_SHOWDATES, 4,
@@ -586,14 +155,14 @@ TOptionListItem CTranslator::m_lvItemsLog[] = {
0, NULL, 0, 0, 0, 0
};
-TOptionListGroup CTranslator::m_lvGroupsTab[] = {
+TOptionListGroup m_lvGroupsTab[] = {
0, LPGENT("Tab options"),
0, LPGENT("How to create tabs and windows for incoming messages"),
0, LPGENT("Miscellaneous options"),
0, NULL
};
-TOptionListItem CTranslator::m_lvItemsTab[] = {
+TOptionListItem m_lvItemsTab[] = {
0, LPGENT("Show status text on tabs"), 1, LOI_TYPE_SETTING, (UINT_PTR)"tabstatus", 0,
0, LPGENT("Prefer xStatus icons when available"), 1, LOI_TYPE_SETTING, (UINT_PTR)"use_xicons", 0,
0, LPGENT("Detailed tooltip on tabs (requires mToolTip or Tipper plugin)"), 0, LOI_TYPE_SETTING, (UINT_PTR)"d_tooltips", 0,
@@ -613,55 +182,23 @@ TOptionListItem CTranslator::m_lvItemsTab[] = {
TOptionListItem* CTranslator::getTree(UINT id)
{
switch(id) {
- case TREE_MODPLUS:
- return(m_lvItemsModPlus);
- case TREE_NEN:
- return(m_lvItemsNEN);
- case TREE_MSG:
- return(m_lvItemsMsg);
- case TREE_LOG:
- return(m_lvItemsLog);
- case TREE_TAB:
- return(m_lvItemsTab);
- default:
- return(0);
+ case TREE_MODPLUS: return m_lvItemsModPlus;
+ case TREE_NEN: return m_lvItemsNEN;
+ case TREE_MSG: return m_lvItemsMsg;
+ case TREE_LOG: return m_lvItemsLog;
+ case TREE_TAB: return m_lvItemsTab;
}
+ return 0;
}
TOptionListGroup* CTranslator::getGroupTree(UINT id)
{
switch(id) {
- case TREE_MODPLUS:
- return(m_lvGroupsModPlus);
- case TREE_NEN:
- return(m_lvGroupsNEN);
- case TREE_MSG:
- return(m_lvGroupsMsg);
- case TREE_LOG:
- return(m_lvGroupsLog);
- case TREE_TAB:
- return(m_lvGroupsTab);
- default:
- return(0);
- }
-}
-
-void CTranslator::translateGroupTree(TOptionListGroup *lvGroup)
-{
- UINT i = 0;
-
- while(lvGroup[i].szName) {
- lvGroup[i].szName = TranslateTS(lvGroup[i].szName);
- i++;
- }
-}
-
-void CTranslator::translateOptionTree(TOptionListItem *lvItems)
-{
- UINT i = 0;
-
- while(lvItems[i].szName) {
- lvItems[i].szName = TranslateTS(lvItems[i].szName);
- i++;
+ case TREE_MODPLUS: return m_lvGroupsModPlus;
+ case TREE_NEN: return m_lvGroupsNEN;
+ case TREE_MSG: return m_lvGroupsMsg;
+ case TREE_LOG: return m_lvGroupsLog;
+ case TREE_TAB: return m_lvGroupsTab;
}
+ return 0;
}
diff --git a/plugins/TabSRMM/src/trayicon.cpp b/plugins/TabSRMM/src/trayicon.cpp
index 28de552468..7e3bcd2439 100644
--- a/plugins/TabSRMM/src/trayicon.cpp
+++ b/plugins/TabSRMM/src/trayicon.cpp
@@ -114,9 +114,9 @@ void TSAPI CreateTrayMenus(int mode)
PluginConfig.g_hMenuRecent = CreatePopupMenu();
PluginConfig.g_hMenuTrayContext = GetSubMenu(PluginConfig.g_hMenuContext, 6);
ModifyMenu(PluginConfig.g_hMenuTrayContext, 0, MF_BYPOSITION | MF_POPUP,
- (UINT_PTR)PluginConfig.g_hMenuFavorites, CTranslator::get(CTranslator::GEN_FAVORITES));
+ (UINT_PTR)PluginConfig.g_hMenuFavorites, TranslateT("Favorites"));
ModifyMenu(PluginConfig.g_hMenuTrayContext, 2, MF_BYPOSITION | MF_POPUP,
- (UINT_PTR)PluginConfig.g_hMenuRecent, CTranslator::get(CTranslator::GEN_RECENT_SESSIONS));
+ (UINT_PTR)PluginConfig.g_hMenuRecent, TranslateT("Recent Sessions"));
LoadFavoritesAndRecent();
}
else {
diff --git a/plugins/TabSRMM/src/typingnotify.cpp b/plugins/TabSRMM/src/typingnotify.cpp
index ac6550c01f..7878715850 100644
--- a/plugins/TabSRMM/src/typingnotify.cpp
+++ b/plugins/TabSRMM/src/typingnotify.cpp
@@ -165,9 +165,9 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
TranslateDialogDefault(hwndDlg);
if (!ServiceExists(MS_POPUP_ADDPOPUPT))
- SetDlgItemText(hwndDlg, IDC_INFO, CTranslator::get(CTranslator::GEN_MTN_POPUP_WARNING));
+ SetDlgItemText(hwndDlg, IDC_INFO, TranslateT("Warning: Popup plugin not found."));
else if (!PopupService)
- SetDlgItemText(hwndDlg, IDC_INFO, CTranslator::get(CTranslator::GEN_MTN_POPUP_UNSUPPORTED));
+ SetDlgItemText(hwndDlg, IDC_INFO, TranslateT("Warning: Current Popup plugin version is not supported."));
if (ColorMode == COLOR_WINDOWS) {
CheckDlgButton(hwndDlg, IDC_USEWINCOLORS, BST_CHECKED);
Utils::enableDlgControl(hwndDlg, IDC_USEPOPUPCOLORS, FALSE);
@@ -299,12 +299,12 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
switch (i) {
case PROTOTYPE_CONTACTTYPING_OFF:
- lstrcpy(ppd.lptzContactName, CTranslator::get(CTranslator::GEN_CONTACT));
+ lstrcpy(ppd.lptzContactName, TranslateT("Contact"));
lstrcpyn(ppd.lptzText, szStop, MAX_SECONDLINE);
notyping = 1;
break;
default:
- lstrcpy(ppd.lptzContactName, CTranslator::get(CTranslator::GEN_CONTACT));
+ lstrcpy(ppd.lptzContactName, TranslateT("Contact"));
lstrcpyn(ppd.lptzText, szStart, MAX_SECONDLINE);
notyping = 0;
break;
@@ -539,8 +539,8 @@ int TN_ModuleInit()
for (i = 0; i < sizeof(colorPicker) / sizeof(colorPicker[0]); i++)
colorPicker[i].color = M->GetDword(Module,colorPicker[i].desc,0);
- mir_sntprintf(szStart, sizeof(szStart), CTranslator::get(CTranslator::GEN_MTN_START));
- mir_sntprintf(szStop, sizeof(szStop), CTranslator::get(CTranslator::GEN_MTN_STOP));
+ mir_sntprintf(szStart, sizeof(szStart), TranslateT("...is typing a message."));
+ mir_sntprintf(szStop, sizeof(szStop), TranslateT("...has stopped typing."));
if (PopupService && ShowMenu) {
CLISTMENUITEM mi = { 0 };
diff --git a/plugins/TabSRMM/src/userprefs.cpp b/plugins/TabSRMM/src/userprefs.cpp
index 8a311e98f6..c44b70b547 100644
--- a/plugins/TabSRMM/src/userprefs.cpp
+++ b/plugins/TabSRMM/src/userprefs.cpp
@@ -94,29 +94,29 @@ static INT_PTR CALLBACK DlgProcUserPrefs(HWND hwndDlg, UINT msg, WPARAM wParam,
TranslateDialogDefault(hwndDlg);
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)lParam);
- SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPGLOBAL));
- SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPON));
- SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPOFF));
+ SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use Global Setting"));
+ SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always On"));
+ SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Always Off"));
SendDlgItemMessage(hwndDlg, IDC_INFOPANEL, CB_SETCURSEL, bInfoPanel == 0 ? 0 : (bInfoPanel == 1 ? 1 : 2), 0);
- SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPGLOBAL));
- SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_AVON));
- SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_AVOFF));
+ SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use Global Setting"));
+ SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Show always (if present)"));
+ SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Never show it at all"));
SendDlgItemMessage(hwndDlg, IDC_SHOWAVATAR, CB_SETCURSEL, bAvatarVisible == 0xff ? 0 : (bAvatarVisible == 1 ? 1 : 2), 0);
- SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPGLOBAL));
- SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_FORCEDEFAULT));
+ SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use Global Setting"));
+ SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Force Default Message Log"));
SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_SETITEMDATA, 0, 0);
SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_SETITEMDATA, 1, 1);
if(have_hpp) {
- SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_FORCEHPP));
+ SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Force History++"));
SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_SETITEMDATA, 2, 2);
}
if(have_ieview) {
- SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_FORCEIEV));
+ SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Force IEView"));
SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_SETITEMDATA, have_hpp ? 3 : 2, 3);
}
@@ -131,9 +131,9 @@ static INT_PTR CALLBACK DlgProcUserPrefs(HWND hwndDlg, UINT msg, WPARAM wParam,
SendDlgItemMessage(hwndDlg, IDC_IEVIEWMODE, CB_SETCURSEL, (have_hpp && have_ieview) ? 3 : (have_ieview ? 2 : 0), 0);
}
- SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_IPGLOBAL));
- SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_BBCODE));
- SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_INSERTSTRING, -1, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_FORMATTING_OFF));
+ SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Use Global Setting"));
+ SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_INSERTSTRING, -1, (LPARAM)TranslateT("BBCode"));
+ SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Force Off"));
SendDlgItemMessage(hwndDlg, IDC_TEXTFORMATTING, CB_SETCURSEL, iLocalFormat == 0 ? 0 : (iLocalFormat == -1 ? 2 : (1)), 0);
@@ -158,7 +158,7 @@ static INT_PTR CALLBACK DlgProcUserPrefs(HWND hwndDlg, UINT msg, WPARAM wParam,
hCpCombo = GetDlgItem(hwndDlg, IDC_CODEPAGES);
sCodePage = M->GetDword(hContact, "ANSIcodepage", 0);
EnumSystemCodePages((CODEPAGE_ENUMPROC)FillCpCombo, CP_INSTALLED);
- SendDlgItemMessage(hwndDlg, IDC_CODEPAGES, CB_INSERTSTRING, 0, (LPARAM)CTranslator::getOpt(CTranslator::OPT_UPREFS_DEFAULTCP));
+ SendDlgItemMessage(hwndDlg, IDC_CODEPAGES, CB_INSERTSTRING, 0, (LPARAM)TranslateT("Use default codepage"));
if (sCodePage == 0)
SendDlgItemMessage(hwndDlg, IDC_CODEPAGES, CB_SETCURSEL, (WPARAM)0, 0);
else {
@@ -483,7 +483,7 @@ INT_PTR CALLBACK DlgProcUserPrefsFrame(HWND hwndDlg, UINT msg, WPARAM wParam, LP
GetClientRect(hwndDlg, &rcClient);
- mir_sntprintf(szBuffer, safe_sizeof(szBuffer), CTranslator::getOpt(CTranslator::OPT_UPREFS_TITLE),
+ mir_sntprintf(szBuffer, safe_sizeof(szBuffer), TranslateT("Set messaging options for %s"),
(TCHAR *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR));
SetWindowText(hwndDlg, szBuffer);
@@ -491,7 +491,7 @@ INT_PTR CALLBACK DlgProcUserPrefsFrame(HWND hwndDlg, UINT msg, WPARAM wParam, LP
tci.cchTextMax = 100;
tci.mask = TCIF_PARAM | TCIF_TEXT;
tci.lParam = (LPARAM)CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_USERPREFS), hwndDlg, DlgProcUserPrefs, (LPARAM)hContact);
- tci.pszText = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_UPREFS_GENERIC));
+ tci.pszText = TranslateT("General");
TabCtrl_InsertItem(GetDlgItem(hwndDlg, IDC_OPTIONSTAB), 0, &tci);
MoveWindow((HWND)tci.lParam, 6, DPISCALEY_S(32), rcClient.right - 12, rcClient.bottom - DPISCALEY_S(80), 1);
ShowWindow((HWND)tci.lParam, SW_SHOW);
@@ -500,7 +500,7 @@ INT_PTR CALLBACK DlgProcUserPrefsFrame(HWND hwndDlg, UINT msg, WPARAM wParam, LP
tci.lParam = (LPARAM)CreateDialogParam(g_hInst, MAKEINTRESOURCE(IDD_USERPREFS1), hwndDlg, DlgProcUserPrefsLogOptions, (LPARAM)hContact);
- tci.pszText = const_cast<TCHAR *>(CTranslator::getOpt(CTranslator::OPT_UPREFS_MSGLOG));
+ tci.pszText = TranslateT("Message Log");
TabCtrl_InsertItem(GetDlgItem(hwndDlg, IDC_OPTIONSTAB), 1, &tci);
MoveWindow((HWND)tci.lParam, 6, DPISCALEY_S(32), rcClient.right - 12, rcClient.bottom - DPISCALEY_S(80), 1);
ShowWindow((HWND)tci.lParam, SW_HIDE);
diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp
index 66a8effe7a..dcbab49b0a 100644
--- a/plugins/TabSRMM/src/utils.cpp
+++ b/plugins/TabSRMM/src/utils.cpp
@@ -388,7 +388,7 @@ const TCHAR* Utils::FormatTitleBar(const TWindowData *dat, const TCHAR *szFormat
break;
}
case 'c': {
- TCHAR *c = (!_tcscmp(dat->pContainer->szName, _T("default")) ? const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_DEFAULT_CONTAINER_NAME)) : dat->pContainer->szName);
+ TCHAR *c = (!_tcscmp(dat->pContainer->szName, _T("default")) ? TranslateT("Default container") : dat->pContainer->szName);
title.insert(tempmark + 2, c);
title.erase(tempmark, 2);
curpos = tempmark + lstrlen(c);
@@ -462,7 +462,7 @@ const TCHAR* Utils::FormatTitleBar(const TWindowData *dat, const TCHAR *szFormat
curpos = tempmark + lstrlen(tszStatusMsg);
}
else if(title[curpos] == 't') {
- const TCHAR* tszStatusMsg = CTranslator::get(CTranslator::GEN_NO_STATUS);
+ const TCHAR* tszStatusMsg = TranslateT("No status message");
title.insert(tempmark + 2, tszStatusMsg);
curpos = tempmark + lstrlen(tszStatusMsg);
}
@@ -1165,9 +1165,43 @@ HMODULE Utils::loadSystemLibrary(const wchar_t* szFilename)
}
return(_h);
}
+
/**
* implementation of the CWarning class
*/
+
+/** IMPORTANT note to translators for translation of the warning dialogs:
+ *
+ * Make sure to NOT remove the pipe character ( | ) from the strings. This separates the
+ * warning title from the actual warning text.
+ *
+ * Also, do NOT insert multiple | characters in the translated string. Not well-formatted
+ * warnings cannot be translated and the plugin will show the untranslated versions.
+ *
+ * strings marked with a NOT TRANSLATABLE comment cannot be translated at all. This
+ * will be used for important and critical error messages only.
+ *
+ * some strings are empty, this is intentional and used for error messages that share
+ * the message with other possible error notifications (popups, tool tips etc.)
+ *
+ * Entries that do not use the LPGENT() macro are NOT TRANSLATABLE, so don't bother translating them.
+ */
+
+static wchar_t* warnings[] = {
+ LPGENT("Important release notes|A test warning message"), /* WARN_TEST */ /* reserved for important notes after upgrade - NOT translatable */
+ LPGENT("Icon pack version check|The installed icon pack is outdated and might be incompatible with TabSRMM version 3.\n\n\\b1Missing or misplaced icons are possible issues with the currently installed icon pack.\\b0"), /* WARN_ICONPACKVERSION */ /* NOT TRANSLATABLE */
+ LPGENT("Edit user notes|You are editing the user notes. Click the button again or use the hotkey (default: Alt-N) to save the notes and return to normal messaging mode"), /* WARN_EDITUSERNOTES */
+ LPGENT("Missing component|The icon pack is missing. Please install it to the default icons folder.\n\nNo icons will be available"), /* WARN_ICONPACKMISSING */ /* NOT TRANSLATABLE */
+ LPGENT("Aero peek warning|You have enabled Aero Peek features and loaded a custom container window skin\n\nThis can result in minor visual anomalies in the live preview feature."), /* WARN_AEROPEEKSKIN */
+ LPGENT("TabSRMM group chat module|TabSRMM could not enable its group chat module. The most likely cause is that you have installed and enabled \\b1chat.dll\\b0 or another plugin that provides groupchat services.\n\nShould I try to fix this now \\b1(a restart of Miranda is required to apply these changes)?\\b0"), /* WARN_CHAT_ENABLED */ /* NOT TRANSLATABLE */
+ L"Filetransfer problem|Sending the image by file transfer failed.\n\nPossible reasons: File transfers not supported, either you or the target contact is offline, or you are invisible and the target contact is not on your visibilty list.", /* WARN_IMGSVC_MISSING */ /* NOT TRANSLATABLE */
+ LPGENT("Settings problem|The option \\b1 History->Imitate IEView API\\b0 is enabled and the History++ plugin is active. This can cause problems when using IEView as message log viewer.\n\nShould I correct the option (a restart is required)?"), /* WARN_HPP_APICHECK */
+ L" ", /* WARN_NO_SENDLATER */ /*uses "Configuration issue|The unattended send feature is disabled. The \\b1 send later\\b0 and \\b1 send to multiple contacts\\b0 features depend on it.\n\nYou must enable it under \\b1Options->Message Sessions->Advanced tweaks\\b0. Changing this option requires a restart." */
+ LPGENT("Closing Window|You are about to close a window with multiple tabs open.\n\nProceed?"), /* WARN_CLOSEWINDOW */
+ LPGENT("Closing options dialog|To reflect the changes done by importing a theme in the options dialog, the dialog must be closed after loading a theme \\b1 and unsaved changes might be lost\\b0 .\n\nDo you want to continue?"), /* WARN_OPTION_CLOSE */
+ LPGENT("Loading a theme|Loading a color and font theme can overwrite the settings defined by your skin.\n\nDo you want to continue?"), /* WARN_THEME_OVERWRITE */
+};
+
CWarning::CWarning(const wchar_t *tszTitle, const wchar_t *tszText, const UINT uId, const DWORD dwFlags)
{
m_szTitle = new std::basic_string<wchar_t>(tszTitle);
@@ -1254,16 +1288,16 @@ LRESULT CWarning::show(const int uId, DWORD dwFlags, const wchar_t* tszTxt)
else {
if(uId != -1) {
if(dwFlags & CWF_UNTRANSLATED)
- _s = const_cast<wchar_t *>(CTranslator::getUntranslatedWarning(uId));
+ _s = TranslateTS(warnings[uId]);
else {
/*
* revert to untranslated warning when the translated message
* is not well-formatted.
*/
- _s = const_cast<wchar_t *>(CTranslator::getWarning(uId));
+ _s = TranslateTS(warnings[uId]);
if(wcslen(_s) < 3 || 0 == wcschr(_s, '|'))
- _s = const_cast<wchar_t *>(CTranslator::getUntranslatedWarning(uId));
+ _s = TranslateTS(warnings[uId]);
}
}
else if (-1 == uId && tszTxt) {
@@ -1356,7 +1390,7 @@ INT_PTR CALLBACK CWarning::dlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
m_hwnd = hwnd;
- ::SetWindowTextW(hwnd, CTranslator::get(CTranslator::GEN_STRING_WARNING_TITLE));
+ ::SetWindowTextW(hwnd, TranslateT("TabSRMM warning message"));
::SendMessage(hwnd, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(::LoadSkinnedIconBig(SKINICON_OTHER_MIRANDA)));
::SendMessage(hwnd, WM_SETICON, ICON_SMALL, reinterpret_cast<LPARAM>(::LoadSkinnedIcon(SKINICON_OTHER_MIRANDA)));
::SendDlgItemMessage(hwnd, IDC_WARNTEXT, EM_AUTOURLDETECT, (WPARAM) TRUE, 0);
diff --git a/plugins/TabSRMM/tabmodplus/modplus.cpp b/plugins/TabSRMM/tabmodplus/modplus.cpp
index 686e171604..8ac2e5d698 100644
--- a/plugins/TabSRMM/tabmodplus/modplus.cpp
+++ b/plugins/TabSRMM/tabmodplus/modplus.cpp
@@ -129,7 +129,7 @@ static int RegisterCustomButton(WPARAM wParam,LPARAM lParam)
bbd.dwDefPos =200;
bbd.hIcon = PluginConfig.g_buttonBarIconHandles[3];
bbd.pszModuleName = (char *)"Tabmodplus";
- bbd.ptszTooltip = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_BB_IMGTOOLTIP));
+ bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]");
return (CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&bbd));
}
@@ -222,7 +222,7 @@ static int CustomButtonPressed(WPARAM wParam,LPARAM lParam)
_sntprintf(pszFormatedText,6*sizeof(TCHAR),_T("%s"),_T("[img]"));
- bbd.ptszTooltip = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_BB_IMGTOOLTIP));
+ bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]");
CallService(MS_BB_SETBUTTONSTATE, wParam, (LPARAM)&bbd);
}break;
@@ -233,7 +233,7 @@ static int CustomButtonPressed(WPARAM wParam,LPARAM lParam)
ZeroMemory(pszFormatedText,7*sizeof(TCHAR));
_sntprintf(pszFormatedText,7*sizeof(TCHAR),_T("%s"),_T("[/img]"));
- bbd.ptszTooltip = const_cast<TCHAR *>(CTranslator::get(CTranslator::GEN_BB_IMGTOOLTIP));
+ bbd.ptszTooltip = TranslateT("Insert [img] tag / surround selected text with [img][/img]");
CallService(MS_BB_SETBUTTONSTATE, wParam, (LPARAM)&bbd);
}break;