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
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
#include "TimeWindow.h"
|
#include "TimeWindow.h"
|
||||||
|
|
||||||
#include <CalendarView.h>
|
#include <CalendarView.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <CheckBox.h>
|
#include <CheckBox.h>
|
||||||
#include <DateTime.h>
|
#include <DateTime.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
@@ -32,6 +33,9 @@
|
|||||||
|
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "Time"
|
||||||
|
|
||||||
|
|
||||||
using BPrivate::BCalendarView;
|
using BPrivate::BCalendarView;
|
||||||
using BPrivate::BDateTime;
|
using BPrivate::BDateTime;
|
||||||
@@ -243,20 +247,21 @@ DateTimeView::_InitView()
|
|||||||
|
|
||||||
// clock radio buttons
|
// clock radio buttons
|
||||||
bounds.top = fClock->Frame().bottom + 10.0;
|
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);
|
AddChild(text);
|
||||||
text->ResizeToPreferred();
|
text->ResizeToPreferred();
|
||||||
|
|
||||||
bounds.left += 10.0f;
|
bounds.left += 10.0f;
|
||||||
bounds.top = text->Frame().bottom;
|
bounds.top = text->Frame().bottom;
|
||||||
fLocalTime = new BRadioButton(bounds, "localTime", "Local time",
|
fLocalTime = new BRadioButton(bounds, "localTime",
|
||||||
new BMessage(kRTCUpdate));
|
B_TRANSLATE("Local time"), new BMessage(kRTCUpdate));
|
||||||
AddChild(fLocalTime);
|
AddChild(fLocalTime);
|
||||||
fLocalTime->ResizeToPreferred();
|
fLocalTime->ResizeToPreferred();
|
||||||
|
|
||||||
bounds.left = fLocalTime->Frame().right + 10.0;
|
bounds.left = fLocalTime->Frame().right + 10.0;
|
||||||
fGmtTime = new BRadioButton(bounds, "greenwichMeanTime", "GMT",
|
fGmtTime = new BRadioButton(bounds, "greenwichMeanTime",
|
||||||
new BMessage(kRTCUpdate));
|
B_TRANSLATE("GMT"), new BMessage(kRTCUpdate));
|
||||||
AddChild(fGmtTime);
|
AddChild(fGmtTime);
|
||||||
fGmtTime->ResizeToPreferred();
|
fGmtTime->ResizeToPreferred();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user