From 9717d515fd1a6a32da383ba501d4eb175ebf4c0f Mon Sep 17 00:00:00 2001 From: Joachim Seemer Date: Sat, 26 Feb 2011 12:45:45 +0000 Subject: [PATCH] More localization for Time preflet, with a patch by taos. Thanks! Fixes #7278. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40700 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/time/DateTimeView.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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();