[haiku-commits] r40700 - haiku/trunk/src/preferences/time
- From: humdingerb@xxxxxxxxxxxxxx
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Sat, 26 Feb 2011 13:45:45 +0100 (CET)
Author: humdinger
Date: 2011-02-26 13:45:45 +0100 (Sat, 26 Feb 2011)
New Revision: 40700
Changeset: http://dev.haiku-os.org/changeset/40700
Ticket: http://dev.haiku-os.org/ticket/7278
Modified:
haiku/trunk/src/preferences/time/DateTimeView.cpp
Log:
More localization for Time preflet, with a patch by taos. Thanks! Fixes #7278.
Modified: haiku/trunk/src/preferences/time/DateTimeView.cpp
===================================================================
--- haiku/trunk/src/preferences/time/DateTimeView.cpp 2011-02-26 10:45:03 UTC
(rev 40699)
+++ haiku/trunk/src/preferences/time/DateTimeView.cpp 2011-02-26 12:45:45 UTC
(rev 40700)
@@ -16,6 +16,7 @@
#include "TimeWindow.h"
#include <CalendarView.h>
+#include <Catalog.h>
#include <CheckBox.h>
#include <DateTime.h>
#include <Entry.h>
@@ -32,7 +33,10 @@
#include <syscalls.h>
+#undef B_TRANSLATE_CONTEXT
+#define B_TRANSLATE_CONTEXT "Time"
+
using BPrivate::BCalendarView;
using BPrivate::BDateTime;
using BPrivate::B_LOCAL_TIME;
@@ -243,20 +247,21 @@
// 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();
Other related posts:
- » [haiku-commits] r40700 - haiku/trunk/src/preferences/time - humdingerb