diff options
| author | George Hazan <george.hazan@gmail.com> | 2023-08-01 17:00:31 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2023-08-01 17:00:36 +0300 |
| commit | f3350f5b892a4809faf0703e81cc865190572648 (patch) | |
| tree | 2c66a540befa58e1496c178b1338a5c20f18cd65 /plugins | |
| parent | fe58b618297fcd01fdfcd42fa93ba10ead8c336c (diff) | |
NewStory: translateable default value
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/NewStory/src/options.cpp | 6 | ||||
| -rw-r--r-- | plugins/NewStory/src/templates.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp index 0e32405a02..b57cb06d6d 100644 --- a/plugins/NewStory/src/options.cpp +++ b/plugins/NewStory/src/options.cpp @@ -164,7 +164,7 @@ public: if (m_curr) { replaceStrW(m_curr->tmpValue, nullptr); replaceStrW(m_curr->value, nullptr); - m_edit.SetText(m_curr->defvalue); + m_edit.SetText(TranslateW(m_curr->defvalue)); } UpdatePreview(0); @@ -178,7 +178,7 @@ public: if (m_curr->value) m_edit.SetText(m_curr->value); else - m_edit.SetText(m_curr->defvalue); + m_edit.SetText(TranslateW(m_curr->defvalue)); UpdatePreview(0); } @@ -250,7 +250,7 @@ public: else if (m_curr->value) m_edit.SetText(m_curr->value); else - m_edit.SetText(m_curr->defvalue); + m_edit.SetText(TranslateW(m_curr->defvalue)); UpdatePreview(0); } diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 039d5306cd..9f01361462 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -298,7 +298,7 @@ HICON TemplateInfo::getIcon() const TemplateInfo templates[TPL_COUNT] = { { "tpl/interface/title", LPGENW("Interface"), ICO_NEWSTORY, LPGENW("Window title"), - L"%N - history [%c messages total]", 0, 0, + LPGENW("%N - history [%c messages total]"), 0, 0, { vfGlobal, vfContact, 0, 0, 0 } }, { "tpl/msglog/msg", LPGENW("Message log"), ICO_SENDMSG, LPGENW("Messages"), |
