Ticket #7278: DateTimeView.cpp.patch

File DateTimeView.cpp.patch, 1.4 KB (added by taos, 9 years ago)

patch providing localization strings for clock setting

  • time/DateTimeView.cpp

     
    1616#include "TimeWindow.h"
    1717
    1818#include <CalendarView.h>
     19#include <Catalog.h>
    1920#include <CheckBox.h>
    2021#include <DateTime.h>
    2122#include <Entry.h>
     
    3233
    3334#include <syscalls.h>
    3435
     36#undef B_TRANSLATE_CONTEXT
     37#define B_TRANSLATE_CONTEXT "Time"
    3538
     39
    3640using BPrivate::BCalendarView;
    3741using BPrivate::BDateTime;
    3842using BPrivate::B_LOCAL_TIME;
     
    243247
    244248    // clock radio buttons
    245249    bounds.top = fClock->Frame().bottom + 10.0;
    246     BStringView* text = new BStringView(bounds, "clockSetTo", "Clock set to:");
     250    BStringView* text = new BStringView(bounds, "clockSetTo", B_TRANSLATE("Clock set to:"));
    247251    AddChild(text);
    248252    text->ResizeToPreferred();
    249253
    250254    bounds.left += 10.0f;
    251255    bounds.top = text->Frame().bottom;
    252     fLocalTime = new BRadioButton(bounds, "localTime", "Local time",
     256    fLocalTime = new BRadioButton(bounds, "localTime", B_TRANSLATE("Local time"),
    253257        new BMessage(kRTCUpdate));
    254258    AddChild(fLocalTime);
    255259    fLocalTime->ResizeToPreferred();
    256260
    257261    bounds.left = fLocalTime->Frame().right + 10.0;
    258     fGmtTime = new BRadioButton(bounds, "greenwichMeanTime", "GMT",
     262    fGmtTime = new BRadioButton(bounds, "greenwichMeanTime", B_TRANSLATE("GMT"B_TRANSLATE),
    259263        new BMessage(kRTCUpdate));
    260264    AddChild(fGmtTime);
    261265    fGmtTime->ResizeToPreferred();