Ticket #7874: DecorInfo.diff
File DecorInfo.diff, 2.6 KB (added by , 13 years ago) |
---|
-
src/kits/interface/DecorInfo.cpp
19 19 20 20 #include <DecoratorPrivate.h> 21 21 22 #include <Catalog.h> 23 #include <LocaleBackend.h> 24 using BPrivate::gLocaleBackend; 25 using BPrivate::LocaleBackend; 22 26 27 #undef B_TRANSLATE_CONTEXT 28 #define B_TRANSLATE_CONTEXT "DecorInfo" 29 30 #undef B_TRANSLATE 31 #define B_TRANSLATE(str) \ 32 gLocaleBackend->GetString(B_TRANSLATE_MARK(str), "DecorInfo") 33 23 34 namespace BPrivate { 24 35 25 36 … … 258 269 "decorator!?!?!\n"); 259 270 return; 260 271 } 272 // we need to translate some strings, and in order to do so, we need 273 // to use the LocaleBackend to reach liblocale.so 274 if (gLocaleBackend == NULL) 275 LocaleBackend::LoadBackend(); 261 276 262 fName = "Default";277 fName = B_TRANSLATE_MARK("Default"); 263 278 fAuthors = "DarkWyrm, Stephan Aßmus, Clemens Zeidler, Ingo Weinhold"; 264 fShortDescription = "Default Haiku window decorator.";279 fShortDescription = B_TRANSLATE_MARK("Default Haiku window decorator."); 265 280 fLongDescription = fShortDescription; 266 281 fLicenseURL = "http://"; 267 282 fLicenseName = "MIT"; -
src/kits/locale/Jamfile
66 66 SEARCH on [ FGristFiles AboutMenuItem.cpp ] += [ FDirName $(HAIKU_TOP) src kits shared ] ; 67 67 SEARCH on [ FGristFiles AboutWindow.cpp ] += [ FDirName $(HAIKU_TOP) src kits shared ] ; 68 68 SEARCH on [ FGristFiles ColorControl.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 69 SEARCH on [ FGristFiles StringForSize.cpp ] += [ FDirName $(HAIKU_TOP) src kits shared ] ; 70 SEARCH on [ FGristFiles TextView.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 69 SEARCH on [ FGristFiles DecorInfo.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 71 70 SEARCH on [ FGristFiles Dragger.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 72 71 SEARCH on [ FGristFiles Menu.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 73 72 SEARCH on [ FGristFiles PrintJob.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 73 SEARCH on [ FGristFiles StringForSize.cpp ] += [ FDirName $(HAIKU_TOP) src kits shared ] ; 74 SEARCH on [ FGristFiles TextView.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 74 75 SEARCH on [ FGristFiles ZombieReplicantView.cpp ] += [ FDirName $(HAIKU_TOP) src kits interface ] ; 75 76 76 77 DoCatalogs liblocale.so … … 79 80 AboutMenuItem.cpp 80 81 AboutWindow.cpp 81 82 ColorControl.cpp 83 DecorInfo.cpp 82 84 Dragger.cpp 83 85 Menu.cpp 84 86 PrintJob.cpp