diff --git a/src/preferences/time/DateTimeView.cpp b/src/preferences/time/DateTimeView.cpp index 22044336b6..8bf9c8ef8c 100644 --- a/src/preferences/time/DateTimeView.cpp +++ b/src/preferences/time/DateTimeView.cpp @@ -16,6 +16,7 @@ #include "TimeWindow.h" #include +#include #include #include #include @@ -32,6 +33,9 @@ #include +#undef B_TRANSLATE_CONTEXT +#define B_TRANSLATE_CONTEXT "Time" + using BPrivate::BCalendarView; using BPrivate::BDateTime; @@ -243,20 +247,21 @@ DateTimeView::_InitView() // clock radio buttons bounds.top = fClock->Frame().bottom + 10.0; - BStringView* text = new BStringView(bounds, "clockSetTo", "Clock set to:"); + BStringView* text = new BStringView(bounds, "clockSetTo", + B_TRANSLATE("Clock set to:")); AddChild(text); text->ResizeToPreferred(); bounds.left += 10.0f; bounds.top = text->Frame().bottom; - fLocalTime = new BRadioButton(bounds, "localTime", "Local time", - new BMessage(kRTCUpdate)); + fLocalTime = new BRadioButton(bounds, "localTime", + B_TRANSLATE("Local time"), new BMessage(kRTCUpdate)); AddChild(fLocalTime); fLocalTime->ResizeToPreferred(); bounds.left = fLocalTime->Frame().right + 10.0; - fGmtTime = new BRadioButton(bounds, "greenwichMeanTime", "GMT", - new BMessage(kRTCUpdate)); + fGmtTime = new BRadioButton(bounds, "greenwichMeanTime", + B_TRANSLATE("GMT"), new BMessage(kRTCUpdate)); AddChild(fGmtTime); fGmtTime->ResizeToPreferred();