Activate locale settings in Deskbar & Time preflet.
* Both Deskbar and Time are using BCalendarView, which in turn uses DateTime, which uses strftime() to generate month/day names. Of course, this doesn't work as intended unless the locale has been initialized.
This commit is contained in:
parent
c4389ee8b2
commit
e1aba79288
@ -34,6 +34,7 @@ All rights reserved.
|
||||
*/
|
||||
|
||||
#include <Debug.h>
|
||||
#include <locale.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@ -80,6 +81,7 @@ static const color_space kIconFormat = B_RGBA32;
|
||||
int
|
||||
main()
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
TBarApp app;
|
||||
app.Run();
|
||||
|
||||
@ -441,7 +443,7 @@ TBarApp::MessageReceived(BMessage* message)
|
||||
BarView()->HideDeskbar(fSettings.autoHide);
|
||||
fBarWindow->Unlock();
|
||||
break;
|
||||
|
||||
|
||||
case kTrackerFirst:
|
||||
fSettings.trackerAlwaysFirst = !fSettings.trackerAlwaysFirst;
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "Time.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -87,6 +88,8 @@ main(int argc, char** argv)
|
||||
errorString);
|
||||
}
|
||||
} else {
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
TimeApplication app;
|
||||
setuid(0);
|
||||
app.Run();
|
||||
|
Loading…
Reference in New Issue
Block a user