Default decorator: localize about box.
This commit is contained in:
@@ -15,10 +15,14 @@
|
|||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <Resources.h>
|
#include <Resources.h>
|
||||||
|
#include <SystemCatalog.h>
|
||||||
|
|
||||||
#include <DecoratorPrivate.h>
|
#include <DecoratorPrivate.h>
|
||||||
|
|
||||||
|
|
||||||
|
#define B_TRANSLATION_CONTEXT "Default decorator about box"
|
||||||
|
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
|
|
||||||
|
|
||||||
@@ -251,16 +255,14 @@ DecorInfo::_Init(bool isUpdate)
|
|||||||
BEntry entry;
|
BEntry entry;
|
||||||
|
|
||||||
if (fPath == "Default") {
|
if (fPath == "Default") {
|
||||||
if (isUpdate){
|
if (isUpdate) {
|
||||||
// should never happen
|
// should never happen
|
||||||
fprintf(stderr, "DecorInfo::_Init(true)\tBUG BUG updating default"
|
fprintf(stderr, "DecorInfo::_Init(true)\tBUG BUG updating default"
|
||||||
"decorator!?!?!\n");
|
"decorator!?!?!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fName = "Default";
|
|
||||||
fAuthors = "DarkWyrm, Stephan Aßmus, Clemens Zeidler, Ingo Weinhold";
|
fAuthors = "DarkWyrm, Stephan Aßmus, Clemens Zeidler, Ingo Weinhold";
|
||||||
fShortDescription = "Default Haiku window decorator.";
|
|
||||||
fLongDescription = fShortDescription;
|
fLongDescription = fShortDescription;
|
||||||
fLicenseURL = "http://";
|
fLicenseURL = "http://";
|
||||||
fLicenseName = "MIT";
|
fLicenseName = "MIT";
|
||||||
@@ -268,6 +270,12 @@ DecorInfo::_Init(bool isUpdate)
|
|||||||
fVersion = 0.5;
|
fVersion = 0.5;
|
||||||
fInitStatus = B_OK;
|
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
|
// The following is to get the modification time of the app_server
|
||||||
// and, thusly, the Default decorator...
|
// and, thusly, the Default decorator...
|
||||||
// If you can make it more simple, please do!
|
// If you can make it more simple, please do!
|
||||||
|
|||||||
Reference in New Issue
Block a user