From 4ca1c2476eb67ec1200ede3fdeb43b389f9a8280 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 2 Dec 2014 15:30:08 +0100 Subject: [PATCH] Default decorator: localize about box. --- src/kits/interface/DecorInfo.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/DecorInfo.cpp b/src/kits/interface/DecorInfo.cpp index ee4821b1be..883eb8f09a 100644 --- a/src/kits/interface/DecorInfo.cpp +++ b/src/kits/interface/DecorInfo.cpp @@ -15,10 +15,14 @@ #include #include #include +#include #include +#define B_TRANSLATION_CONTEXT "Default decorator about box" + + namespace BPrivate { @@ -251,16 +255,14 @@ DecorInfo::_Init(bool isUpdate) BEntry entry; if (fPath == "Default") { - if (isUpdate){ + if (isUpdate) { // should never happen fprintf(stderr, "DecorInfo::_Init(true)\tBUG BUG updating default" "decorator!?!?!\n"); return; } - fName = "Default"; fAuthors = "DarkWyrm, Stephan Aßmus, Clemens Zeidler, Ingo Weinhold"; - fShortDescription = "Default Haiku window decorator."; fLongDescription = fShortDescription; fLicenseURL = "http://"; fLicenseName = "MIT"; @@ -268,6 +270,12 @@ DecorInfo::_Init(bool isUpdate) fVersion = 0.5; fInitStatus = B_OK; + fName = gSystemCatalog.GetString(B_TRANSLATE_MARK("Default"), + B_TRANSLATION_CONTEXT); + fShortDescription = gSystemCatalog.GetString(B_TRANSLATE_MARK( + "Default Haiku window decorator."), + B_TRANSLATION_CONTEXT); + // The following is to get the modification time of the app_server // and, thusly, the Default decorator... // If you can make it more simple, please do!