Ticket #7642: time.patch

File time.patch, 2.9 KB (added by mt, 8 years ago)
  • src/preferences/time/NetworkTimeView.cpp

     
    1414
    1515#include <Alert.h>
    1616#include <Button.h>
     17#include <Catalog.h>
    1718#include <CheckBox.h>
    1819#include <File.h>
    1920#include <FindDirectory.h>
     
    2627#include "TimeMessages.h"
    2728
    2829
     30#undef B_TRANSLATE_CONTEXT
     31#define B_TRANSLATE_CONTEXT "Time"
     32
     33
    2934Settings::Settings()
    3035    :
    3136    fMessage(kMsgNetworkTimeSettings)
     
    320325
    321326            BMessenger* messenger = new BMessenger(this);
    322327            update_time(fSettings, messenger, &fUpdateThread);
    323             fSynchronizeButton->SetLabel("Stop");
     328            fSynchronizeButton->SetLabel(B_TRANSLATE("Stop"));
    324329            fSynchronizeButton->Message()->what = kMsgStopSynchronization;
    325330            break;
    326331        }
     
    391396{
    392397    fServerTextControl = new BTextControl(NULL, NULL, NULL);
    393398
    394     fAddButton = new BButton("add", "Add", new BMessage(kMsgAddServer));
    395     fRemoveButton = new BButton("remove", "Remove",
     399    fAddButton = new BButton("add", B_TRANSLATE("Add"),
     400        new BMessage(kMsgAddServer));
     401    fRemoveButton = new BButton("remove", B_TRANSLATE("Remove"),
    396402        new BMessage(kMsgRemoveServer));
    397     fResetButton = new BButton("reset", "Reset",
     403    fResetButton = new BButton("reset", B_TRANSLATE("Reset"),
    398404        new BMessage(kMsgResetServerList));
    399405
    400406    fServerListView = new BListView("serverList");
     
    405411    _UpdateServerList();
    406412   
    407413    fTryAllServersCheckBox = new BCheckBox("tryAllServers",
    408         "Try all servers", new BMessage(kMsgTryAllServers));
     414        B_TRANSLATE("Try all servers"), new BMessage(kMsgTryAllServers));
    409415    fTryAllServersCheckBox->SetValue(fSettings.GetTryAllServers());
    410416   
    411417    fSynchronizeAtBootCheckBox = new BCheckBox("autoUpdate",
    412         "Synchronize at boot", new BMessage(kMsgSynchronizeAtBoot));
     418        B_TRANSLATE("Synchronize at boot"),
     419        new BMessage(kMsgSynchronizeAtBoot));
    413420    fSynchronizeAtBootCheckBox->SetValue(fSettings.GetSynchronizeAtBoot());
    414     fSynchronizeButton = new BButton("update", "Synchronize now",
    415         new BMessage(kMsgSynchronize));
     421    fSynchronizeButton = new BButton("update",
     422        B_TRANSLATE("Synchronize now"), new BMessage(kMsgSynchronize));
    416423    fSynchronizeButton->SetExplicitAlignment(
    417424        BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM));
    418425   
     
    460467NetworkTimeView::_DoneSynchronizing()
    461468{
    462469    fUpdateThread = -1;
    463     fSynchronizeButton->SetLabel("Synchronize");
     470    fSynchronizeButton->SetLabel(B_TRANSLATE("Synchronize"));
    464471    fSynchronizeButton->Message()->what = kMsgSynchronize;
    465472}
    466473
  • src/preferences/time/Jamfile

     
    3838    x-vnd.Haiku-Time
    3939    :
    4040    DateTimeView.cpp
     41    NetworkTimeView.cpp
    4142    Time.cpp
    4243    TimeWindow.cpp
    4344    ZoneView.cpp