[haiku-commits] haiku: hrev43716 - src/preferences/3drendering

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 3 Feb 2012 19:10:40 +0100 (CET)

hrev43716 adds 1 changeset to branch 'master'
old head: 608a156784f3c31eaba3347277d09c659dd1fee9
new head: aaa6172bc75e093792db92ad3f2c9c23d3c5f7dc

----------------------------------------------------------------------------

aaa6172: 3DRender prefernces: Wrap text in B_TRANSLATE

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev43716
Commit:      aaa6172bc75e093792db92ad3f2c9c23d3c5f7dc
URL:         http://cgit.haiku-os.org/haiku/commit/?id=aaa6172
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Fri Feb  3 12:05:00 2012 UTC

----------------------------------------------------------------------------

1 files changed, 13 insertions(+), 6 deletions(-)
src/preferences/3drendering/OpenGLView.cpp |   19 +++++++++++++------

----------------------------------------------------------------------------

diff --git a/src/preferences/3drendering/OpenGLView.cpp 
b/src/preferences/3drendering/OpenGLView.cpp
index 3b34504..baa004a 100644
--- a/src/preferences/3drendering/OpenGLView.cpp
+++ b/src/preferences/3drendering/OpenGLView.cpp
@@ -11,8 +11,10 @@
 
 #include <stdio.h>
 
+#include <Catalog.h>
 #include <GLView.h>
 #include <LayoutBuilder.h>
+#include <Locale.h>
 #include <MenuField.h>
 #include <SpaceLayoutItem.h>
 #include <TabView.h>
@@ -22,6 +24,10 @@
 #include "InfoView.h"
 
 
+#undef B_TRANSLATE_CONTEXT
+#define B_TRANSLATE_CONTEXT "OpenGLView"
+
+
 OpenGLView::OpenGLView()
        :
        BGroupView("OpenGLView", B_VERTICAL)
@@ -34,20 +40,21 @@ OpenGLView::OpenGLView()
 
        glView->LockGL();
 
-    BMenu* menu = new BMenu("Automatic");
+    BMenu* menu = new BMenu(B_TRANSLATE("Automatic"));
     menu->SetRadioMode(true);
     menu->SetLabelFromMarked(true);
-    menu->AddItem(new BMenuItem("Automatic",
+    menu->AddItem(new BMenuItem(B_TRANSLATE("Automatic"),
         new BMessage(MENU_AUTO_MESSAGE)));
     menu->AddSeparatorItem();
-    menu->AddItem(new BMenuItem("Force Software Rasterizer",
+    menu->AddItem(new BMenuItem(B_TRANSLATE("Software Rasterizer"),
         new BMessage(MENU_SWRAST_MESSAGE)));
-    menu->AddItem(new BMenuItem("Force Gallium Software Pipe",
+    menu->AddItem(new BMenuItem(B_TRANSLATE("Gallium Software Pipe"),
         new BMessage(MENU_SWPIPE_MESSAGE)));
-    menu->AddItem(new BMenuItem("Force Gallium LLVM Pipe",
+    menu->AddItem(new BMenuItem(B_TRANSLATE("Gallium LLVM Pipe"),
         new BMessage(MENU_SWLLVM_MESSAGE)));
     BMenuField* menuField = new BMenuField("renderer",
-        "3D Rendering Engine:", menu);
+        B_TRANSLATE("3D Rendering Engine:"), menu);
+       // TODO:  Set current Renderer
        menuField->SetEnabled(false);
 
        BTabView *tabView = new BTabView("tab view", B_WIDTH_FROM_LABEL);


Other related posts:

  • » [haiku-commits] haiku: hrev43716 - src/preferences/3drendering - kallisti5