author | leseb <leseb> | 2002-09-04 06:30:37 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-09-04 06:30:37 (UTC) |
commit | ab38f9c573c39be3c5ea909dd4eafed319fa9dff (patch) (unidiff) | |
tree | 80864deb1c27595db388d0d37f2eab3345a8147e | |
parent | cf317ab123c51fb957ec35d44431e77a8b76c279 (diff) | |
download | opie-ab38f9c573c39be3c5ea909dd4eafed319fa9dff.zip opie-ab38f9c573c39be3c5ea909dd4eafed319fa9dff.tar.gz opie-ab38f9c573c39be3c5ea909dd4eafed319fa9dff.tar.bz2 |
Fix some storage name
-rw-r--r-- | library/storage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/storage.cpp b/library/storage.cpp index 13639fe..35e0255 100644 --- a/library/storage.cpp +++ b/library/storage.cpp | |||
@@ -145,17 +145,17 @@ void StorageInfo::update() | |||
145 | humanname = tr("SD Card"); | 145 | humanname = tr("SD Card"); |
146 | removable = TRUE; | 146 | removable = TRUE; |
147 | } else if ( disk.left(7) == "/dev/hd" ) | 147 | } else if ( disk.left(7) == "/dev/hd" ) |
148 | humanname = tr("Hard Disk") + " " + disk.mid(7); | 148 | humanname = tr("Hard Disk") + " " + disk; |
149 | else if ( disk.left(7) == "/dev/sd" ) | 149 | else if ( disk.left(7) == "/dev/sd" ) |
150 | humanname = tr("SCSI Hard Disk") + " " + disk.mid(7); | 150 | humanname = tr("SCSI Hard Disk") + " " + disk; |
151 | else if ( disk.left(14) == "/dev/mtdblock6" ) //openzaurus ramfs | 151 | else if ( disk.left(14) == "/dev/mtdblock6" ) //openzaurus ramfs |
152 | humanname = tr("Internal Memory"); | 152 | humanname = tr("Internal Memory"); |
153 | else if ( disk == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) | 153 | else if ( disk == "/dev/mtdblock1" || humanname == "/dev/mtdblock/1" ) |
154 | humanname = tr("Internal Storage"); | 154 | humanname = tr("Internal Storage"); |
155 | else if ( disk.left(14) == "/dev/mtdblock/" ) | 155 | else if ( disk.left(14) == "/dev/mtdblock/" ) |
156 | humanname = tr("Internal Storage") + " " + disk.mid(14); | 156 | humanname = tr("Internal Storage") + " " + disk; |
157 | else if ( disk.left(13) == "/dev/mtdblock" ) | 157 | else if ( disk.left(13) == "/dev/mtdblock" ) |
158 | humanname = tr("Internal Storage") + " " + disk.mid(13); | 158 | humanname = tr("Internal Storage") + " " + disk; |
159 | else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs | 159 | else if ( disk.left(5) == "tmpfs" ) //ipaqs /mnt/ramfs |
160 | humanname = tr("Internal Memory"); | 160 | humanname = tr("Internal Memory"); |
161 | FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts ); | 161 | FileSystem *fs = new FileSystem( disk, *fsit, humanname, removable, opts ); |