Commit graph

354 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto
aa69236646
[TIMEDATE.CPL] In case TimeZone data does not contain a valid StandardName, perform comparisons against the time-zone numerical values instead.
It may happen that the time-zone information in the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
contains an empty StandardName / DaylightName, or is too long for the
standard maximum 32-character length, and therefore is returned empty.
And/or it may happen as well that some of the standard names (value "Std")
present in some of the time zones listed in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
are similarly too long, and therefore are returned as empty strings.

In case this happens, perform comparisons instead with the numerical
values Bias, StandardBias, DaylightBias, StandardDate and DaylightDate
in order to find a match.

It is interesting to note also that in Vista+ there is an additional
REG_SZ value "TimeZoneKeyName" in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
that allows to directly find a match in the time zones list in
"Windows NT\CurrentVersion\Time Zones".
2020-04-22 00:58:34 +02:00
Hermès Bélusca-Maïto
7c3e96a26a
[TIMEDATE.CPL][SYSSETUP][TZLIB] Introduce a small static library "tzlib": "TimeZone Utilities Library", and use it in timedate.cpl and syssetup.dll.
This small win32 library provides time-zone utility wrappers around
Win32 functions, that are used by different ReactOS modules such as
timedate.cpl, syssetup.dll, and a possible future 'tzutil' tool.

