diff --git a/src/apps/webwatch/Jamfile b/src/apps/webwatch/Jamfile
index 6f453e80e7..eb3b8656cb 100644
--- a/src/apps/webwatch/Jamfile
+++ b/src/apps/webwatch/Jamfile
@@ -10,7 +10,12 @@ SetSubDirSupportedPlatformsBeOSCompatible ;
Application WebWatch :
WatchApp.cpp
WatchView.cpp
- : be $(TARGET_LIBSUPC++)
+ : be $(HAIKU_LOCALE_LIBS) $(TARGET_LIBSUPC++)
: WebWatch.rdef
;
+DoCatalogs WebWatch :
+ x-vnd.mahlzeit.webwatch
+ :
+ WatchView.cpp
+;
diff --git a/src/apps/webwatch/WatchApp.cpp b/src/apps/webwatch/WatchApp.cpp
index fad4681b3b..30a7027528 100644
--- a/src/apps/webwatch/WatchApp.cpp
+++ b/src/apps/webwatch/WatchApp.cpp
@@ -26,14 +26,14 @@
#include "WatchApp.h"
#include "WatchView.h"
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
BView* instantiate_deskbar_item()
{
return new WatchView;
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
WatchApp::WatchApp() : BApplication(APP_SIGNATURE)
{
@@ -54,7 +54,7 @@ WatchApp::WatchApp() : BApplication(APP_SIGNATURE)
PostMessage(B_QUIT_REQUESTED);
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
int main()
{
@@ -63,4 +63,4 @@ int main()
return 0;
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
diff --git a/src/apps/webwatch/WatchView.cpp b/src/apps/webwatch/WatchView.cpp
index 072aa80ee5..56642d572e 100644
--- a/src/apps/webwatch/WatchView.cpp
+++ b/src/apps/webwatch/WatchView.cpp
@@ -30,17 +30,21 @@
#include "WatchApp.h"
#include "WatchView.h"
+#undef B_TRANSLATE_CONTEXT
+#define B_TRANSLATE_CONTEXT "WatchView"
+
+
const rgb_color COLOR_FOREGROUND = { 0, 0, 0 };
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
WatchView::WatchView()
- : BView(BRect(0, 0, 1, 1), 0, 0, 0)
+ :
+ BView(BRect(0, 0, 1, 1), 0, 0, 0)
{
- // Do nothing.
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
WatchView::WatchView(BMessage* message)
: BView(
@@ -62,7 +66,7 @@ WatchView::WatchView(BMessage* message)
SetViewColor(B_TRANSPARENT_COLOR);
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
__declspec(dllexport) WatchView* WatchView::Instantiate(BMessage* archive)
{
@@ -74,7 +78,7 @@ __declspec(dllexport) WatchView* WatchView::Instantiate(BMessage* archive)
return NULL;
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
status_t WatchView::Archive(BMessage* archive, bool deep) const
{
@@ -86,7 +90,7 @@ status_t WatchView::Archive(BMessage* archive, bool deep) const
return B_OK;
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
void WatchView::Draw(BRect updateRect)
{
@@ -112,17 +116,18 @@ void WatchView::Draw(BRect updateRect)
DrawString(string, BPoint(x, y));
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
void WatchView::MouseDown(BPoint point)
{
- BPopUpMenu* menu = new BPopUpMenu("WatchView", false, false);
+ BPopUpMenu* menu = new BPopUpMenu(B_TRANSLATE("WatchView"), false, false);
menu->AddItem(new BMenuItem(
- "About" B_UTF8_ELLIPSIS, new BMessage(B_ABOUT_REQUESTED)));
+ B_TRANSLATE("About" B_UTF8_ELLIPSIS),
+ new BMessage(B_ABOUT_REQUESTED)));
menu->AddItem(new BMenuItem(
- "Quit", new BMessage(B_QUIT_REQUESTED)));
+ B_TRANSLATE("Quit"), new BMessage(B_QUIT_REQUESTED)));
menu->SetTargetForItems(this);
@@ -132,7 +137,7 @@ void WatchView::MouseDown(BPoint point)
delete menu;
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
void WatchView::MessageReceived(BMessage* msg)
{
@@ -144,21 +149,20 @@ void WatchView::MessageReceived(BMessage* msg)
}
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
void WatchView::OnAboutRequested()
{
- (new BAlert(
- NULL,
- "WebWatch " VERSION
+ BString text = B_TRANSLATE("WebWatch %1"
"\nAn internet time clock for your Deskbar\n\n"
"Created by Matthijs Hollemans\n"
"mahlzeit@users.sourceforge.net\n\n"
- "Thanks to Jason Parks for his help.\n",
- "OK"))->Go(NULL);
+ "Thanks to Jason Parks for his help.\n");
+ text.ReplaceFirst("%1", VERSION);
+ (new BAlert(NULL, text.String(), B_TRANSLATE("OK")))->Go(NULL);
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
void WatchView::OnQuitRequested()
{
@@ -171,7 +175,7 @@ void WatchView::OnQuitRequested()
deskbar.RemoveItem(DESKBAR_ITEM_NAME);
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
void WatchView::Pulse()
{
@@ -183,7 +187,7 @@ void WatchView::Pulse()
}
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
int32 WatchView::GetInternetTime()
{
@@ -196,4 +200,4 @@ int32 WatchView::GetInternetTime()
return (int32) (((real_time_clock() + 3600) % 86400) / 86.4);
}
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
diff --git a/src/apps/webwatch/WatchView.h b/src/apps/webwatch/WatchView.h
index 425b027331..f6d0e88ce5 100644
--- a/src/apps/webwatch/WatchView.h
+++ b/src/apps/webwatch/WatchView.h
@@ -23,6 +23,8 @@
#ifndef WATCHVIEW_H
#define WATCHVIEW_H
+#include Released on Thursday, 13 February 2003 Released on Thursday, 13 February 2003 WebWatch is an unofficial port of Swatch's Internet Time utility for BeOS
-R5 or higher that runs inside the Deskbar. WebWatch is an unofficial port of Swatch's Internet Time utility for BeOS
+R5 or higher that runs inside the Deskbar. Someone at Swatch (you know, the company that makes the watches) came up
+ Someone at Swatch (you know, the company that makes the watches) came up
with an idea for a universal time format that eliminates time zones and
geographical borders. The idea is very simple: time is no longer measured in
hours, minutes, and seconds, but in "beats." A single day consists of 1000
-beats, so each beat corresponds to 1 minute and 26.4 seconds.WebWatch 1.5
+WebWatch 1.5
-
-Created by Matthijs
-Hollemans
+Created by Matthijs
+HollemansWhat is it
+What is it
-
This "Internet Time" is the same all over the world, because it is measured +
This "Internet Time" is the same all over the world, because it is measured relatively to something called the Biel Mean Time (BMT), a new meridian that lies in Switzerland. A day in Internet Time begins at midnight BMT, or @000 Swatch Beats, 12 noon is equivalent to @500 beats, and so on. So if it's @812 -at my place, it's also 812 beats at yours and everyone else's.
+at my place, it's also 812 beats at yours and everyone else's. -Please check out the Swatch website -for more information.
+Please check out the Swatch website +for more information.
-Simply double-click the WebWatch icon to install WebWatch into the Deskbar.
-To get rid of it, right-click WebWatch in the Deskbar and select
-the Quit option from the pop-up menu.
Simply double-click the WebWatch icon to install WebWatch into the Deskbar.
+To get rid of it, right-click WebWatch in the Deskbar and select
+the Quit option from the pop-up menu.
This version of WebWatch is open source and may be distributed under the +
This version of WebWatch is open source and may be distributed under the terms of the MIT license. Note that the author is in no way affiliated with -Swatch, and fully respects their copyrights and trademarks.
+Swatch, and fully respects their copyrights and trademarks. -Copyright (c) 1999-2003 Matthijs Hollemans
+Copyright © 1999-2003 Matthijs Hollemans
-Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), +
Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions:
+Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE.
+DEALINGS IN THE SOFTWARE. -Version 1.5 (Thursday, 13 February 2003)
+Version 1.5 (Thursday, 13 February 2003)
-Version 1.4 (Saturday, 9 December 2000)
+Version 1.4 (Saturday, 9 December 2000)
-Version 1.3 (Sunday, 26 November 2000)
+Version 1.3 (Sunday, 26 November 2000)
-Version 1.2 (Tuesday, 26 September 2000)
+Version 1.2 (Tuesday, 26 September 2000)
-Version 1.1 (Tuesday, 28 March 2000)
+Version 1.1 (Tuesday, 28 March 2000)
-Version 1.0 (Saturday, 14 August 1999)
+Version 1.0 (Saturday, 14 August 1999)
-