Localize some forgotten strings spotted by diver.

Fix #6375.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39748 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2010-12-06 18:18:56 +00:00
parent f27dcfe07b
commit d70708127f
2 changed files with 17 additions and 10 deletions

View File

@ -73,10 +73,10 @@ AppearancePrefView::AppearancePrefView(const char* name,
fTerminalMessenger(messenger)
{
const char* kColorTable[] = {
PREF_TEXT_FORE_COLOR,
PREF_TEXT_BACK_COLOR,
PREF_SELECT_FORE_COLOR,
PREF_SELECT_BACK_COLOR,
B_TRANSLATE(PREF_TEXT_FORE_COLOR),
B_TRANSLATE(PREF_TEXT_BACK_COLOR),
B_TRANSLATE(PREF_SELECT_FORE_COLOR),
B_TRANSLATE(PREF_SELECT_BACK_COLOR),
NULL
};
@ -213,7 +213,7 @@ AppearancePrefView::AttachedToWindow()
_SetCurrentColorSchema(fColorSchemaField);
bool enableCustomColors =
!strcmp(fColorSchemaField->Menu()->FindMarked()->Label(),
"Custom");
gCustomSchema.name);
_EnableCustomColors(enableCustomColors);
}

View File

@ -5,11 +5,18 @@
#include "Colors.h"
#include <Catalog.h>
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "Terminal colors schema"
const rgb_color kBlack= { 0, 0, 0, 255 };
const rgb_color kWhite = { 255, 255, 255, 255 };
const struct color_schema kBlackOnWhite = {
"Black on White",
B_TRANSLATE("Black on White"),
kBlack,
kWhite,
kWhite,
@ -20,7 +27,7 @@ const struct color_schema kBlackOnWhite = {
const struct color_schema kWhiteOnBlack = {
"White on Black",
B_TRANSLATE("White on Black"),
kWhite,
kBlack,
kBlack,
@ -31,7 +38,7 @@ const struct color_schema kWhiteOnBlack = {
struct color_schema gCustomSchema = {
"Custom"
B_TRANSLATE("Custom")
};
const color_schema* gPredefinedSchemas[] = {