Skip to content

Conversation

gave92
Copy link
Member

@gave92 gave92 commented Feb 13, 2021

Fixes #1226

This PR adds support for showing localized folder names (e.g. "Programmi" instead of "Program Files" for it-IT)
Does not slow down file loading, display name is loaded in LoadExtendedItemProperties() (if not cached).

@jakoss I've employed your caching feature to save the display name for files, I'd be happy if you could take a look at the code to see if there's anything amiss ;)

Note: This PR contains some changes done by @hez2010 for #3350 (also needed here)

@gave92 gave92 marked this pull request as ready for review February 13, 2021 16:30
@yaira2 yaira2 requested review from tsvietOK and yaira2 and removed request for tsvietOK February 14, 2021 00:15
@yaira2
Copy link
Member

yaira2 commented Feb 14, 2021

@gave92 What kind of impact will this have on performance?

@gave92
Copy link
Member Author

gave92 commented Feb 14, 2021

@yaichenbaum it should have almost no impact as the localized name is loaded in LoadExtendedItemProperties. Reading the name from cache should also be pretty fast. I haven't noticed slow downs in C:\Windows\System32 (big folder with lots of subfolders). Have you seen something different in your testing?

yaira2
yaira2 previously approved these changes Feb 14, 2021
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Feb 14, 2021
@yaira2
Copy link
Member

yaira2 commented Feb 14, 2021

@gave92 There doesn't really seem to be any major impact, good work!

yaira2
yaira2 previously approved these changes Feb 14, 2021
@gave92
Copy link
Member Author

gave92 commented Feb 14, 2021

Aha sorry now it's ready I think.

@yaira2 yaira2 merged commit fb2b958 into files-community:main Feb 14, 2021
@gave92 gave92 deleted the localized_names branch February 14, 2021 16:24
@gave92 gave92 mentioned this pull request Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show localised (localized) names for system folders
2 participants