Ticket #7293: commit-4c1e34b.diff

File commit-4c1e34b.diff, 3.4 KB (added by przemub, 11 years ago)
  • src/apps/drivesetup/CreateParamsPanel.cpp

    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,  
    269269            == B_OK) {
    270270        BMessage* message = new BMessage(MSG_PARTITION_TYPE);
    271271        message->AddString("type", supportedType);
    272         BMenuItem* item = new BMenuItem(supportedType, message);
     272        BMenuItem* item = new BMenuItem(B_TRANSLATE_CONTEXT(supportedType,
     273            "MainWindow"), message);
    273274        fTypePopUpMenu->AddItem(item);
    274275
    275276        if (strcmp(supportedType, kPartitionTypeBFS) == 0)
  • src/apps/drivesetup/DriveSetup.rdef

    diff --git a/src/apps/drivesetup/DriveSetup.rdef b/src/apps/drivesetup/DriveSetup.rdef
    index a0c4ee7..3243393 100644
    a b resource app_version {  
    1515    internal = 0,
    1616
    1717    short_info = "DriveSetup",
    18     long_info  = "DriveSetup ©2002-2009 Haiku"
     18    long_info  = "DriveSetup ©2002-2012 Haiku"
    1919};
    2020
    2121resource app_flags B_SINGLE_LAUNCH;
  • src/apps/drivesetup/MainWindow.cpp

    diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp
    index f97a869..ff7c49c 100644
    a b  
    11/*
    2  * Copyright 2002-2010 Haiku Inc. All rights reserved.
     2 * Copyright 2002-2012 Haiku Inc. All rights reserved.
    33 * Distributed under the terms of the MIT license.
    44 *
    55 * Authors:
    MainWindow::_UpdateMenus(BDiskDevice* disk,  
    565565            message->AddInt32("parent id", parentID);
    566566            message->AddString("disk system", diskSystem.PrettyName());
    567567
    568             BString label = diskSystem.PrettyName();
     568            BString label = B_TRANSLATE(diskSystem.PrettyName());
    569569            label << B_UTF8_ELLIPSIS;
    570570            BMenuItem* item = new BMenuItem(label.String(), message);
    571571
  • src/apps/drivesetup/PartitionList.cpp

    diff --git a/src/apps/drivesetup/PartitionList.cpp b/src/apps/drivesetup/PartitionList.cpp
    index 898e356..c600a30 100644
    a b PartitionListRow::PartitionListRow(BPartition* partition)  
    219219    // File system & volume name
    220220
    221221    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);
    223224        SetField(new BStringField(partition->ContentName()), kVolumeNameColumn);
    224225    } else if (partition->IsDevice()) {
    225226        if (partition->Name() != NULL && partition->Name()[0])
    PartitionListRow::PartitionListRow(BPartition* partition)  
    232233        SetField(new BStringField(kUnavailableString), kVolumeNameColumn);
    233234    } else {
    234235        BString partitionType(partition->Type());
     236        BString fsname = B_TRANSLATE_CONTEXT(partition->ContentType(), "MainWindow");
    235237        if (!partitionType.IsEmpty()) {
    236238            partitionType.Prepend("(");
    237239            partitionType.Append(")");
    238             SetField(new BStringField(partitionType), kFilesystemColumn);
     240            SetField(new BStringField(fsname), kFilesystemColumn);
    239241        } else
    240242            SetField(new BStringField(kUnavailableString), kFilesystemColumn);
    241243