Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
deffb92c
Commit
deffb92c
authored
Jan 23, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use the plural for 'My Videos' wherever appropriate.
parent
58776e9f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
shell32.rc
dlls/shell32/shell32.rc
+2
-2
shellpath.c
dlls/shell32/shellpath.c
+11
-11
shresdef.h
dlls/shell32/shresdef.h
+2
-2
No files found.
dlls/shell32/shell32.rc
View file @
deffb92c
...
@@ -204,7 +204,7 @@ the folder?"
...
@@ -204,7 +204,7 @@ the folder?"
IDS_SENDTO "SendTo"
IDS_SENDTO "SendTo"
IDS_STARTMENU "Start Menu"
IDS_STARTMENU "Start Menu"
IDS_MYMUSIC "My Music"
IDS_MYMUSIC "My Music"
IDS_MYVIDEO
"My Videos"
IDS_MYVIDEO
S
"My Videos"
IDS_DESKTOPDIRECTORY "#msgctxt#directory#Desktop"
IDS_DESKTOPDIRECTORY "#msgctxt#directory#Desktop"
IDS_NETHOOD "NetHood"
IDS_NETHOOD "NetHood"
IDS_TEMPLATES "Templates"
IDS_TEMPLATES "Templates"
...
@@ -223,7 +223,7 @@ the folder?"
...
@@ -223,7 +223,7 @@ the folder?"
IDS_ADMINTOOLS "Start Menu\\Programs\\Administrative Tools"
IDS_ADMINTOOLS "Start Menu\\Programs\\Administrative Tools"
IDS_COMMON_MUSIC "Music"
IDS_COMMON_MUSIC "Music"
IDS_COMMON_PICTURES "Pictures"
IDS_COMMON_PICTURES "Pictures"
IDS_COMMON_VIDEO
"Videos"
IDS_COMMON_VIDEO
S
"Videos"
IDS_CDBURN_AREA "Local Settings\\Application Data\\Microsoft\\CD Burning"
IDS_CDBURN_AREA "Local Settings\\Application Data\\Microsoft\\CD Burning"
IDS_CONTACTS "Contacts"
IDS_CONTACTS "Contacts"
IDS_LINKS "Links"
IDS_LINKS "Links"
...
...
dlls/shell32/shellpath.c
View file @
deffb92c
...
@@ -781,7 +781,7 @@ static const WCHAR HistoryW[] = {'H','i','s','t','o','r','y','\0'};
...
@@ -781,7 +781,7 @@ static const WCHAR HistoryW[] = {'H','i','s','t','o','r','y','\0'};
static
const
WCHAR
Local_AppDataW
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
' '
,
'A'
,
'p'
,
'p'
,
'D'
,
'a'
,
't'
,
'a'
,
'\0'
};
static
const
WCHAR
Local_AppDataW
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
' '
,
'A'
,
'p'
,
'p'
,
'D'
,
'a'
,
't'
,
'a'
,
'\0'
};
static
const
WCHAR
My_MusicW
[]
=
{
'M'
,
'y'
,
' '
,
'M'
,
'u'
,
's'
,
'i'
,
'c'
,
'\0'
};
static
const
WCHAR
My_MusicW
[]
=
{
'M'
,
'y'
,
' '
,
'M'
,
'u'
,
's'
,
'i'
,
'c'
,
'\0'
};
static
const
WCHAR
My_PicturesW
[]
=
{
'M'
,
'y'
,
' '
,
'P'
,
'i'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
's'
,
'\0'
};
static
const
WCHAR
My_PicturesW
[]
=
{
'M'
,
'y'
,
' '
,
'P'
,
'i'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
's'
,
'\0'
};
static
const
WCHAR
My_VideoW
[]
=
{
'M'
,
'y'
,
' '
,
'V'
,
'i'
,
'd'
,
'e'
,
'o'
,
's'
,
'\0'
};
static
const
WCHAR
My_Video
s
W
[]
=
{
'M'
,
'y'
,
' '
,
'V'
,
'i'
,
'd'
,
'e'
,
'o'
,
's'
,
'\0'
};
static
const
WCHAR
NetHoodW
[]
=
{
'N'
,
'e'
,
't'
,
'H'
,
'o'
,
'o'
,
'd'
,
'\0'
};
static
const
WCHAR
NetHoodW
[]
=
{
'N'
,
'e'
,
't'
,
'H'
,
'o'
,
'o'
,
'd'
,
'\0'
};
static
const
WCHAR
PersonalW
[]
=
{
'P'
,
'e'
,
'r'
,
's'
,
'o'
,
'n'
,
'a'
,
'l'
,
'\0'
};
static
const
WCHAR
PersonalW
[]
=
{
'P'
,
'e'
,
'r'
,
's'
,
'o'
,
'n'
,
'a'
,
'l'
,
'\0'
};
static
const
WCHAR
PrintHoodW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'H'
,
'o'
,
'o'
,
'd'
,
'\0'
};
static
const
WCHAR
PrintHoodW
[]
=
{
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'H'
,
'o'
,
'o'
,
'd'
,
'\0'
};
...
@@ -918,8 +918,8 @@ static const CSIDL_DATA CSIDL_Data[] =
...
@@ -918,8 +918,8 @@ static const CSIDL_DATA CSIDL_Data[] =
{
/* 0x0e - CSIDL_MYVIDEO */
{
/* 0x0e - CSIDL_MYVIDEO */
&
FOLDERID_Videos
,
&
FOLDERID_Videos
,
CSIDL_Type_User
,
CSIDL_Type_User
,
My_VideoW
,
My_Video
s
W
,
MAKEINTRESOURCEW
(
IDS_MYVIDEO
)
MAKEINTRESOURCEW
(
IDS_MYVIDEO
S
)
},
},
{
/* 0x0f - unassigned */
{
/* 0x0f - unassigned */
&
GUID_NULL
,
&
GUID_NULL
,
...
@@ -1165,7 +1165,7 @@ static const CSIDL_DATA CSIDL_Data[] =
...
@@ -1165,7 +1165,7 @@ static const CSIDL_DATA CSIDL_Data[] =
&
FOLDERID_PublicVideos
,
&
FOLDERID_PublicVideos
,
CSIDL_Type_AllUsers
,
CSIDL_Type_AllUsers
,
CommonVideoW
,
CommonVideoW
,
MAKEINTRESOURCEW
(
IDS_COMMON_VIDEO
)
MAKEINTRESOURCEW
(
IDS_COMMON_VIDEO
S
)
},
},
{
/* 0x38 - CSIDL_RESOURCES */
{
/* 0x38 - CSIDL_RESOURCES */
&
FOLDERID_ResourceDir
,
&
FOLDERID_ResourceDir
,
...
@@ -2503,8 +2503,8 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
...
@@ -2503,8 +2503,8 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
case
IDS_MYPICTURES
:
case
IDS_MYPICTURES
:
lstrcpyW
(
wszSubPath
,
My_PicturesW
);
lstrcpyW
(
wszSubPath
,
My_PicturesW
);
break
;
break
;
case
IDS_MYVIDEO
:
case
IDS_MYVIDEO
S
:
lstrcpyW
(
wszSubPath
,
My_VideoW
);
lstrcpyW
(
wszSubPath
,
My_Video
s
W
);
break
;
break
;
default:
default:
ERR
(
"LoadString(%d) failed!
\n
"
,
LOWORD
(
pwszSubPath
));
ERR
(
"LoadString(%d) failed!
\n
"
,
LOWORD
(
pwszSubPath
));
...
@@ -2537,7 +2537,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
...
@@ -2537,7 +2537,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
* - If there is a 'My Documents' directory in $HOME, the user probably wants
* - If there is a 'My Documents' directory in $HOME, the user probably wants
* wine's 'My Documents' to point there. Furthermore, we imply that the user
* wine's 'My Documents' to point there. Furthermore, we imply that the user
* is a Windows lover and has no problem with wine creating 'My Pictures',
* is a Windows lover and has no problem with wine creating 'My Pictures',
* 'My Music' and 'My Video' subfolders under '$HOME/My Documents', if those
* 'My Music' and 'My Video
s
' subfolders under '$HOME/My Documents', if those
* do not already exits. We put appropriate symbolic links in place for those,
* do not already exits. We put appropriate symbolic links in place for those,
* too.
* too.
* - If there is no 'My Documents' directory in $HOME, we let 'My Documents'
* - If there is no 'My Documents' directory in $HOME, we let 'My Documents'
...
@@ -2546,7 +2546,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
...
@@ -2546,7 +2546,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
* there already is a 'My Music' directory in $HOME, we symlink the 'My Music'
* there already is a 'My Music' directory in $HOME, we symlink the 'My Music'
* shell folder to it. But if not, then we check XDG_MUSIC_DIR - "well known"
* shell folder to it. But if not, then we check XDG_MUSIC_DIR - "well known"
* directory, and try to link to that. If that fails, then we symlink to
* directory, and try to link to that. If that fails, then we symlink to
* $HOME directly. The same holds fo 'My Pictures' and 'My Video'.
* $HOME directly. The same holds fo 'My Pictures' and 'My Video
s
'.
* - The Desktop shell folder is symlinked to XDG_DESKTOP_DIR. If that does not
* - The Desktop shell folder is symlinked to XDG_DESKTOP_DIR. If that does not
* exist, then we try '$HOME/Desktop'. If that does not exist, then we leave
* exist, then we try '$HOME/Desktop'. If that does not exist, then we leave
* it alone.
* it alone.
...
@@ -2554,7 +2554,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
...
@@ -2554,7 +2554,7 @@ static inline BOOL _SHAppendToUnixPath(char *szBasePath, LPCWSTR pwszSubPath) {
*/
*/
static
void
_SHCreateSymbolicLinks
(
void
)
static
void
_SHCreateSymbolicLinks
(
void
)
{
{
UINT
aidsMyStuff
[]
=
{
IDS_MYPICTURES
,
IDS_MYVIDEO
,
IDS_MYMUSIC
},
i
;
UINT
aidsMyStuff
[]
=
{
IDS_MYPICTURES
,
IDS_MYVIDEO
S
,
IDS_MYMUSIC
},
i
;
int
acsidlMyStuff
[]
=
{
CSIDL_MYPICTURES
,
CSIDL_MYVIDEO
,
CSIDL_MYMUSIC
};
int
acsidlMyStuff
[]
=
{
CSIDL_MYPICTURES
,
CSIDL_MYVIDEO
,
CSIDL_MYMUSIC
};
static
const
char
*
const
xdg_dirs
[]
=
{
"PICTURES"
,
"VIDEOS"
,
"MUSIC"
,
"DESKTOP"
};
static
const
char
*
const
xdg_dirs
[]
=
{
"PICTURES"
,
"VIDEOS"
,
"MUSIC"
,
"DESKTOP"
};
static
const
unsigned
int
num
=
sizeof
(
xdg_dirs
)
/
sizeof
(
xdg_dirs
[
0
]);
static
const
unsigned
int
num
=
sizeof
(
xdg_dirs
)
/
sizeof
(
xdg_dirs
[
0
]);
...
@@ -2614,7 +2614,7 @@ static void _SHCreateSymbolicLinks(void)
...
@@ -2614,7 +2614,7 @@ static void _SHCreateSymbolicLinks(void)
}
}
}
}
/* Create symbolic links for 'My Pictures', 'My Video' and 'My Music'. */
/* Create symbolic links for 'My Pictures', 'My Video
s
' and 'My Music'. */
for
(
i
=
0
;
i
<
sizeof
(
aidsMyStuff
)
/
sizeof
(
aidsMyStuff
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
aidsMyStuff
)
/
sizeof
(
aidsMyStuff
[
0
]);
i
++
)
{
/* Create the current 'My Whatever' folder and get it's unix path. */
/* Create the current 'My Whatever' folder and get it's unix path. */
hr
=
SHGetFolderPathW
(
NULL
,
acsidlMyStuff
[
i
]
|
CSIDL_FLAG_CREATE
,
NULL
,
hr
=
SHGetFolderPathW
(
NULL
,
acsidlMyStuff
[
i
]
|
CSIDL_FLAG_CREATE
,
NULL
,
...
@@ -2797,7 +2797,7 @@ HRESULT SHELL_RegisterShellFolders(void)
...
@@ -2797,7 +2797,7 @@ HRESULT SHELL_RegisterShellFolders(void)
HRESULT
hr
;
HRESULT
hr
;
/* Set up '$HOME' targeted symlinks for 'My Documents', 'My Pictures',
/* Set up '$HOME' targeted symlinks for 'My Documents', 'My Pictures',
* 'My Video', 'My Music' and 'Desktop' in advance, so that the
* 'My Video
s
', 'My Music' and 'Desktop' in advance, so that the
* _SHRegister*ShellFolders() functions will find everything nice and clean
* _SHRegister*ShellFolders() functions will find everything nice and clean
* and thus will not attempt to create them in the profile directory. */
* and thus will not attempt to create them in the profile directory. */
_SHCreateSymbolicLinks
();
_SHCreateSymbolicLinks
();
...
...
dlls/shell32/shresdef.h
View file @
deffb92c
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
#define IDS_SENDTO 50
#define IDS_SENDTO 50
#define IDS_STARTMENU 51
#define IDS_STARTMENU 51
#define IDS_MYMUSIC 52
#define IDS_MYMUSIC 52
#define IDS_MYVIDEO
53
#define IDS_MYVIDEO
S
53
#define IDS_DESKTOPDIRECTORY 54
#define IDS_DESKTOPDIRECTORY 54
#define IDS_NETHOOD 55
#define IDS_NETHOOD 55
#define IDS_TEMPLATES 56
#define IDS_TEMPLATES 56
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
#define IDS_ADMINTOOLS 67
#define IDS_ADMINTOOLS 67
#define IDS_COMMON_MUSIC 68
#define IDS_COMMON_MUSIC 68
#define IDS_COMMON_PICTURES 69
#define IDS_COMMON_PICTURES 69
#define IDS_COMMON_VIDEO
70
#define IDS_COMMON_VIDEO
S
70
#define IDS_CDBURN_AREA 71
#define IDS_CDBURN_AREA 71
#define IDS_PROGRAM_FILESX86 72
#define IDS_PROGRAM_FILESX86 72
#define IDS_PROGRAM_FILES_COMMONX86 73
#define IDS_PROGRAM_FILES_COMMONX86 73
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment