summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2020-04-14 17:11:39 +0300
committerdartraiden <wowemuh@gmail.com>2020-04-14 17:12:16 +0300
commitb254b1118f3d1ed386b9ac39837ce045c1c02cc5 (patch)
treefd5110e16cba5d9b7d1d3b59a30b3c8f1fbb8642 /plugins/NewStory/src
parent83bf1b335e6650b1df77dc712e5a39d4141f8db0 (diff)
NewStory: decapitalization
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/history.cpp16
-rw-r--r--plugins/NewStory/src/main.cpp31
-rw-r--r--plugins/NewStory/src/options.cpp14
-rw-r--r--plugins/NewStory/src/templates.cpp4
4 files changed, 32 insertions, 33 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index b7e11fa943..9496d3e5c0 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -414,12 +414,12 @@ public:
btnFilter(this, IDC_FILTER, g_plugin.getIcon(ICO_FILTER), LPGEN("Filter")),
btnSearch(this, IDC_SEARCH, g_plugin.getIcon(ICO_SEARCH), LPGEN("Search...")),
btnOptions(this, IDC_LOGOPTIONS, g_plugin.getIcon(ICO_OPTIONS), LPGEN("Options")),
- btnSendMsg(this, IDC_MESSAGE, g_plugin.getIcon(ICO_SENDMSG), LPGEN("Send Message")),
- btnCalendar(this, IDC_DATEPOPUP, g_plugin.getIcon(ICO_CALENDAR), LPGEN("Jump2Date")),
- btnUserInfo(this, IDC_USERINFO, g_plugin.getIcon(ICO_USERINFO), LPGEN("User Info")),
- btnUserMenu(this, IDC_USERMENU, g_plugin.getIcon(ICO_USERMENU), LPGEN("User Menu")),
- btnFindNext(this, IDC_FINDNEXT, g_plugin.getIcon(ICO_FINDNEXT), LPGEN("Find Next")),
- btnFindPrev(this, IDC_FINDPREV, g_plugin.getIcon(ICO_FINDPREV), LPGEN("Find Previous"))
+ btnSendMsg(this, IDC_MESSAGE, g_plugin.getIcon(ICO_SENDMSG), LPGEN("Send message")),
+ btnCalendar(this, IDC_DATEPOPUP, g_plugin.getIcon(ICO_CALENDAR), LPGEN("Jump to date")),
+ btnUserInfo(this, IDC_USERINFO, g_plugin.getIcon(ICO_USERINFO), LPGEN("User info")),
+ btnUserMenu(this, IDC_USERMENU, g_plugin.getIcon(ICO_USERMENU), LPGEN("User menu")),
+ btnFindNext(this, IDC_FINDNEXT, g_plugin.getIcon(ICO_FINDNEXT), LPGEN("Find next")),
+ btnFindPrev(this, IDC_FINDPREV, g_plugin.getIcon(ICO_FINDPREV), LPGEN("Find previous"))
{
m_timeTree.OnSelChanged = Callback(this, &CHistoryDlg::onSelChanged_TimeTree);
@@ -554,9 +554,9 @@ public:
}
else {
if (m_hContact == INVALID_CONTACT_ID)
- SetWindowText(m_hwnd, TranslateT("Newstory Search Results"));
+ SetWindowText(m_hwnd, TranslateT("History search results"));
else
- SetWindowText(m_hwnd, TranslateT("System Newstory"));
+ SetWindowText(m_hwnd, TranslateT("System history"));
}
if (m_hContact != INVALID_CONTACT_ID)
diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp
index d32f484bac..9f0d2ec58e 100644
--- a/plugins/NewStory/src/main.cpp
+++ b/plugins/NewStory/src/main.cpp
@@ -42,30 +42,30 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_UIHIST
static IconItem icons[] =
{
- { LPGEN("Main Icon"), "main", ICO_NEWSTORY },
- { LPGEN("User Info"), "userinfo", ICO_USERINFO },
- { LPGEN("User Menu"), "usermenu", ICO_USERMENU },
+ { LPGEN("Main icon"), "main", ICO_NEWSTORY },
+ { LPGEN("User info"), "userinfo", ICO_USERINFO },
+ { LPGEN("User menu"), "usermenu", ICO_USERMENU },
{ LPGEN("Search"), "search", ICO_SEARCH },
{ LPGEN("Options"), "options", ICO_OPTIONS },
{ LPGEN("Filter"), "filter", ICO_FILTER },
{ LPGEN("Export"), "export", ICO_EXPORT },
{ LPGEN("Copy"), "copy", ICO_COPY },
- { LPGEN("Send Message"), "message", ICO_SENDMSG },
+ { LPGEN("Send message"), "message", ICO_SENDMSG },
- { LPGEN("Incoming Message"), "msgin", ICO_MSGIN },
- { LPGEN("Outgoing Message"), "msgout", ICO_MSGOUT },
- { LPGEN("User Signed In"), "signin", ICO_SIGNIN },
+ { LPGEN("Incoming message"), "msgin", ICO_MSGIN },
+ { LPGEN("Outgoing message"), "msgout", ICO_MSGOUT },
+ { LPGEN("User signed in"), "signin", ICO_SIGNIN },
{ LPGEN("File"), "file", ICO_FILE },
{ LPGEN("URL"), "url", ICO_URL },
- { LPGEN("Unknown Event"), "unknown", ICO_UNKNOWN },
+ { LPGEN("Unknown event"), "unknown", ICO_UNKNOWN },
- { LPGEN("Find Previous"), "findprev", ICO_FINDPREV },
- { LPGEN("Find Next"), "findnext", ICO_FINDNEXT },
- { LPGEN("Jump to Date"), "calendar", ICO_CALENDAR },
+ { LPGEN("Find previous"), "findprev", ICO_FINDPREV },
+ { LPGEN("Find next"), "findnext", ICO_FINDNEXT },
+ { LPGEN("Jump to date"), "calendar", ICO_CALENDAR },
- { LPGEN("Template Group"), "tplgroup", ICO_TPLGROUP },
+ { LPGEN("Template group"), "tplgroup", ICO_TPLGROUP },
{ LPGEN("Reset"), "reset", ICO_RESET },
- { LPGEN("Update Preview"), "preview", ICO_PREVIEW },
+ { LPGEN("Update preview"), "preview", ICO_PREVIEW },
{ LPGEN("Help"), "varhelp", ICO_VARHELP }
};
@@ -78,16 +78,15 @@ static int evtModulesLoaded(WPARAM, LPARAM)
LoadTemplates();
CMenuItem mi(&g_plugin);
- mi.flags = CMIF_UNICODE;
mi.pszService = MS_HISTORY_SHOWCONTACTHISTORY;
- mi.name.w = L"User Newstory";
+ mi.name.a = LPGEN("User history");
mi.position = 1999990000;
mi.hIcon = g_plugin.getIcon(ICO_NEWSTORY);
Menu_AddContactMenuItem(&mi);
mi.pszService = "Newstory/System";
- mi.name.w = L"System Newstory";
+ mi.name.a = LPGEN("System history");
mi.position = 1999990000;
mi.hIcon = g_plugin.getIcon(ICO_NEWSTORY);
Menu_AddMainMenuItem(&mi);
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp
index 85b5d93d69..566a3c4bec 100644
--- a/plugins/NewStory/src/options.cpp
+++ b/plugins/NewStory/src/options.cpp
@@ -43,9 +43,9 @@ public:
m_tree(this, IDC_TEMPLATES),
preview(this, IDC_PREVIEW),
gpreview(this, IDC_GPREVIEW),
- btnDiscard(this, IDC_DISCARD, g_plugin.getIcon(ICO_RESET), LPGEN("Cancel Edit")),
- bthVarHelp(this, IDC_VARHELP, g_plugin.getIcon(ICO_VARHELP), LPGEN("Help on Variables")),
- btnPreview(this, IDC_UPDATEPREVIEW, g_plugin.getIcon(ICO_PREVIEW), LPGEN("Update Preview"))
+ btnDiscard(this, IDC_DISCARD, g_plugin.getIcon(ICO_RESET), LPGEN("Cancel edit")),
+ bthVarHelp(this, IDC_VARHELP, g_plugin.getIcon(ICO_VARHELP), LPGEN("Help on variables")),
+ btnPreview(this, IDC_UPDATEPREVIEW, g_plugin.getIcon(ICO_PREVIEW), LPGEN("Update preview"))
{
btnDiscard.OnClick = Callback(this, &COptionsDlg::onClick_Discard);
btnPreview.OnClick = Callback(this, &COptionsDlg::UpdatePreview);
@@ -150,11 +150,11 @@ public:
L"%o", TranslateT("month"),
L"%d", TranslateT("day of month"),
L"%y", TranslateT("year"),
- L"%w", TranslateT("day of week (Sunday, Monday.. translateable)"),
+ L"%w", TranslateT("day of week (Sunday, Monday... translatable)"),
L"%p", TranslateT("am/pm symbol"),
- L"%O", TranslateT("name of month, translateable"),
+ L"%O", TranslateT("name of month, translatable"),
L"%M", TranslateT("the message string itself"));
- MessageBox(m_hwnd, wszVarHelp, TranslateT("Variables Help"), MB_OK);
+ MessageBox(m_hwnd, wszVarHelp, TranslateT("Variables help"), MB_OK);
}
void onSelChanged(CCtrlTreeView::TEventInfo*)
@@ -208,7 +208,7 @@ int OptionsInitialize(WPARAM wParam, LPARAM)
OPTIONSDIALOGPAGE odp = {};
odp.position = 100000000;
odp.szGroup.a = LPGEN("History");
- odp.szTitle.a = LPGEN("Newstory");
+ odp.szTitle.a = LPGEN("NewStory");
odp.flags = ODPF_BOLDGROUPS;
odp.szTab.a = LPGEN("Templates");
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index e7cdfb8718..ac8ca68f26 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -220,7 +220,7 @@ void vfEvent(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item)
_tcsftime(buf, _countof(buf), L"%Y", _localtime32((__time32_t *)&item->dbe.timestamp));
vars->SetVar('y', buf, true);
- // %w: day of week (Sunday, Monday.. translateable)
+ // %w: day of week (Sunday, Monday... translatable)
_tcsftime(buf, _countof(buf), L"%A", _localtime32((__time32_t *)&item->dbe.timestamp));
vars->SetVar('w', TranslateW(buf), false);
@@ -228,7 +228,7 @@ void vfEvent(int, TemplateVars *vars, MCONTACT, HistoryArray::ItemData *item)
_tcsftime(buf, _countof(buf), L"%p", _localtime32((__time32_t *)&item->dbe.timestamp));
vars->SetVar('p', buf, true);
- // %O: Name of month, translateable
+ // %O: Name of month, translatable
_tcsftime(buf, _countof(buf), L"%B", _localtime32((__time32_t *)&item->dbe.timestamp));
vars->SetVar('O', TranslateW(buf), false);
}