tangled
alpha
login
or
join now
huwcampbell.com
/
reactos
0
fork
atom
Reactos
0
fork
atom
overview
issues
pulls
pipelines
[INTL] Rename some variables and functions. #179
Amine Khaldi
8 years ago
fc93f238
eff73544
+13
-13
3 changed files
expand all
collapse all
unified
split
dll
cpl
intl
generalp.c
intl.c
time.c
+6
-6
dll/cpl/intl/generalp.c
···
38
38
39
39
HWND hList;
40
40
HWND hLocaleList, hGeoList;
41
41
-
BOOL bSpain = FALSE;
41
41
+
BOOL isSpain = FALSE;
42
42
43
43
GROUPINGDATA
44
44
GroupingFormats[MAX_GROUPINGFORMATS] =
···
49
49
};
50
50
51
51
static BOOL CALLBACK
52
52
-
LocalesEnumProc(LPTSTR lpLocale)
52
52
+
GeneralPropertyPageLocalesEnumProc(LPTSTR lpLocale)
53
53
{
54
54
LCID lcid;
55
55
WCHAR lang[255];
···
65
65
if (lcid == MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH), SORT_DEFAULT) ||
66
66
lcid == MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH_MODERN), SORT_DEFAULT))
67
67
{
68
68
-
if (bSpain == FALSE)
68
68
+
if (isSpain == FALSE)
69
69
{
70
70
LoadStringW(hApplet, IDS_SPAIN, lang, 255);
71
71
-
bSpain = TRUE;
71
71
+
isSpain = TRUE;
72
72
}
73
73
else
74
74
{
···
169
169
WCHAR langSel[255];
170
170
171
171
hList = hwnd;
172
172
-
bSpain = FALSE;
173
173
-
EnumSystemLocalesW(LocalesEnumProc, LCID_SUPPORTED);
172
172
+
isSpain = FALSE;
173
173
+
EnumSystemLocalesW(GeneralPropertyPageLocalesEnumProc, LCID_SUPPORTED);
174
174
175
175
/* Select current locale */
176
176
/* or should it be System and not user? */
+4
-4
dll/cpl/intl/intl.c
···
77
77
}
78
78
79
79
static VOID
80
80
-
InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc, LPARAM lParam)
80
80
+
InitIntlPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc, LPARAM lParam)
81
81
{
82
82
ZeroMemory(psp, sizeof(PROPSHEETPAGE));
83
83
psp->dwSize = sizeof(PROPSHEETPAGE);
···
183
183
psh.nStartPage = 0;
184
184
psh.ppsp = psp;
185
185
186
186
-
InitPropSheetPage(&psp[0], IDD_GENERALPAGE, GeneralPageProc, (LPARAM)pGlobalData);
186
186
+
InitIntlPropSheetPage(&psp[0], IDD_GENERALPAGE, GeneralPageProc, (LPARAM)pGlobalData);
187
187
psh.nPages++;
188
188
-
InitPropSheetPage(&psp[1], IDD_LANGUAGESPAGE, LanguagesPageProc, (LPARAM)pGlobalData);
188
188
+
InitIntlPropSheetPage(&psp[1], IDD_LANGUAGESPAGE, LanguagesPageProc, (LPARAM)pGlobalData);
189
189
psh.nPages++;
190
190
191
191
if (pGlobalData->bIsUserAdmin)
192
192
{
193
193
-
InitPropSheetPage(&psp[2], IDD_ADVANCEDPAGE, AdvancedPageProc, (LPARAM)pGlobalData);
193
193
+
InitIntlPropSheetPage(&psp[2], IDD_ADVANCEDPAGE, AdvancedPageProc, (LPARAM)pGlobalData);
194
194
psh.nPages++;
195
195
}
196
196
+3
-3
dll/cpl/intl/time.c
···
26
26
27
27
#include "intl.h"
28
28
29
29
-
static HWND hwndEnum = NULL;
29
29
+
static HWND hwndTimeEnum = NULL;
30
30
31
31
static BOOL CALLBACK
32
32
TimeFormatEnumProc(PWSTR lpTimeFormatString)
33
33
{
34
34
-
SendMessageW(hwndEnum,
34
34
+
SendMessageW(hwndTimeEnum,
35
35
CB_ADDSTRING,
36
36
0,
37
37
(LPARAM)lpTimeFormatString);
···
62
62
CB_LIMITTEXT, MAX_TIMEFORMAT, 0);
63
63
64
64
/* Add available time formats to the list */
65
65
-
hwndEnum = GetDlgItem(hwndDlg, IDC_TIMEFORMAT);
65
65
+
hwndTimeEnum = GetDlgItem(hwndDlg, IDC_TIMEFORMAT);
66
66
EnumTimeFormatsW(TimeFormatEnumProc, pGlobalData->UserLCID, 0);
67
67
68
68
SendDlgItemMessageW(hwndDlg, IDC_TIMEFORMAT,