commit 4c1e34bb98f94020f86db95b5dc67a9918637e2c
Author: Przemysław Buczkowski <przemub@yahoo.pl>
Date: Fri Dec 21 15:41:42 2012 +0100
DriveSetup: localization of file systems names
Fixes #7293.
Signed-off-by: Przemysław Buczkowski <przemub@yahoo.pl>
diff --git a/src/apps/drivesetup/CreateParamsPanel.cpp b/src/apps/drivesetup/CreateParamsPanel.cpp
index deeee12..f3ffda3 100644
a
|
b
|
CreateParamsPanel::_CreateViewControls(BPartition* parent, off_t offset,
|
269 | 269 | == B_OK) { |
270 | 270 | BMessage* message = new BMessage(MSG_PARTITION_TYPE); |
271 | 271 | message->AddString("type", supportedType); |
272 | | BMenuItem* item = new BMenuItem(supportedType, message); |
| 272 | BMenuItem* item = new BMenuItem(B_TRANSLATE_CONTEXT(supportedType, |
| 273 | "MainWindow"), message); |
273 | 274 | fTypePopUpMenu->AddItem(item); |
274 | 275 | |
275 | 276 | if (strcmp(supportedType, kPartitionTypeBFS) == 0) |
diff --git a/src/apps/drivesetup/DriveSetup.rdef b/src/apps/drivesetup/DriveSetup.rdef
index a0c4ee7..3243393 100644
a
|
b
|
resource app_version {
|
15 | 15 | internal = 0, |
16 | 16 | |
17 | 17 | short_info = "DriveSetup", |
18 | | long_info = "DriveSetup ©2002-2009 Haiku" |
| 18 | long_info = "DriveSetup ©2002-2012 Haiku" |
19 | 19 | }; |
20 | 20 | |
21 | 21 | resource app_flags B_SINGLE_LAUNCH; |
diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp
index f97a869..ff7c49c 100644
a
|
b
|
|
1 | 1 | /* |
2 | | * Copyright 2002-2010 Haiku Inc. All rights reserved. |
| 2 | * Copyright 2002-2012 Haiku Inc. All rights reserved. |
3 | 3 | * Distributed under the terms of the MIT license. |
4 | 4 | * |
5 | 5 | * Authors: |
… |
… |
MainWindow::_UpdateMenus(BDiskDevice* disk,
|
565 | 565 | message->AddInt32("parent id", parentID); |
566 | 566 | message->AddString("disk system", diskSystem.PrettyName()); |
567 | 567 | |
568 | | BString label = diskSystem.PrettyName(); |
| 568 | BString label = B_TRANSLATE(diskSystem.PrettyName()); |
569 | 569 | label << B_UTF8_ELLIPSIS; |
570 | 570 | BMenuItem* item = new BMenuItem(label.String(), message); |
571 | 571 | |
diff --git a/src/apps/drivesetup/PartitionList.cpp b/src/apps/drivesetup/PartitionList.cpp
index 898e356..c600a30 100644
a
|
b
|
PartitionListRow::PartitionListRow(BPartition* partition)
|
219 | 219 | // File system & volume name |
220 | 220 | |
221 | 221 | if (partition->ContainsFileSystem()) { |
222 | | SetField(new BStringField(partition->ContentType()), kFilesystemColumn); |
| 222 | BString fsname = B_TRANSLATE_CONTEXT(partition->ContentType(), "MainWindow"); |
| 223 | SetField(new BStringField(fsname), kFilesystemColumn); |
223 | 224 | SetField(new BStringField(partition->ContentName()), kVolumeNameColumn); |
224 | 225 | } else if (partition->IsDevice()) { |
225 | 226 | if (partition->Name() != NULL && partition->Name()[0]) |
… |
… |
PartitionListRow::PartitionListRow(BPartition* partition)
|
232 | 233 | SetField(new BStringField(kUnavailableString), kVolumeNameColumn); |
233 | 234 | } else { |
234 | 235 | BString partitionType(partition->Type()); |
| 236 | BString fsname = B_TRANSLATE_CONTEXT(partition->ContentType(), "MainWindow"); |
235 | 237 | if (!partitionType.IsEmpty()) { |
236 | 238 | partitionType.Prepend("("); |
237 | 239 | partitionType.Append(")"); |
238 | | SetField(new BStringField(partitionType), kFilesystemColumn); |
| 240 | SetField(new BStringField(fsname), kFilesystemColumn); |
239 | 241 | } else |
240 | 242 | SetField(new BStringField(kUnavailableString), kFilesystemColumn); |
241 | 243 | |