summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-07 13:27:08 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-07 13:27:08 +0000
commite500caf464f3f4bed01a7d72fc3421f6ea575c04 (patch)
treee9900030ecb8da19c3031d4880d63ba9829ca466
parent7cb44a3c4447a149004189b046a67def1b65a356 (diff)
TipperYM: Translation fixes (" ago" to "%s ago")
git-svn-id: http://svn.miranda-ng.org/main/trunk@5257 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TipperYM/src/popwin.cpp20
-rw-r--r--plugins/TipperYM/src/preset_items.cpp2
2 files changed, 13 insertions, 9 deletions
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp
index 03682178bb..3b872e1a8b 100644
--- a/plugins/TipperYM/src/popwin.cpp
+++ b/plugins/TipperYM/src/popwin.cpp
@@ -105,15 +105,17 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
// logon info
TCHAR swzLogon[64];
if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogonTS", swzLogon, 59)) {
- _tcscat(swzLogon, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log on:"), swzLogon, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), swzLogon);
+ AddRow(pwd, TranslateT("Log on:"), ago, NULL, false, false, false);
}
// logoff info
TCHAR swzLogoff[64];
if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", swzLogoff, 59)) {
- _tcscat(swzLogoff, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log off:"), swzLogoff, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), swzLogoff);
+ AddRow(pwd, TranslateT("Log off:"), ago, NULL, false, false, false);
}
// number of unread emails
@@ -1571,13 +1573,15 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
if (dwItems & TRAYTIP_LOGON) {
if (TimestampToTimeDifference(NULL, pa->szModuleName, "LogonTS", buff, 59)) {
- _tcscat(buff, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log on:"), buff, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), buff);
+ AddRow(pwd, TranslateT("Log on:"), ago, NULL, false, false, false);
}
if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", buff, 59)) {
- _tcscat(buff, TranslateT(" ago"));
- AddRow(pwd, TranslateT("Log off:"), buff, NULL, false, false, false);
+ TCHAR ago[96];
+ mir_sntprintf(ago, SIZEOF(ago), TranslateT("%s ago"), buff);
+ AddRow(pwd, TranslateT("Log off:"), ago, NULL, false, false, false);
}
}
diff --git a/plugins/TipperYM/src/preset_items.cpp b/plugins/TipperYM/src/preset_items.cpp
index c9308cb141..04eb82ad99 100644
--- a/plugins/TipperYM/src/preset_items.cpp
+++ b/plugins/TipperYM/src/preset_items.cpp
@@ -27,7 +27,7 @@ PRESETITEM presetItems[] =
"email", LPGENT("Email"), LPGENT("Email:"), _T("%raw:/e-mail%"), 0, 0, 0,
"gender", LPGENT("Gender"), LPGENT("Gender:"), _T("%gender%"), 0, 0, 0,
"homepage", LPGENT("Homepage"), LPGENT("Homepage:"), _T("%raw:/Homepage%"), 0, 0, 0,
- "id", LPGENT("Identifier"), LPGENT("%sys:uidname|UID^!MetaContacts%:"), _T("%sys:uid%"), 0, 0, 0,
+ "id", LPGENT("Identifier"), _T("%sys:uidname|UID^!MetaContacts%:"), _T("%sys:uid%"), 0, 0, 0,
"idle", LPGENT("Idle"), LPGENT("Idle:"), _T("%idle% (%idle_diff% ago)"), "idle", "idlediff", 0,
"ip", LPGENT("IP"), LPGENT("IP:"), _T("%ip%"), "ip", 0, 0,
"ipint", LPGENT("IP internal"), LPGENT("IP internal:"), _T("%ip_internal%"), "ipint", 0, 0,