Author: dchapyshev
Date: Wed Mar 11 20:40:01 2009
New Revision: 39953
URL:
http://svn.reactos.org/svn/reactos?rev=39953&view=rev
Log:
- Add Ukrainian translation by Sakara Yevhen
- Other small changes
Added:
trunk/reactos/base/applications/mplay32/lang/uk-UA.rc (with props)
Modified:
trunk/reactos/base/applications/mplay32/mplay32.c
trunk/reactos/base/applications/mplay32/rsrc.rc
Added: trunk/reactos/base/applications/mplay32/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mplay32/…
==============================================================================
--- trunk/reactos/base/applications/mplay32/lang/uk-UA.rc (added)
+++ trunk/reactos/base/applications/mplay32/lang/uk-UA.rc [iso-8859-1] Wed Mar 11 20:40:01
2009
@@ -1,0 +1,29 @@
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+
+IDR_MAINMENU MENU
+BEGIN
+ POPUP "&Ôàéë"
+ BEGIN
+ MENUITEM "&³äêðèòè...", IDM_OPEN_FILE
+ MENUITEM "&Çàêðèòè", IDM_CLOSE_FILE
+ MENUITEM SEPARATOR
+ MENUITEM "&Âèõ³ä", IDM_EXIT
+ END
+ POPUP "&Äîâ³äêà"
+ BEGIN
+ MENUITEM "&Ïðî ïðîãðàìó...", IDM_ABOUT
+ END
+END
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ IDS_ALL_TYPES_FILTER "Âñ³ ï³äòðèìóâàí³ (*.wav, *.cda, *.midi, *.mid,
*.avi)\0*.wav;*.cda;*.midi;*.mid;*.avi\0"
+ IDS_TOOLTIP_PLAY "³äòâîðåííÿ"
+ IDS_TOOLTIP_STOP "Çóïèíèòè"
+ IDS_TOOLTIP_EJECT "Âèòÿãòè"
+ IDS_TOOLTIP_BACKWARD "Íàçàä"
+ IDS_TOOLTIP_SEEKBACK "Ïåðåìîòóâàííÿ íàçàä"
+ IDS_TOOLTIP_SEEKFORW "Ïåðåìîòóâàííÿ âïåðåä"
+ IDS_TOOLTIP_FORWARD "Âïåðåä"
+ IDS_APPTITLE "Ïðîãðàâà÷ ReactOS"
+END
Propchange: trunk/reactos/base/applications/mplay32/lang/uk-UA.rc
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/base/applications/mplay32/mplay32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mplay32/…
==============================================================================
--- trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] Wed Mar 11 20:40:01
2009
@@ -106,7 +106,7 @@
0,
0,
340,
- 30,
+ 20,
hwnd,
NULL,
hInstance,
@@ -142,7 +142,7 @@
}
static UINT
-IsSupportedFileExtension(LPWSTR lpFileName)
+IsSupportedFileExtension(LPTSTR lpFileName)
{
TCHAR szExt[MAX_PATH];
INT DotPos = 0, i, j;
@@ -197,10 +197,11 @@
}
static DWORD
-OpenMciDevice(LPTSTR lpType, LPTSTR lpFileName)
+OpenMciDevice(HWND hwnd, LPTSTR lpType, LPTSTR lpFileName)
{
MCI_STATUS_PARMS mciStatus;
MCI_OPEN_PARMS mciOpen;
+ TCHAR szNewTitle[MAX_PATH];
DWORD dwError;
if (bIsOpened)
@@ -252,10 +253,13 @@
SendMessage(hTrackBar, TBM_SETTICFREQ, (WPARAM) 100000, (LPARAM) 0);
}
+ _stprintf(szNewTitle, _T("%s - %s"), szAppTitle, lpFileName);
+ SetWindowText(hwnd, szNewTitle);
+
MaxFilePos = mciStatus.dwReturn;
wDeviceId = mciOpen.wDeviceID;
bIsOpened = TRUE;
- lstrcpy(szPrevFile, lpFileName);
+ _tcscpy(szPrevFile, lpFileName);
return TRUE;
}
@@ -398,7 +402,7 @@
}
static VOID
-PlayFile(HWND hwnd, LPWSTR lpFileName)
+PlayFile(HWND hwnd, LPTSTR lpFileName)
{
MCI_PLAY_PARMS mciPlay;
TCHAR szLocalFileName[MAX_PATH];
@@ -410,11 +414,11 @@
if (szPrevFile[0] == _T('\0'))
return;
- lstrcpy(szLocalFileName, szPrevFile);
+ _tcscpy(szLocalFileName, szPrevFile);
}
else
{
- lstrcpy(szLocalFileName, lpFileName);
+ _tcscpy(szLocalFileName, lpFileName);
}
if (GetFileAttributes(szLocalFileName) == INVALID_FILE_ATTRIBUTES)
@@ -430,16 +434,16 @@
MessageBox(hwnd, _T("Unsupported format!"), NULL, MB_OK);
return;
case WAVE_FILE:
- OpenMciDevice(_T("waveaudio"), szLocalFileName);
+ OpenMciDevice(hwnd, _T("waveaudio"), szLocalFileName);
break;
case MIDI_FILE:
- OpenMciDevice(_T("sequencer"), szLocalFileName);
+ OpenMciDevice(hwnd, _T("sequencer"), szLocalFileName);
break;
case AUDIOCD_FILE:
- OpenMciDevice(_T("cdaudio"), szLocalFileName);
+ OpenMciDevice(hwnd, _T("cdaudio"), szLocalFileName);
break;
case AVI_FILE:
- OpenMciDevice(_T("avivideo"), szLocalFileName);
+ OpenMciDevice(hwnd, _T("avivideo"), szLocalFileName);
break;
}
@@ -471,7 +475,7 @@
if (!GetCurrentDirectory(sizeof(szCurrentDir) / sizeof(TCHAR), szCurrentDir))
{
- lstrcpy(szCurrentDir, _T("c:\\"));
+ _tcscpy(szCurrentDir, _T("c:\\"));
}
OpenFileName.lStructSize = sizeof(OpenFileName);
@@ -633,7 +637,7 @@
case IDM_CLOSE_FILE:
StopPlayback(hwnd);
- lstrcpy(szPrevFile, _T("\0"));
+ _tcscpy(szPrevFile, _T("\0"));
break;
case IDM_ABOUT:
Modified: trunk/reactos/base/applications/mplay32/rsrc.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mplay32/…
==============================================================================
--- trunk/reactos/base/applications/mplay32/rsrc.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mplay32/rsrc.rc [iso-8859-1] Wed Mar 11 20:40:01 2009
@@ -6,3 +6,4 @@
#include "lang/es-ES.rc"
#include "lang/pl-PL.rc"
#include "lang/ru-RU.rc"
+#include "lang/uk-UA.rc"