From fe7fff143c53ee7105fb09cc012762bb8ec66a65 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Tue, 5 Feb 2008 14:50:02 +0000 Subject: [PATCH] - Add Russian translation - Move application title to resources svn path=/trunk/; revision=32137 --- rosapps/devutils/vgafontedit/lang/de-DE.rc | 1 + rosapps/devutils/vgafontedit/lang/en-US.rc | 1 + rosapps/devutils/vgafontedit/lang/ru-RU.rc | 83 ++++++++++++++++++++++ rosapps/devutils/vgafontedit/main.c | 2 - rosapps/devutils/vgafontedit/main.rc | 1 + rosapps/devutils/vgafontedit/mainwnd.c | 2 + rosapps/devutils/vgafontedit/precomp.h | 4 +- rosapps/devutils/vgafontedit/resource.h | 1 + 8 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 rosapps/devutils/vgafontedit/lang/ru-RU.rc diff --git a/rosapps/devutils/vgafontedit/lang/de-DE.rc b/rosapps/devutils/vgafontedit/lang/de-DE.rc index a88476236ab..f004133bdb0 100644 --- a/rosapps/devutils/vgafontedit/lang/de-DE.rc +++ b/rosapps/devutils/vgafontedit/lang/de-DE.rc @@ -74,6 +74,7 @@ BEGIN IDS_UNSUPPORTEDPSF, "Nicht unterstьtztes PSF Font Format! Der Editor unterstьtzt nur Fonts im Format 8x8 ohne spezielle Modi." IDS_DOCNAME, "Font %1!u!" IDS_SAVEPROMPT, "Die Datei ""%1"" wurde geдndert.\n\nMцchten Sie die Дnderungen speichern?" + IDS_APPTITLE, "ReactOS VGA Font Editor" IDS_TOOLTIP_NEW, "Neu" IDS_TOOLTIP_OPEN, "Цffnen" diff --git a/rosapps/devutils/vgafontedit/lang/en-US.rc b/rosapps/devutils/vgafontedit/lang/en-US.rc index 83f7a3cf8ee..831460d273d 100644 --- a/rosapps/devutils/vgafontedit/lang/en-US.rc +++ b/rosapps/devutils/vgafontedit/lang/en-US.rc @@ -74,6 +74,7 @@ BEGIN IDS_UNSUPPORTEDPSF, "Unsupported PSF font format! The editor only supports 8x8 fonts with no special modes." IDS_DOCNAME, "Font %1!u!" IDS_SAVEPROMPT, "The file ""%1"" was modified, but not saved.\n\nDo you want to save it?" + IDS_APPTITLE, "ReactOS VGA Font Editor" IDS_TOOLTIP_NEW, "New" IDS_TOOLTIP_OPEN, "Open" diff --git a/rosapps/devutils/vgafontedit/lang/ru-RU.rc b/rosapps/devutils/vgafontedit/lang/ru-RU.rc new file mode 100644 index 00000000000..48fe9c32b21 --- /dev/null +++ b/rosapps/devutils/vgafontedit/lang/ru-RU.rc @@ -0,0 +1,83 @@ +/* + * PROJECT: ReactOS VGA Font Editor + * LICENSE: GNU General Public License Version 2.0 or any later version + * FILE: devutils/vgafontedit/lang/ru-RU.rc + * PURPOSE: Russian resource file + * COPYRIGHT: Copyright 2008 Colin Finck + * TRANSLATOR: Dmitry Chapyshev + */ + +LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT + +IDD_ABOUT DIALOGEX 10, 10, 130, 62 +STYLE DS_SHELLFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +CAPTION "О программе" +FONT 8, "MS Shell Dlg" +BEGIN + ICON IDI_MAIN, IDC_STATIC, 10, 10, 20, 20 + LTEXT "Редактор VGA-шрифтов ReactOS", IDC_STATIC, 37, 10, 93, 10 + LTEXT "Авторские права 2008 Колин Финк", IDC_STATIC, 37, 20, 93, 17 + DEFPUSHBUTTON "OK", IDCANCEL, 40, 44, 55, 15 +END + +IDD_EDITGLYPH DIALOGEX 10, 10, 246, 197 +STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Редактирование символа" +FONT 8, "MS Shell Dlg" +BEGIN + CONTROL "", IDC_EDIT_GLYPH_TOOLBOX, TOOLBARCLASSNAMEA, CCS_NODIVIDER | CCS_NORESIZE, 5, 5, 24, 82 + CONTROL "", IDC_EDIT_GLYPH_EDIT, EDIT_GLYPH_EDIT_CLASSW, 0, 39, 5, 160, 160 + CONTROL "", IDC_EDIT_GLYPH_PREVIEW, EDIT_GLYPH_PREVIEW_CLASSW, 0, 209, 5, 32, 32 + + DEFPUSHBUTTON "OK", IDOK, 48, 177, 70, 14 + PUSHBUTTON "Отмена", IDCANCEL, 125, 177, 70, 14 +END + +IDM_MAINMENU MENU +BEGIN + POPUP "&Файл" + BEGIN + MENUITEM "&Новый\tCtrl+N", ID_FILE_NEW + MENUITEM "&Открыть...\tCtrl+O", ID_FILE_OPEN + MENUITEM "Закрыть", ID_FILE_CLOSE + MENUITEM SEPARATOR + MENUITEM "Сохранить\tCtrl+S", ID_FILE_SAVE + MENUITEM "Сохранить как...", ID_FILE_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "Выход\tAlt+F4", ID_FILE_EXIT + END + + POPUP "&Окна" + BEGIN + MENUITEM "&Каскадом", ID_WINDOW_CASCADE + MENUITEM "&По горизонтали", ID_WINDOW_TILE_HORZ + MENUITEM "П&о вертикали", ID_WINDOW_TILE_VERT + MENUITEM "&Упорядочить значки", ID_WINDOW_ARRANGE + MENUITEM SEPARATOR + MENUITEM "&Следующее\tCtrl+F6", ID_WINDOW_NEXT + END + + POPUP "&Справка" + BEGIN + MENUITEM "&О программе...", ID_HELP_ABOUT + END +END + +STRINGTABLE +BEGIN + IDS_OPENFILTER, "Все поддерживаемые форматы (*.bin,*.psf)|*.bin;*.psf|Двоичные файлы шрифтов (*.bin)|*.bin|Экранные шрифты PC версии 1 (*.psf)|*.psf|" + IDS_SAVEFILTER, "Двоичные файлы шрифтов (*.bin)|*.bin|" + IDS_OPENERROR, "Ошибка открытия файла! (Ошибка номер %1!u!)" + IDS_READERROR, "Ошибка чтения файла! (Ошибка номер %1!u!)" + IDS_WRITEERROR, "Ошибка записи файла! (Ошибка номер %1!u!)" + IDS_UNSUPPORTEDFORMAT, "Неподдерживаемый формат файла!" + IDS_UNSUPPORTEDPSF, "Неподдерживаемый PSF-формат шрифта! Редактор поддерживает только шрифты размером 8x8 без специальных режимов." + IDS_DOCNAME, "Шрифт %1!u!" + IDS_SAVEPROMPT, "Файл ""%1"" был изменен и изменения не были сохранены.\n\nСохранить?" + IDS_APPTITLE, "Редактор VGA-шрифтов ReactOS" + + IDS_TOOLTIP_NEW, "Новый" + IDS_TOOLTIP_OPEN, "Открыть" + IDS_TOOLTIP_SAVE, "Сохранить" + IDS_TOOLTIP_EDIT_GLYPH, "Редактировать символ" +END diff --git a/rosapps/devutils/vgafontedit/main.c b/rosapps/devutils/vgafontedit/main.c index c9438114815..50721e7bc7a 100644 --- a/rosapps/devutils/vgafontedit/main.c +++ b/rosapps/devutils/vgafontedit/main.c @@ -8,8 +8,6 @@ #include "precomp.h" -const WCHAR szAppName[] = L"ReactOS VGA Font Editor"; - HINSTANCE hInstance; HANDLE hProcessHeap; diff --git a/rosapps/devutils/vgafontedit/main.rc b/rosapps/devutils/vgafontedit/main.rc index 0c519350350..0f69c68ec69 100644 --- a/rosapps/devutils/vgafontedit/main.rc +++ b/rosapps/devutils/vgafontedit/main.rc @@ -31,3 +31,4 @@ IDI_DOC ICON "res/doc.ico" // Languages #include "lang/en-US.rc" #include "lang/de-DE.rc" +#include "lang/ru-RU.rc" diff --git a/rosapps/devutils/vgafontedit/mainwnd.c b/rosapps/devutils/vgafontedit/mainwnd.c index 2c50fb526eb..973d9c50ed0 100644 --- a/rosapps/devutils/vgafontedit/mainwnd.c +++ b/rosapps/devutils/vgafontedit/mainwnd.c @@ -433,6 +433,8 @@ CreateMainWindow(IN INT nCmdShow, OUT PMAIN_WND_INFO* Info) { (*Info)->nCmdShow = nCmdShow; + LoadString(hInstance, IDS_APPTITLE, szAppName, MAX_STRING); + hMainWnd = CreateWindowExW(0, szMainWndClass, szAppName, diff --git a/rosapps/devutils/vgafontedit/precomp.h b/rosapps/devutils/vgafontedit/precomp.h index f2e8ec66e66..234dd8f9915 100644 --- a/rosapps/devutils/vgafontedit/precomp.h +++ b/rosapps/devutils/vgafontedit/precomp.h @@ -15,6 +15,8 @@ #include "resource.h" #include "customwndclasses.h" +#define MAX_STRING 128 + // Forward declarations typedef struct _FONT_WND_INFO FONT_WND_INFO, *PFONT_WND_INFO; @@ -137,7 +139,7 @@ BOOL InitFontWndClass(VOID); VOID UnInitFontWndClass(VOID); // main.c -extern const WCHAR szAppName[]; +WCHAR szAppName[MAX_STRING]; extern HINSTANCE hInstance; extern HANDLE hProcessHeap; diff --git a/rosapps/devutils/vgafontedit/resource.h b/rosapps/devutils/vgafontedit/resource.h index 07d161454d6..dd9518f8720 100644 --- a/rosapps/devutils/vgafontedit/resource.h +++ b/rosapps/devutils/vgafontedit/resource.h @@ -64,6 +64,7 @@ #define IDS_UNSUPPORTEDPSF 10007 #define IDS_DOCNAME 10008 #define IDS_SAVEPROMPT 10009 +#define IDS_APPTITLE 10010 #define IDS_TOOLTIP_NEW 11001 #define IDS_TOOLTIP_OPEN 11002