The code has been extracted from the common code found in both
timedate.cpl and syssetup.dll.
2020-04-22 00:58:32 +02:00
Jose Carlos Jesus
77b12181a5
[TRANSLATION] New Portuguese translation (#2588)
* [TRANSLATION] New PT translation to inetcpl

* [TRANSLATION] Fix SUBLANG in file cpl/joy/lang/pt-PT.rc to SUBLAG_NEUTRAL

* [TRANSLATION] New PT translation to cpl/mmsys/lang/pt-PT.rc

* [TRANSLATION] Fix SUBLANG in cryptui_Pt.rc file
2020-04-18 23:49:35 +02:00
Piotr Hetnarowicz
92d9a028aa
[TIMEDATE] Polish translation update (#2567) 2020-04-18 19:19:52 +02:00
Kyle Katarn
40e82c4b94
[INETCPL][SERVMAN] French translation update (#2572)
CORE-16900

Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-04-18 13:21:37 +02:00
Kyle Katarn
fa1cc2e1e8
[INETCPL] French translation update #2571
CORE-16900
2020-04-18 12:16:58 +02:00
Joachim Henze
b983c647d7 [MMSYS] CORE-16881 fr-FR "Save As" button too narrow 2020-04-18 00:45:32 +02:00
Piotr Hetnarowicz
5c86e1012b
[APPWIZ] Update Polish translation (#2337) 2020-04-16 09:51:40 +03:00
Joachim Henze
feeeca2695 [SYSDM.CPL] fr-FR Resize & Reposition 3 buttons CORE-16595
to avoid text truncation of the button
"Environment Variables"
2020-04-14 01:35:10 +02:00
Eric Kohl
4735cc2ab5 [TIMEDATE] Pervent running multiple NTP updates at once
- Run the NTP uptate from a separate thread
- Do not accept another update until the current one has finished

CORE-16835
2020-04-12 13:12:23 +02:00
Mas Ahmad Muhammad
b8dd046ee4
[TRANSLATION] Add and update Indonesian translations (#2506)
- CMDUTILS: attrib, label (update translation)
- USETUP (add translation)
- HOTPLUG (add translation)
- CONSRV  (update translation)
- USERSRV (update translation)
- USER32  (update translation)
- ACLUI  (update translation)
- LICCPA  (update translation)
- SUBST  (update translation)
- REGSVR32  (update translation)
- REGEDIT-CLB  (update translation)
- ACPPAGE  (update translation)
- TIMEDATE  (update translation)
- SOLITAIRE  (update translation)
- FDEBUG  (update translation)
- SYSSETUP (update translation)
2020-04-09 18:49:45 +02:00
Julen Urizar Compains
f7cab5a1d4
[TRANSLATION] Multiple minor fixes and addings. (#2516)
- Applications: eventvwr, fltmgr, servman.
- rosapps: arping, CTM, fontsub, fraginator, imagesoft, systeminfo, vcdcontroltool, vgafontedit.
- CPLs: desk.cpl.
- ReactOS Setup GUI app.
- Screensavers: butterflies, maze, Starfield.
- System: NTVDM, printing/monitors/localmon; the freeze dialog in user32, the error strings in usersrv.
2020-04-09 18:13:46 +02:00
Eric Kohl
bfdd6261f2 [HOTPLUG] Add the context menu to the device tree view 2020-04-05 09:50:34 +02:00
Eric Kohl
68b6639ade [HOTPLUG] Display devices that are attached to a removable device 2020-04-04 18:13:03 +02:00
Stanislav Motylkov
61a54aef9e
[SYSDM] Cumulative update 2020-04-01 for SMBIOS parser (#2495) 2020-04-02 19:57:53 +02:00
Eric Kohl
45e79efd06 [HOTPLUG] Display class icons for removable devices 2020-03-31 22:44:31 +02:00
Jared Smudde
8aa58c19a6
[HOTPLUG] Add 32 pixel icon. (#2486)
Add a 32 pixel icon to the main icon for hotplug.cpl so the Safely Remove Hardware dialog looks normal.
2020-03-30 23:54:17 +02:00
Eric Kohl
cbdf649f2c [HOTPLUG] Show removable devices and update the list on arrival and removal. 2020-03-30 23:11:44 +02:00
Eric Kohl
2125fec23a [HOTPLUG] Enable the hotplug.cpl and add the 'Safely Remove Hardware' dialog 2020-03-30 00:38:33 +02:00
Jose Carlos Jesus
ad9bd69246
[TRANSLATION] Update portuguese translation (#2447)
Update translation for main.cpl and add new translation for powercfg.cpl.
2020-03-20 17:34:43 +01:00
Eric Kohl
3ecbbd991f [JOY] Use APPLET_PROC instead of a custom CPLAPPLET_PROC and simpify the code 2020-03-15 18:12:54 +01:00
Eric Kohl
6977833e06 [POWERCFG] Add hints on missing property pages and remove an obsolete declaration 2020-03-15 16:06:49 +01:00
Eric Kohl
d1d9920b06 [INPUT] Use APPLET_PROC instead of a custom CPLAPPLET_PROC and simpify the code 2020-03-15 15:10:14 +01:00
Eric Kohl
beeb989eaa [POWERCFG] Disable the "Enable hibernation" checkbox if the system does not support hibernation 2020-03-15 14:21:11 +01:00
Eric Kohl
a88d7b5c2f [DESK][CONTROL] Select property pages by command line, for example 'control desk.cpl,,1' and fix 'control color' 2020-03-15 11:46:31 +01:00
Eric Kohl
5ea8314e67 [MAIN] Select property pages by command line, for example 'control main.cpl,@0,2' 2020-03-14 18:03:52 +01:00
Serge Gautherie
92aabb07fb
[REACTOS] Fix remaining ' \n' typos, in *.rc (#2393)
Addendum to commit 554c41e4 (#2387).
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-03-06 19:08:25 +01:00
Hermès BÉLUSCA - MAÏTO
d4699bc67f
[CPL][TIMEDATE] Romanian & Italian translation update (#2404) 2020-03-05 00:21:31 +01:00
Serge Gautherie
554c41e4d7
[REACTOS] Fix trailing spaces and other typos in string resources (#2387) 2020-02-26 11:45:27 +03:00
Katayama Hirofumi MZ
1e60116563
[SYSDM][MSGINA][NETID][SHELL32] Japanese translation (retrial) (#2369)
Improve Japanese resources. This PR is based on @Midi730's work (#2361).
2020-02-25 10:27:49 +09:00
Bișoc George
b77008a709
[TIMEDATE] Remove lpszSyncStatus member entirely (#2383)
And directly pass the formatted string to SetDlgItemTextW(). Addendum to 5a81a5b.
2020-02-24 16:59:11 +01:00
Bișoc George
5a81a5bc14
[TIMEDATE] Implement the dynamic NTP status notification (#2352)
Time/Date control panel applet displays the status of the NTP server synchronization with the system informing the user the actual condition of the said sync, if it has failed or suceeded. The commit also implements IDS_INETTIMEWELCOME which serves as a placeholder as Time/Date loads the last successful attempt of NTP synchronization which I don't know how the CPL remembers it. With that said, IDS_INETTIMEWELCOME will stay for a while until someone figures out how timedate.cpl works internally.
CORE-16684
2020-02-24 19:56:02 +09:00
Katayama Hirofumi MZ
9da842a647 [CPL][ACCESS] Japanese translation more 2020-02-15 11:09:04 +09:00
Katayama Hirofumi MZ
ddd4a6502f [CPL][ACCESS] Improve Japanese translation 2020-02-15 10:57:49 +09:00
Eric Kohl
065a0bbf0f [MMSYS] Select a property page by command line, for expample 'control mmsys.cpl,,1' 2020-02-11 05:42:27 +01:00
Eric Kohl
62721aefe5 [ACCESS] Select a property page by command line, for example 'control access.cpl,,2' 2020-02-10 09:48:37 +01:00
Eric Kohl
81389f2919 [SYSDM] Implement the selection of a property page by command line 2020-02-09 13:07:13 +01:00
Katayama Hirofumi MZ
0e8bf61f81
[CPL][APPWIZ] Add InitCommonControls calls (#2316)
CORE-16669
2020-02-09 14:42:26 +09:00
Hermès Bélusca-Maïto
507cda98cf
[CPL][INPUT] Fix french typography error. 2020-02-07 18:03:15 +01:00
Katayama Hirofumi MZ
043d521545 [CPL][INPUT] Translate IDS_REBOOT_NOW into Japanese 2020-02-08 01:28:50 +09:00
Katayama Hirofumi MZ
fdb6c30e13 [CPL][INPUT] Translate IDS_REBOOT_NOW into French
CORE-16601
2020-02-08 01:27:23 +09:00
Bișoc George
37349d7a0f
[TIMEDATE] Do not display a message box when NTP sync fails (#2305)
This PR merely checks if the string is empty and displaying (only) a debug information to the debugger, at disposal of displaying a message box. I might implement such dynamic resource string to the CPL later in a next PR.
CORE-16654
2020-02-06 03:54:33 +09:00
Katayama Hirofumi MZ
43556bfff2 [CPL][APPWIZ] Consider PSN_SETACTIVE
- Correctly respond even if the user clicked "Back" button.
- Accept environment variables.
CORE-16534
2020-01-29 02:29:16 +09:00
Katayama Hirofumi MZ
7249b8b74f
[CPL][APPWIZ] Use display name for shortcut label (#2284)
CORE-16534
2020-01-28 23:31:09 +09:00
Katayama Hirofumi MZ
f7972f0e6a [CPL][DESK] Use GetModuleHandleW(L"shell32.dll")
CORE-16665
2020-01-28 22:24:30 +09:00
Katayama Hirofumi MZ
b404824776 [CPL][DESK] Improve Japanese translation for IDD_THEMES 2020-01-28 17:18:15 +09:00
Katayama Hirofumi MZ
724dcba818 [CPL][DESK] Improve Polish translation for IDD_THEMES 2020-01-28 17:13:11 +09:00
Katayama Hirofumi MZ
d05f621fed
[CPL][DESK] Add "Themes" Tab resource data (#2280)
CORE-14537
2020-01-28 14:32:02 +09:00
Katayama Hirofumi MZ
e2c408f717 [CPL][DESK] Don't use magic number (IDI_SHELL_NO) 2020-01-28 14:19:13 +09:00
Katayama Hirofumi MZ
c069e5c122 [CPL][DESK] Use shell32 icon directly; follow-up to #2281 2020-01-28 14:05:51 +09:00
Katayama Hirofumi MZ
cc794e564a
[CPL][DESK] Add icons to 'Background' tab (#2281)
Add icons into "Background" tab of "Properties for Display" dialog.
CORE-16665
2020-01-28 13:41:29 +09:00
Katayama Hirofumi MZ
afb0ae877c
[APPWIZ] Delete shortcut file upon user cancel (#2279)
If the user cancelled, then "Create shortcut" Wizard deletes the shortcut file.
CORE-16534
2020-01-27 22:58:58 +09:00
Mas4hmad
228eeb7d79 [TRANSLATION] Update Indonesian Translation (#2268)
- Update Indonesian translation for:
  BROWSEUI.DLL, COMCTL32.DLL, DEVMGR.DLL, IEFRAME.DLL, NETID.DLL, SHELL32.DLL,
  SYSSETUP.DLL, TIMEDATE.CPL, APPWIZ.CPL, ACCESS.CPL, DESK.CPL and TASKMGR.EXE.

- Add Indonesian translation for: MSHTML.DLL, OLEAUT32.DLL, INPUT.CPL and NTVDM.EXE.
2020-01-26 18:29:38 +01:00
Serge Gautherie
b3badc0451 [CMAKE] Remove a remnant comment related to 'dll/cpl/console' (#2267)
'#Warning: console\\/lang/cs-CZ.rc:143: unrecognized escape sequence'
2020-01-24 13:38:53 +01:00
Jose Carlos Jesus
8dfd2338f1 [TRANSLATION] Update Portuguese translation (#2257)
Improvements/updates for sysdm.cpl, devmgr.dll, hhctrl.ocx, netid.dll,
and add new Portuguese translation for shimgvw.dll .
2020-01-19 15:45:06 +01:00
Serge Gautherie
8f72618453 [SYSDM] general.c: Make 2 global variables 'static' (#2060)
And 1 'const' too.

This allows reducing confusion about scope/use.
2020-01-14 18:54:17 +01:00
Eric Kohl
b00a1f3e76 [DESK] The DisplayClassInstaller must create a new DeviceX subkey for each new display devices
This should fix CORE-16615
2020-01-06 22:39:41 +01:00
Eric Kohl
6ad4f9e7bb [TIMEDATE] Update the clock on WM_TIMECHANGE 2020-01-05 12:21:53 +01:00
Eric Kohl
ba783adf1e [SYSDM] Improve the user profile dialog
- Currently used profiles cannot be copied or deleted.
- Unknown profiles cannot be copied.
- A double click on a profile opens the change profile type dialog.
2020-01-04 14:54:30 +01:00
Amine Khaldi
90cb67a7f4 [INETCPL] Sync with Wine Staging 4.18. CORE-16441 2019-12-23 00:57:10 +01:00
Jose Carlos Jesus
d347163fab [TRANSLATION] Update Portuguese translation (#2125)
Add translation for joy.cpl and update it for comdlg32.dll.
2019-12-10 13:13:58 +01:00
Katayama Hirofumi MZ
4420f4e0ca
[CPL][INPUT] Fix bullet (#2124)
CORE-13807
2019-12-02 18:04:41 +09:00
Serge Gautherie
2c8f2a099b [OPENGLCFG] general.c: Fix overruns and warnings, improve code consistency (#1923)
* [OPENGLCFG] dwNumDrivers: Fix related pOglDrivers[] overruns

Follow-up to e7b8f27309.

* [OPENGLCFG] dwNumDrivers: Sync related iKey to DWORD type

* [OPENGLCFG] Fix 2 MSVC-x64 'C4267' warnings about RegSetValueExW()
2019-11-29 08:43:15 +01:00
Serge Gautherie
1f8dcf3c0e [SYSDM] IMGINFO: Fix 'iPLanes' typo (#2059) 2019-11-25 18:50:03 +01:00
Shy Zedaka
ca09307274 [TRANSLATION][HEBREW] Some typo fixes and Some New strings (#2078) 2019-11-22 17:07:29 +01:00
Serge Gautherie
5b37caa9d7 [DESK] StringCbCat() needs bytes, not chars (#2070) 2019-11-21 01:10:20 +01:00
Serge Gautherie
0f92924a99 [REACTOS] Use explicit StringCb*W() (#2069) 2019-11-21 00:47:06 +01:00
Katayama Hirofumi MZ
098564d5fe
[TRANSLATION] Improve Japanese translation (#2057)
Improve Japanese translation.
Thanks to @98mebius.
2019-11-19 22:50:52 +09:00
Jared Smudde
a270e5b053 [APPWIZ] Very minor icon fix for the Create Shortcut wizard. (#1993)
Also cleaned up the other icons to reduce size.
2019-10-24 13:58:04 +02:00
Serge Gautherie
c8cbd566f9 [HDWWIZ] ProbeListPageDlgProc(): Top 'Item' variable is enough (#1990)
Addendum to ce498aa571.
2019-10-22 10:12:04 +09:00
Katayama Hirofumi MZ
72e5c2e77c [CPL][DESK] hShell32 is always non-NULL in epilogue 2019-10-22 09:43:34 +09:00
Katayama Hirofumi MZ
ce498aa571 [CPL][HDWWIZ] Move 'Index' and 'Item' variables to prologue 2019-10-22 09:41:09 +09:00
Eric Kohl
bf854f5372 [POWERCFG] Fix the Indentation. No code changes! 2019-09-25 10:52:45 +02:00
Carlo Bramini
e7b8f27309 [OPENGLCFG] Fix crash if no drivers (#1919)
Actually, it crashes here on Windows XP.
2019-09-21 15:58:38 +02:00
Adam Słaboń
c81af08f51 [TRANSLATION] Polish translation update (#1916)
Added translation for netstat, utilman and netplwiz. Updated translation of find, reg, rapps, regedit, sndvol32, usetup, hivesys, mmsys, openglcfg, powercfg, sysdm, shellext, browseui, devmgr, msgina, netcfgx, shell32, syssetup, shortcuts and vcdcontroltool.
2019-09-20 21:51:47 +02:00
Carlo Bramini
ec81c75b49 [OPENGLCFG] Add italian translation. (#1915) 2019-09-20 21:51:33 +02:00
Eric Kohl
95dd1c6705 [SYSDM] Store the profile path in the PROFILEDATA struct for deleting and copying the profiles 2019-09-16 08:51:08 +02:00
Eric Kohl
05f0b08085 [SYSDM] Allow deleting and copying of user profiles only for profiles that are currently not in use 2019-09-14 12:22:54 +02:00
Eric Kohl
3d0ae05303 [SYSDM] Show the profile type (local or roaming) in the type column, show the other profile states in the status column 2019-09-12 10:23:33 +02:00
Eric Kohl
6984729f81 [SYSDM] Improvements to the user profile size format 2019-09-11 15:12:26 +02:00
Eric Kohl
7072a34739 [SYSDM] Calculate and display the size of the user profiles 2019-09-11 10:14:02 +02:00
Eric Kohl
cd2d97873e [SYSDM] Remove unused variables
Thanks a lot Katayama Hirofumi for the hint!
2019-09-10 15:38:29 +02:00
Eric Kohl
48c01c8717 [SYSDM] Check the profile directory and hive file and display the last write date of the hive file. 2019-09-10 13:40:47 +02:00
Carlo Bramini
6b8d722bb2 Fix italian translation: "Cancella" -> "Annulla" (#1902) 2019-09-08 14:04:41 +02:00
Bișoc George
9efe8dab89 [CPL] Do not enable the "Apply" button unconditionally (#1876)
Fix for WINED3DCFG and OPENGLCFG.
CORE-16330
2019-09-01 22:58:43 +02:00
Eric Kohl
12e2039743 [SYSDM] Only Administrators should see all user profiles and be able to copy or delete them 2019-09-01 19:39:28 +02:00
Shy Zedaka
cbf47846e7 [TRANSLATION] Changes to Newdev and hdwwiz 2019-08-21 18:49:59 +02:00
Bișoc George
dcf18826a5 [DESK] Change the property "Screensaver" page on text change
If the user takes action on the edit box control of "Screensaver" dialog page, enable the "Apply" property button.

CORE-16280
2019-08-17 15:36:47 +02:00
Jose Carlos Jesus
3a92f9c3a0
[CONSOLE] New Portuguese Translation 2019-08-16 19:32:24 +02:00
Jose Carlos Jesus
c12b06fb8e
[DESK] New Portuguese translation 2019-08-16 19:32:23 +02:00
Jose Carlos Jesus
0ddbf9a552
[HDWWIZ] New pt_PT_Translation 2019-08-16 19:32:16 +02:00
Oleg Dubinskiy
5f7575909f [AUDIOSRV][BOOTDATA][INCLUDE][MMSYS] Rename RosAudioSrv to AudioSrv (#1826)
Rename RosAudioSrv to AudioSrv in audio service itself and in all system components which are related to this, same as it done in Win2k3.
It allows MS DxDiag to detect the system audio service correctly, so it becomes possible to run DirectSound test properly with MS dsound.dll, although it works with some minor errors and only in older VirtualBox versions, ~ up to 5.1.38 (and in other emulators as well).

CORE-16307
2019-08-16 19:11:04 +02:00
Timo Kreuzer
58588b76e2 [REACTOS] Fix MSVC printf format warnings 2019-08-15 15:24:12 +02:00
Shy Zedaka
ce2f52d054 [SYSDM] Fix Re-sizing License Prompt (#1789)
CORE-16278
2019-08-03 23:34:20 +02:00
Joachim Henze
3e581e44a9 [INTL] Addendum to CORE-16252
That change was not intended.in
commit 0.4.13-dev-740-g
8b67edd8fa

Thx to Stas'M for noticing the windres warning.
2019-07-31 01:58:42 +02:00
Joachim Henze
8b67edd8fa [INPUT][INTL][SYSSETUP] Limit Combobox height CORE-16252
v6 comboboxes default to displaying up to 30entries and
give a bad user experience in 2nd stage
where we usually have low vertical screen resolution.
Therefore limit the height of the expanded boxes to
bring us close to how they were drawn before 0.4.12-dev-882-g
e3e173ffaa

Adding CBS_NOINTEGRALHEIGHT gives similar result for both:
comctl32 v5 and v6 comboboxes.
2019-07-30 23:14:31 +02:00
Jose Carlos Jesus
69454b4302 [TRANSLATION] Add Portuguese (neutral) translation. (#1702)
Add Portuguese (neutral) translation for intl.cpl, main.cpl, msgina.dll, msports.dll, welcome.exe and rundll32.exe, and fix the one in mshtml.dll .
2019-07-15 00:07:50 +02:00
Doug Lyons
119c99ef7e
[TIMEDATE] Allow editing the time server combo box. CORE-13001 2019-07-07 12:45:45 +02:00
Doug Lyons
44b543bad3
[TIMEDATE] Handle manual time server entry. CORE-13001 2019-07-07 12:45:36 +02:00
Doug Lyons
33401f3875
[TIMEDATE] Use w32time compatible registry settings. CORE-13001 2019-07-07 12:45:17 +02:00