Discussion:
Translation of folder names
(too old to reply)
Girish
2004-05-11 12:42:54 UTC
Permalink
Hello All,

We have developed a MFC application.
It is internationalized to support English and Japanese languages.

We are observing some strange behaviour of our application in Japanese
XP OS.

Some folder names like "My Documents" and "My Pictures" and etc are
displayed Japanese by the Windows explorer, but the path of the folder
is in english. Our observation is that windows translates folder names
and displays it in windows explorer.

Our application has a tree view where we display the folder names,
which is currently displayed in english.

How can we display the folder names in our application similar to the
windows explorer view.


Thank you

--
Girish.
Raymond Chen
2004-05-12 07:48:31 UTC
Permalink
One way is SHGetFileInfo + SHGFI_DISPLAYNAME. Another way is
IShellFolder::GetDisplayNameOf.
Post by Girish
How can we display the folder names in our application similar to the
windows explorer view.
Girish
2004-05-18 11:23:22 UTC
Permalink
Hi Raymond,

Thanks for your suggestion.

I have implemented the API given in my application. But still i am not able to
get the actual file names when i try to copy the files through my application.

Please helpout.

Thanks and Regards,
Girish.
Post by Raymond Chen
One way is SHGetFileInfo + SHGFI_DISPLAYNAME. Another way is
IShellFolder::GetDisplayNameOf.
Post by Girish
How can we display the folder names in our application similar to the
windows explorer view.
Raymond Chen
2004-05-20 07:38:48 UTC
Permalink
I guess I'm confused. You already have the actual file names;
they were passed as the first parameter to SHGetFileInfo.
Post by Girish
Hi Raymond,
Thanks for your suggestion.
I have implemented the API given in my application. But still i am not able to
get the actual file names when i try to copy the files through my application.
Please helpout.
Thanks and Regards,
Girish.
Post by Raymond Chen
One way is SHGetFileInfo + SHGFI_DISPLAYNAME. Another way is
IShellFolder::GetDisplayNameOf.
Post by Girish
How can we display the folder names in our application similar to the
windows explorer view.
Girish
2004-05-20 14:22:48 UTC
Permalink
Hi Raymond,


In our application we support copying of folders/files from one system to
another system.

When we copy system folders to the destination, we would like to keep all the
folder attributes of the system source folder, like "SHGFI_DISPLAYNAME",
"SHGFI_ICON" and etc, as it is for the destination folder.

Please let us know how to copy the above attributes of one folder to another
folder.

Thanks and Regards,
Girish
Post by Raymond Chen
I guess I'm confused. You already have the actual file names;
they were passed as the first parameter to SHGetFileInfo.
Post by Girish
Hi Raymond,
Thanks for your suggestion.
I have implemented the API given in my application. But still i am not able to
get the actual file names when i try to copy the files through my application.
Please helpout.
Thanks and Regards,
Girish.
Post by Raymond Chen
One way is SHGetFileInfo + SHGFI_DISPLAYNAME. Another way is
IShellFolder::GetDisplayNameOf.
Post by Girish
How can we display the folder names in our application similar to the
windows explorer view.
Raymond Chen
2004-05-21 05:51:45 UTC
Permalink
Some of these attributes aren't stored with the file. SHGFI_ICON
for example is defined by what applications are installed.

SHSetLocalizedName lets you set the display name separately from
the filename.
Post by Girish
When we copy system folders to the destination, we would like to keep all the
folder attributes of the system source folder, like "SHGFI_DISPLAYNAME",
"SHGFI_ICON" and etc, as it is for the destination folder.
Please let us know how to copy the above attributes of one folder to another
folder.
Girish
2004-05-24 04:07:33 UTC
Permalink
Hi Raymond,

Thanks for the reply.

I got the message saying that API 'SHSetLocalizedName' can be used only in
Windows XP. But i need to know about other alternative API which works across
OS like Win2K and Win NT.

--
Thanks and Regards,
Girish.
Post by Raymond Chen
Some of these attributes aren't stored with the file. SHGFI_ICON
for example is defined by what applications are installed.
SHSetLocalizedName lets you set the display name separately from
the filename.
Post by Girish
When we copy system folders to the destination, we would like to keep all the
folder attributes of the system source folder, like "SHGFI_DISPLAYNAME",
"SHGFI_ICON" and etc, as it is for the destination folder.
Please let us know how to copy the above attributes of one folder to another
folder.
Raymond Chen
2004-05-25 06:25:10 UTC
Permalink
Earlier versions of Windows didn't support multilingual
interfaces or did a really bad job of it. Windows XP was the
first to do a decent job of it.
Post by Girish
Hi Raymond,
Thanks for the reply.
I got the message saying that API 'SHSetLocalizedName' can be used only in
Windows XP. But i need to know about other alternative API which works across
OS like Win2K and Win NT.
--
Thanks and Regards,
Girish.
Post by Raymond Chen
Some of these attributes aren't stored with the file. SHGFI_ICON
for example is defined by what applications are installed.
SHSetLocalizedName lets you set the display name separately from
the filename.
Post by Girish
When we copy system folders to the destination, we would like to keep all the
folder attributes of the system source folder, like "SHGFI_DISPLAYNAME",
"SHGFI_ICON" and etc, as it is for the destination folder.
Please let us know how to copy the above attributes of one folder to another
folder.
Continue reading on narkive:
Loading...