Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [Win32 - FileSel - System Places Improvement] - Disk name
[Win32 - FileSel - System Places Improvement] - Disk name [message #40149] Sat, 22 June 2013 12:39
Klugier is currently offline  Klugier
Messages: 636
Registered: September 2012
Location: Poland, Kraków
Contributor
Hello,

I have noticed that FileSel shows only letter in system places if the disk (partition) dosen't have a name. We should change this behavior and call that disk simply: "Local Disk". This is the default notation on Windows. All we need to do is just to modify FileSel source code (CtrlLib/FileSel.cpp - Line 1713):

if(desc.GetCount() == 0)
    desc << " " << t_("Local Disk");
desc << " (" << n << ")";


Instead of:

if(desc.GetCount())
    desc << " (" << n << ")";
else
    desc = n;


Of course, We will need to make translation of "Local Disk" phrase. I have posted my national translation:
plPL("Dysk lokalny")


Sincerely,
Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Sat, 22 June 2013 12:57]

Report message to a moderator

Previous Topic: [FIXED] FC_WEIGHT is too big.
Next Topic: [FIXED] FormatFileSize method should use extend formating.
Goto Forum:
  


Current Time: Thu Nov 14 20:13:23 CET 2019

Total time taken to generate the page: 0.01592 seconds