Ticket #7237: powerstatus-localization-update.patch

File powerstatus-localization-update.patch, 1.1 KB (added by Karvjorm, 9 years ago)

An updated PowerStatus localization update

  • src/apps/powerstatus/PowerStatus.cpp

     
    3737
    3838const char* kSignature = "application/x-vnd.Haiku-PowerStatus";
    3939const char* kDeskbarSignature = "application/x-vnd.Be-TSKB";
    40 const char* kDeskbarItemName = "PowerStatus";
     40const char* kDeskbarItemName = B_TRANSLATE_MARK("PowerStatus");
    4141
    4242
    4343status_t
  • src/apps/powerstatus/PowerStatusView.cpp

     
    4242
    4343
    4444extern "C" _EXPORT BView *instantiate_deskbar_item(void);
     45extern const char* kDeskbarItemName;
    4546
    4647const uint32 kMsgToggleLabel = 'tglb';
    4748const uint32 kMsgToggleTime = 'tgtm';
     
    621622    view->GetFont(&font);
    622623    font.SetSize(18);
    623624    font.SetFace(B_BOLD_FACE);
    624     view->SetFontAndColor(0, 11, &font);
     625    view->SetFontAndColor(0, strlen(kDeskbarItemName)-1, &font);
    625626
    626627    alert->Go();
    627628}