Reactos

[DEVCPUX] Add russian translation

Also make MHz string translatable. Addendum to 793e2a3.

authored by

Stanislav Motylkov and committed by
Hermès BÉLUSCA - MAÏTO
0fa74424 3c1e5f7c

+39 -2
+5
dll/shellext/devcpux/lang/en-US.rc
··· 15 15 LTEXT "test", IDC_CORESPEED, 57, 68, 181, 8 16 16 END 17 17 18 + STRINGTABLE 19 + BEGIN 20 + IDS_MEGAHERTZ "%ld MHz" 21 + END 22 + 18 23 /* 19 24 DLG_PROCESSORINFO DIALOGEX 0, 0, 252, 218 20 25 STYLE DS_SHELLFONT | WS_POPUP | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
+21
dll/shellext/devcpux/lang/ru-RU.rc
··· 1 + LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT 2 + 3 + DLG_PROCESSORINFO DIALOGEX 0, 0, 252, 218 4 + STYLE DS_SHELLFONT | WS_POPUP | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME 5 + CAPTION "Процессор" 6 + FONT 8, "MS Shell Dlg" 7 + BEGIN 8 + LTEXT "Возможности:", -1, 7, 23, 50, 8 9 + LTEXT "test", IDC_FEATURES, 57, 23, 181, 8 10 + LTEXT "Модель:", -1, 7, 38, 50, 8 11 + LTEXT "test", IDC_MODEL, 57, 38, 181, 8 12 + LTEXT "Степпинг:", -1, 7, 53, 50, 51 13 + LTEXT "test", IDC_STEPPING, 57, 53, 181, 8 14 + LTEXT "Частота ядра:", -1, 7, 68, 50, 8 15 + LTEXT "test", IDC_CORESPEED, 57, 68, 181, 8 16 + END 17 + 18 + STRINGTABLE 19 + BEGIN 20 + IDS_MEGAHERTZ "%ld МГц" 21 + END
+7 -1
dll/shellext/devcpux/processor.c
··· 92 92 WCHAR szFeatures[MAX_PATH] = L""; 93 93 WCHAR szModel[3]; 94 94 WCHAR szStepping[3]; 95 + WCHAR szMhz[16]; 95 96 WCHAR szCurrentMhz[10]; 96 97 BOOL bFirst = TRUE; 97 98 SYSTEM_INFO SystemInfo; 98 99 PROCESSOR_POWER_INFORMATION PowerInfo; 100 + 101 + if (!LoadStringW(g_hInstance, IDS_MEGAHERTZ, szMhz, ARRAYSIZE(szMhz))) 102 + { 103 + StringCbCopyW(szMhz, sizeof(szMhz), L"%ld MHz"); 104 + } 99 105 100 106 if (IsProcessorFeaturePresent(PF_MMX_INSTRUCTIONS_AVAILABLE)) 101 107 AddFeature(szFeatures, sizeof(szFeatures), L"MMX", &bFirst); ··· 119 125 SetDlgItemTextW(hDlg, IDC_STEPPING, szStepping); 120 126 121 127 CallNtPowerInformation(11, NULL, 0, &PowerInfo, sizeof(PowerInfo)); 122 - StringCbPrintfW(szCurrentMhz, sizeof(szCurrentMhz), L"%ld %s", PowerInfo.CurrentMhz, L"MHz"); 128 + StringCbPrintfW(szCurrentMhz, sizeof(szCurrentMhz), szMhz, PowerInfo.CurrentMhz); 123 129 SetDlgItemTextW(hDlg, IDC_CORESPEED, szCurrentMhz); 124 130 125 131 return TRUE;
+4 -1
dll/shellext/devcpux/processor.rc
··· 14 14 15 15 #ifdef LANGUAGE_EN_US 16 16 #include "lang/en-US.rc" 17 - #endif 17 + #endif 18 + #ifdef LANGUAGE_RU_RU 19 + #include "lang/ru-RU.rc" 20 + #endif
+2
dll/shellext/devcpux/resource.h
··· 6 6 #define IDC_MODEL 302 7 7 #define IDC_STEPPING 303 8 8 #define IDC_CORESPEED 304 9 + 10 + #define IDS_MEGAHERTZ 400