From 934e05b8ef177d9a329133f4537e0c68acf39e18 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Thu, 31 Jan 2013 11:18:41 +0000 Subject: - translation fixes (patch from Basil) git-svn-id: http://svn.miranda-ng.org/main/trunk@3378 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ListeningTo/src/listeningto.cpp | 20 ++++++++++---------- plugins/ListeningTo/src/options.cpp | 12 ++++++------ 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'plugins/ListeningTo') diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 65433dd079..35df2f7cb4 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -384,52 +384,52 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) tr.tszTokenString = _T("listening_info"); tr.parseFunctionT = VariablesParseInfo; - tr.szHelpText = "Listening info\tListening info as set in the options"; + tr.szHelpText = LPGEN("Listening info\tListening info as set in the options"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_type"); tr.parseFunctionT = VariablesParseType; - tr.szHelpText = "Listening info\tMedia type: Music, Video, etc"; + tr.szHelpText = LPGEN("Listening info\tMedia type: Music, Video, etc"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_artist"); tr.parseFunctionT = VariablesParseArtist; - tr.szHelpText = "Listening info\tArtist name"; + tr.szHelpText = LPGEN("Listening info\tArtist name"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_album"); tr.parseFunctionT = VariablesParseAlbum; - tr.szHelpText = "Listening info\tAlbum name"; + tr.szHelpText = LPGEN("Listening info\tAlbum name"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_title"); tr.parseFunctionT = VariablesParseTitle; - tr.szHelpText = "Listening info\tSong name"; + tr.szHelpText = LPGEN("Listening info\tSong name"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_track"); tr.parseFunctionT = VariablesParseTrack; - tr.szHelpText = "Listening info\tTrack number"; + tr.szHelpText = LPGEN("Listening info\tTrack number"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_year"); tr.parseFunctionT = VariablesParseYear; - tr.szHelpText = "Listening info\tSong year"; + tr.szHelpText = LPGEN("Listening info\tSong year"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_genre"); tr.parseFunctionT = VariablesParseGenre; - tr.szHelpText = "Listening info\tSong genre"; + tr.szHelpText = LPGEN("Listening info\tSong genre"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_length"); tr.parseFunctionT = VariablesParseLength; - tr.szHelpText = "Listening info\tSong length"; + tr.szHelpText = LPGEN("Listening info\tSong length"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); tr.tszTokenString = _T("listening_player"); tr.parseFunctionT = VariablesParsePlayer; - tr.szHelpText = "Listening info\tPlayer name"; + tr.szHelpText = LPGEN("Listening info\tPlayer name"); CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr); } diff --git a/plugins/ListeningTo/src/options.cpp b/plugins/ListeningTo/src/options.cpp index 411305a279..149acefc20 100644 --- a/plugins/ListeningTo/src/options.cpp +++ b/plugins/ListeningTo/src/options.cpp @@ -53,10 +53,10 @@ static OptPageControl optionsControls[] = { static OptPageControl formatControls[] = { { &opts.templ, CONTROL_TEXT, IDC_TEMPLATE, "Template", (DWORD) _T("%artist% - %title%") }, - { &opts.unknown, CONTROL_TEXT, IDC_UNKNOWN, "Unknown", (DWORD) _T(""), 0, 0, 128 }, - { &opts.xstatus_name, CONTROL_TEXT, IDC_XSTATUS_NAME, "XStatusName", (DWORD) _T("Listening to") }, + { &opts.unknown, CONTROL_TEXT, IDC_UNKNOWN, "Unknown", (DWORD) LPGENT(""), 0, 0, 128 }, + { &opts.xstatus_name, CONTROL_TEXT, IDC_XSTATUS_NAME, "XStatusName", (DWORD) LPGENT("Listening to") }, { &opts.xstatus_message, CONTROL_TEXT, IDC_XSTATUS_MESSAGE, "XStatusMessage", (DWORD) _T("%listening%") }, - { &opts.nothing, CONTROL_TEXT, IDC_NOTHING, "Nothing", (DWORD) _T(""), 0, 0, 128 } + { &opts.nothing, CONTROL_TEXT, IDC_NOTHING, "Nothing", (DWORD) LPGENT(""), 0, 0, 128 } }; static OptPageControl playersControls[] = { @@ -138,11 +138,11 @@ BOOL IsTypeEnabled(LISTENINGTOINFO *lti) if (lti->dwFlags & LTI_UNICODE) { - if (lstrcmpi(lti->ptszType, _T("Music")) == 0) + if (lstrcmpi(lti->ptszType, LPGENT("Music")) == 0) return opts.enable_music; - if (lstrcmpi(lti->ptszType, _T("Radio")) == 0) + if (lstrcmpi(lti->ptszType, LPGENT("Radio")) == 0) return opts.enable_radio; - if (lstrcmpi(lti->ptszType, _T("Video")) == 0) + if (lstrcmpi(lti->ptszType, LPGENT("Video")) == 0) return opts.enable_video; return opts.enable_others; } -- cgit v1.2.3