diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 16:10:40 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 16:10:40 +0300 |
commit | 6ccfdcb25f2bb3c7a4e39a055bb392c0d4bfa905 (patch) | |
tree | b53333d819f9afe5fd44dd874cfc0f51189122f8 /plugins/MimCmd/src | |
parent | 295ca5e99da922699f1bae398f0411f0c99df5f6 (diff) |
m_langpack.h unbound from hLangpack
Diffstat (limited to 'plugins/MimCmd/src')
-rw-r--r-- | plugins/MimCmd/src/MimCmd.cpp | 12 | ||||
-rw-r--r-- | plugins/MimCmd/src/commands.cpp | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/MimCmd/src/MimCmd.cpp b/plugins/MimCmd/src/MimCmd.cpp index 39a3dcbe39..b5d6bf3f72 100644 --- a/plugins/MimCmd/src/MimCmd.cpp +++ b/plugins/MimCmd/src/MimCmd.cpp @@ -43,17 +43,17 @@ void PrintUsage() wchar_t name[128];
GetProgramName(name, _countof(name));
- wprintf(TranslateT("%s usage:\n"), name);
- wprintf(TranslateT("%s <command> [<param> [<param> [...]]].\n"), name);
- wprintf(TranslateT("This will tell Miranda to run the specified command. The commands can have zero, one or more parameters. Use '%s help' to get a list of possible commands.\n"), name);
- wprintf(TranslateT("No command can have more than %d parameters.\n"), MAX_ARGUMENTS - 1);
+ wprintf(TranslateW_LP(L"%s usage:\n"), name);
+ wprintf(TranslateW_LP(L"%s <command> [<param> [<param> [...]]].\n"), name);
+ wprintf(TranslateW_LP(L"This will tell Miranda to run the specified command. The commands can have zero, one or more parameters. Use '%s help' to get a list of possible commands.\n"), name);
+ wprintf(TranslateW_LP(L"No command can have more than %d parameters.\n"), MAX_ARGUMENTS - 1);
}
void ShowVersion()
{
wchar_t name[128];
GetProgramName(name, _countof(name));
- wprintf(TranslateT("%s version %s"), name, __VERSION_STRING_DOTS);
+ wprintf(TranslateW_LP(L"%s version %s"), name, __VERSION_STRING_DOTS);
}
int wmain(int argc, wchar_t *argv[])
@@ -104,7 +104,7 @@ int wmain(int argc, wchar_t *argv[]) wprintf(L"%s\n", reply->message);
}
else {
- wprintf(TranslateT("Unknown command '%s'.\n"), argv[1]);
+ wprintf(TranslateW_LP(L"Unknown command '%s'.\n"), argv[1]);
error = 0;
}
diff --git a/plugins/MimCmd/src/commands.cpp b/plugins/MimCmd/src/commands.cpp index 37a6be7795..10a437e383 100644 --- a/plugins/MimCmd/src/commands.cpp +++ b/plugins/MimCmd/src/commands.cpp @@ -114,16 +114,16 @@ void HandleHelpCommand(PCommand, wchar_t *argv[], int argc, PReply reply) if (command) {
reply->code = MIMRES_SUCCESS;
- szReply.Append(TranslateW(command->help));
+ szReply.Append(TranslateW_LP(command->help));
}
else {
reply->code = MIMRES_NOTFOUND;
- szReply.AppendFormat(TranslateT("No help for '%s'."), argv[2]);
+ szReply.AppendFormat(TranslateW_LP(L"No help for '%s'."), argv[2]);
}
}
else {
reply->code = MIMRES_SUCCESS;
- szReply.Append(TranslateT("Available commands: "));
+ szReply.Append(TranslateW_LP(L"Available commands: "));
for (int i = 0; i < cKnownCommands - 1; i++) {
szReply.Append(knownCommands[i].command);
@@ -179,7 +179,7 @@ void ProcessConsoleCommand(PCommand command, wchar_t *arguments[], int count, PR case WAIT_OBJECT_0 + 1: //close event
default:
- mir_wstrcpy(sdCmdLine->reply.message, TranslateT("Miranda has been closed or an error has occurred while waiting for the result, could not process request."));
+ mir_wstrcpy(sdCmdLine->reply.message, TranslateW_LP(L"Miranda has been closed or an error has occurred while waiting for the result, could not process request."));
done = TRUE;
break;
|