Windows 7: L10N mechanics

Posted by John Sonderson on Super User See other posts from Super User or by John Sonderson
Published on 2013-10-25T16:40:18Z Indexed on 2013/10/26 15:57 UTC
Read the original article Hit count: 259

Filed under:
|

I have a localized version of Windows 7. I can't figure out where windows gets the names for files and directories on the system. For instance, consider the following (default) files.

> cd C:\Users\Public\Pictures\Sample Pictures
> dir

Chrysanthemum.jpg
Desert.jpg
...

When I view these files on the default file explorer I see these names:

Crisantemo.jpg
Deserto.jpg
...

This seems to imply that each file can be somehow assigned a localized name somewhere.

However I cannot figure out how.

Would appreciate if someone could shed some light on this issue.

Thanks.

UPDATE EDIT:

The desktop.ini file in the folder containing Chrysanthemum.jpg contains the following entries. The .dll files used to translate the various resources are unfortunately not human-readable and I have no clue as to how they could be generated for other files created by the user to be translated, but they serve the purpose, and solve the mystery which lead to the post. Thanks.

[LocalizedFileNames]
Chrysanthemum.jpg=@%systemroot%\system32\SampleRes.dll,-101
Desert.jpg=@%systemroot%\system32\SampleRes.dll,-102
Hydrangeas.jpg=@%systemroot%\system32\SampleRes.dll,-103
Jellyfish.jpg=@%systemroot%\system32\SampleRes.dll,-104
Koala.jpg=@%systemroot%\system32\SampleRes.dll,-105
Tulips.jpg=@%systemroot%\system32\SampleRes.dll,-106
Lighthouse.jpg=@%systemroot%\system32\SampleRes.dll,-107
Penguins.jpg=@%systemroot%\system32\SampleRes.dll,-108

[.ShellClassInfo]
LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21805

© Super User or respective owner

Related posts about windows-7

Related posts about localization