[haiku-commits] r42954 - haiku/trunk/src/apps/bsnow

  • From: pulkomandy@xxxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 29 Oct 2011 17:20:26 +0200 (CEST)

Author: pulkomandy
Date: 2011-10-29 17:20:26 +0200 (Sat, 29 Oct 2011)
New Revision: 42954
Changeset: https://dev.haiku-os.org/changeset/42954
Ticket: https://dev.haiku-os.org/ticket/7528

Modified:
   haiku/trunk/src/apps/bsnow/Jamfile
   haiku/trunk/src/apps/bsnow/SnowView.h
Log:
Patch by humdinger: localize BSnow. (#7528)


Modified: haiku/trunk/src/apps/bsnow/Jamfile
===================================================================
--- haiku/trunk/src/apps/bsnow/Jamfile  2011-10-29 14:52:17 UTC (rev 42953)
+++ haiku/trunk/src/apps/bsnow/Jamfile  2011-10-29 15:20:26 UTC (rev 42954)
@@ -6,6 +6,12 @@
        Flakes.cpp
        SnowView.cpp
        SnowApp.cpp
-       : be $(TARGET_LIBSUPC++)
+       : be $(TARGET_LIBSUPC++) $(HAIKU_LOCALE_LIBS)
        : BSnow.rdef
        ;
+
+DoCatalogs BSnow :
+    x-vnd.mmu_man.BSnow
+    :
+       SnowView.h
+       ;

Modified: haiku/trunk/src/apps/bsnow/SnowView.h
===================================================================
--- haiku/trunk/src/apps/bsnow/SnowView.h       2011-10-29 14:52:17 UTC (rev 
42953)
+++ haiku/trunk/src/apps/bsnow/SnowView.h       2011-10-29 15:20:26 UTC (rev 
42954)
@@ -3,11 +3,12 @@
 
 
 #include <Bitmap.h>
+#include <Catalog.h>
 #include <Dragger.h>
 #include <List.h>
+#include <MessageRunner.h>
 #include <OS.h>
 #include <View.h>
-#include <MessageRunner.h>
 
 #include "Flakes.h"
 
@@ -26,10 +27,13 @@
 #define FALLEN_HEIGHT 30
 #define INVALIDATOR_THREAD_NAME "You're Neo? I'm the Snow Maker!"
 
-#define MSG_DRAG_ME "Drag me on your desktop..."
-#define MSG_CLICK_ME "Click me to remove BSnow..."
+#undef B_TRANSLATE_CONTEXT
+#define B_TRANSLATE_CONTEXT "BSnow"
 
+#define MSG_DRAG_ME B_TRANSLATE("Drag me on your desktop...")
+#define MSG_CLICK_ME B_TRANSLATE("Click me to remove BSnow...")
 
+
 typedef struct flake {
        BPoint pos;
        BPoint opos;


Other related posts:

  • » [haiku-commits] r42954 - haiku/trunk/src/apps/bsnow - pulkomandy