Apply a nice patch from Taos, thanks!
Localize the mail server and preferences. Get rid of MDRLanguage.h. The Japanese translation is attached to #7689. Please give a notice when it is in the translation system and the ticket can be closed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,51 +0,0 @@
|
|||||||
#ifndef ZOIDBERG_MDR_LANGUAGE_H
|
|
||||||
#define ZOIDBERG_MDR_LANGUAGE_H
|
|
||||||
/*
|
|
||||||
** Mail Daemon Replacement interim International Language Macros.
|
|
||||||
**
|
|
||||||
** Copyright 2003 Dr. Zoidberg Enterprises. All rights reserved.
|
|
||||||
**
|
|
||||||
** The input for the language macro system is the MDR_DIALECT define which is
|
|
||||||
** set by the makefile (you compile a version for the desired language, it
|
|
||||||
** can't change at run-time using this temporary internationalization system).
|
|
||||||
** MDR_DIALECT was set to 0 for English-USA, 1 for Japanese, and other numbers
|
|
||||||
** for other language dialects. If it's not present, we use English-USA.
|
|
||||||
**
|
|
||||||
** $Log: MDRLanguage.h,v $
|
|
||||||
** Revision 1.1 2004/09/20 22:31:42 nwhitehorn
|
|
||||||
** Imported MDR. Some code still not entirely functional -- I haven't been able to figure out how to detect SSL, so IMAP and POP have it turned off. PPP auto-detect is also not functional at the moment. Other than that, it seems to work beautifully. Packaging will come later.
|
|
||||||
**
|
|
||||||
** Revision 1.3 2003/02/05 22:43:17 agmsmith
|
|
||||||
** Default language (judging by the use of "color" in the bemail
|
|
||||||
** preferences) changed to be English-USA.
|
|
||||||
**
|
|
||||||
** Revision 1.2 2003/01/30 23:52:12 agmsmith
|
|
||||||
** Initial simple language system macros done.
|
|
||||||
**
|
|
||||||
** Revision 1.1 2003/01/30 23:26:07 agmsmith
|
|
||||||
** Starting to add a simplistic internationalization system for "Koki",
|
|
||||||
** who wants to use BeMail in Japanese. It should later be replaced by
|
|
||||||
** a more comprehensive system, but at least this one will mark out the
|
|
||||||
** spots where translated text is needed.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MDR_DIALECT_ENGLISH_USA 0
|
|
||||||
#define MDR_DIALECT_JAPANESE 1
|
|
||||||
|
|
||||||
#ifndef MDR_DIALECT
|
|
||||||
#define MDR_DIALECT MDR_DIALECT_ENGLISH_USA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (MDR_DIALECT == MDR_DIALECT_ENGLISH_USA)
|
|
||||||
#define MDR_DIALECT_CHOICE(EnglishUSA,Japanese) EnglishUSA
|
|
||||||
#define MDR_COUNTRY "United States of America"
|
|
||||||
#define MDR_LANGUAGE "English"
|
|
||||||
#elif (MDR_DIALECT == MDR_DIALECT_JAPANESE)
|
|
||||||
#define MDR_DIALECT_CHOICE(EnglishUSA,Japanese) Japanese
|
|
||||||
#define MDR_COUNTRY "Japan"
|
|
||||||
#define MDR_LANGUAGE "Japanese"
|
|
||||||
#else
|
|
||||||
#error "Unrecognized value specified for MDR_DIALECT macro constant."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* ZOIDBERG_MDR_LANGUAGE_H */
|
|
||||||
@@ -28,8 +28,6 @@
|
|||||||
|
|
||||||
#include <MailSettings.h>
|
#include <MailSettings.h>
|
||||||
|
|
||||||
#include <MDRLanguage.h>
|
|
||||||
|
|
||||||
#include "FilterConfigView.h"
|
#include "FilterConfigView.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
#include <Bitmap.h>
|
#include <Bitmap.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <Deskbar.h>
|
#include <Deskbar.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
@@ -36,10 +37,14 @@
|
|||||||
#include <E-mail.h>
|
#include <E-mail.h>
|
||||||
#include <MailDaemon.h>
|
#include <MailDaemon.h>
|
||||||
#include <MailSettings.h>
|
#include <MailSettings.h>
|
||||||
#include <MDRLanguage.h>
|
|
||||||
|
|
||||||
#include "DeskbarViewIcons.h"
|
#include "DeskbarViewIcons.h"
|
||||||
|
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "DeskbarView"
|
||||||
|
|
||||||
|
|
||||||
const char* kTrackerSignature = "application/x-vnd.Be-TRAK";
|
const char* kTrackerSignature = "application/x-vnd.Be-TRAK";
|
||||||
|
|
||||||
|
|
||||||
@@ -462,9 +467,8 @@ DeskbarView::_BuildMenu()
|
|||||||
BPopUpMenu* menu = new BPopUpMenu(B_EMPTY_STRING, false, false);
|
BPopUpMenu* menu = new BPopUpMenu(B_EMPTY_STRING, false, false);
|
||||||
menu->SetFont(be_plain_font);
|
menu->SetFont(be_plain_font);
|
||||||
|
|
||||||
menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE (
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Create new message"
|
||||||
"Create new message", "N) 新規メッセージ作成")B_UTF8_ELLIPSIS,
|
B_UTF8_ELLIPSIS), new BMessage(MD_OPEN_NEW)));
|
||||||
new BMessage(MD_OPEN_NEW)));
|
|
||||||
menu->AddSeparatorItem();
|
menu->AddSeparatorItem();
|
||||||
|
|
||||||
BMessenger tracker(kTrackerSignature);
|
BMessenger tracker(kTrackerSignature);
|
||||||
@@ -530,9 +534,7 @@ DeskbarView::_BuildMenu()
|
|||||||
|
|
||||||
// Hack for R5's buggy Query Notification
|
// Hack for R5's buggy Query Notification
|
||||||
#ifdef HAIKU_TARGET_PLATFORM_BEOS
|
#ifdef HAIKU_TARGET_PLATFORM_BEOS
|
||||||
menu->AddItem(new BMenuItem(
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Refresh New Mail Count"),
|
||||||
MDR_DIALECT_CHOICE("Refresh New Mail Count",
|
|
||||||
"未読メールカウントを更新"),
|
|
||||||
new BMessage(MD_REFRESH_QUERY)));
|
new BMessage(MD_REFRESH_QUERY)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -540,10 +542,10 @@ DeskbarView::_BuildMenu()
|
|||||||
|
|
||||||
if (fNewMessages > 0) {
|
if (fNewMessages > 0) {
|
||||||
BString string;
|
BString string;
|
||||||
MDR_DIALECT_CHOICE(
|
if (fNewMessages != 1)
|
||||||
string << fNewMessages << " new message"
|
string << fNewMessages << B_TRANSLATE(" new messages");
|
||||||
<< (fNewMessages != 1 ? "s" : B_EMPTY_STRING),
|
else
|
||||||
string << fNewMessages << " 通の未読メッセージ");
|
string << fNewMessages << B_TRANSLATE(" new message");
|
||||||
|
|
||||||
_GetNewQueryRef(ref);
|
_GetNewQueryRef(ref);
|
||||||
|
|
||||||
@@ -554,16 +556,16 @@ DeskbarView::_BuildMenu()
|
|||||||
navMenu->SetNavDir(&ref);
|
navMenu->SetNavDir(&ref);
|
||||||
|
|
||||||
menu->AddItem(item);
|
menu->AddItem(item);
|
||||||
} else {
|
}
|
||||||
menu->AddItem(item = new BMenuItem(
|
else {
|
||||||
MDR_DIALECT_CHOICE ("No new messages","未読メッセージなし"), NULL));
|
menu->AddItem(item = new BMenuItem(B_TRANSLATE("No new messages"),
|
||||||
|
NULL));
|
||||||
item->SetEnabled(false);
|
item->SetEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
BMailAccounts accounts;
|
BMailAccounts accounts;
|
||||||
if (modifiers() & B_SHIFT_KEY) {
|
if (modifiers() & B_SHIFT_KEY) {
|
||||||
BMenu *accountMenu = new BMenu(
|
BMenu *accountMenu = new BMenu(B_TRANSLATE("Check for mails only"));
|
||||||
MDR_DIALECT_CHOICE ("Check for mails only","R) メール受信のみ"));
|
|
||||||
BFont font;
|
BFont font;
|
||||||
menu->GetFont(&font);
|
menu->GetFont(&font);
|
||||||
accountMenu->SetFont(&font);
|
accountMenu->SetFont(&font);
|
||||||
@@ -577,7 +579,7 @@ DeskbarView::_BuildMenu()
|
|||||||
accountMenu->AddItem(new BMenuItem(account->Name(), message));
|
accountMenu->AddItem(new BMenuItem(account->Name(), message));
|
||||||
}
|
}
|
||||||
if (accounts.CountAccounts() == 0) {
|
if (accounts.CountAccounts() == 0) {
|
||||||
item = new BMenuItem("<no accounts>", NULL);
|
item = new BMenuItem(B_TRANSLATE("<no accounts>"), NULL);
|
||||||
item->SetEnabled(false);
|
item->SetEnabled(false);
|
||||||
accountMenu->AddItem(item);
|
accountMenu->AddItem(item);
|
||||||
}
|
}
|
||||||
@@ -586,27 +588,23 @@ DeskbarView::_BuildMenu()
|
|||||||
new BMessage(MD_CHECK_FOR_MAILS)));
|
new BMessage(MD_CHECK_FOR_MAILS)));
|
||||||
|
|
||||||
// Not used:
|
// Not used:
|
||||||
// menu->AddItem(new BMenuItem(MDR_DIALECT_CHOICE (
|
// menu->AddItem(new BMenuItem(B_TRANSLATE("Check For Mails Only"),
|
||||||
// "Check For Mails Only","メール受信のみ"), new BMessage(MD_CHECK_FOR_MAILS)));
|
// new BMessage(MD_CHECK_FOR_MAILS)));
|
||||||
menu->AddItem(new BMenuItem(
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Send pending mails"),
|
||||||
MDR_DIALECT_CHOICE ("Send pending mails", "M) 保留メールを送信"),
|
new BMessage(MD_SEND_MAILS)));
|
||||||
new BMessage(MD_SEND_MAILS)));
|
|
||||||
} else {
|
} else {
|
||||||
menu->AddItem(item = new BMenuItem(
|
menu->AddItem(item = new BMenuItem(B_TRANSLATE("Check for mail now"),
|
||||||
MDR_DIALECT_CHOICE ("Check for mail now", "C) メールチェック"),
|
|
||||||
new BMessage(MD_CHECK_SEND_NOW)));
|
new BMessage(MD_CHECK_SEND_NOW)));
|
||||||
if (accounts.CountAccounts() == 0)
|
if (accounts.CountAccounts() == 0)
|
||||||
item->SetEnabled(false);
|
item->SetEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
menu->AddSeparatorItem();
|
menu->AddSeparatorItem();
|
||||||
menu->AddItem(new BMenuItem(
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Preferences" B_UTF8_ELLIPSIS),
|
||||||
MDR_DIALECT_CHOICE ("Preferences", "P) メール環境設定") B_UTF8_ELLIPSIS,
|
|
||||||
new BMessage(MD_OPEN_PREFS)));
|
new BMessage(MD_OPEN_PREFS)));
|
||||||
|
|
||||||
if (modifiers() & B_SHIFT_KEY) {
|
if (modifiers() & B_SHIFT_KEY) {
|
||||||
menu->AddItem(new BMenuItem(
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Shutdown mail services"),
|
||||||
MDR_DIALECT_CHOICE ("Shutdown mail services", "Q) 終了"),
|
|
||||||
new BMessage(B_QUIT_REQUESTED)));
|
new BMessage(B_QUIT_REQUESTED)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ UsePrivateHeaders shared ;
|
|||||||
|
|
||||||
SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ;
|
SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ;
|
||||||
|
|
||||||
AddResources mail_daemon : mail_daemon.rdef DeskbarViewIcons.rdef ;
|
|
||||||
|
|
||||||
Server mail_daemon :
|
Server mail_daemon :
|
||||||
DeskbarView.cpp
|
DeskbarView.cpp
|
||||||
ErrorLogWindow.cpp
|
ErrorLogWindow.cpp
|
||||||
@@ -22,13 +20,22 @@ Server mail_daemon :
|
|||||||
main.cpp
|
main.cpp
|
||||||
Notifier.cpp
|
Notifier.cpp
|
||||||
StatusWindow.cpp
|
StatusWindow.cpp
|
||||||
|
: be libmail.so tracker $(HAIKU_LOCALE_LIBS) $(TARGET_LIBSTDC++)
|
||||||
|
$(TARGET_NETWORK_LIBS)
|
||||||
|
: mail_daemon.rdef DeskbarViewIcons.rdef
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkAgainst mail_daemon : be libmail.so tracker $(TARGET_LIBSTDC++) $(TARGET_NETWORK_LIBS) ;
|
|
||||||
|
|
||||||
Package haiku-maildaemon-cvs :
|
Package haiku-maildaemon-cvs :
|
||||||
mail_daemon :
|
mail_daemon :
|
||||||
boot beos system servers ;
|
boot beos system servers ;
|
||||||
|
|
||||||
Packages haiku-maildaemon-cvs :
|
Packages haiku-maildaemon-cvs :
|
||||||
README LICENSE HISTORY install.sh ;
|
README LICENSE HISTORY install.sh ;
|
||||||
|
|
||||||
|
DoCatalogs mail_daemon :
|
||||||
|
x-vnd.Haiku-mail_daemon
|
||||||
|
:
|
||||||
|
DeskbarView.cpp
|
||||||
|
MailDaemon.cpp
|
||||||
|
StatusWindow.cpp
|
||||||
|
;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <Beep.h>
|
#include <Beep.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <Deskbar.h>
|
#include <Deskbar.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
@@ -28,7 +29,10 @@
|
|||||||
#include <MailDaemon.h>
|
#include <MailDaemon.h>
|
||||||
#include <MailMessage.h>
|
#include <MailMessage.h>
|
||||||
#include <MailSettings.h>
|
#include <MailSettings.h>
|
||||||
#include <MDRLanguage.h>
|
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "MailDaemon"
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -159,20 +163,15 @@ MailDaemonApp::ReadyToRun()
|
|||||||
}
|
}
|
||||||
|
|
||||||
BString string;
|
BString string;
|
||||||
MDR_DIALECT_CHOICE(
|
if (fNewMessages > 0) {
|
||||||
if (fNewMessages > 0)
|
|
||||||
string << fNewMessages;
|
|
||||||
else
|
|
||||||
string << "No";
|
|
||||||
if (fNewMessages != 1)
|
if (fNewMessages != 1)
|
||||||
string << " new messages.";
|
string << fNewMessages << B_TRANSLATE(" new messages.");
|
||||||
else
|
else
|
||||||
string << " new message.";,
|
string << fNewMessages << B_TRANSLATE(" new message.");
|
||||||
if (fNewMessages > 0)
|
}
|
||||||
string << fNewMessages << " 通の未読メッセージがあります ";
|
else
|
||||||
else
|
string = B_TRANSLATE("No new messages");
|
||||||
string << "未読メッセージはありません";
|
|
||||||
);
|
|
||||||
fCentralBeep = false;
|
fCentralBeep = false;
|
||||||
fMailStatusWindow->SetDefaultMessage(string);
|
fMailStatusWindow->SetDefaultMessage(string);
|
||||||
|
|
||||||
@@ -473,9 +472,8 @@ MailDaemonApp::MessageReceived(BMessage* msg)
|
|||||||
|
|
||||||
if (fAlertString != B_EMPTY_STRING) {
|
if (fAlertString != B_EMPTY_STRING) {
|
||||||
fAlertString.Truncate(fAlertString.Length() - 1);
|
fAlertString.Truncate(fAlertString.Length() - 1);
|
||||||
BAlert* alert = new BAlert(MDR_DIALECT_CHOICE("New Messages",
|
BAlert* alert = new BAlert(B_TRANSLATE("New Messages"),
|
||||||
"新着メッセージ"), fAlertString.String(), "OK", NULL, NULL,
|
fAlertString.String(), "OK", NULL, NULL, B_WIDTH_AS_USUAL);
|
||||||
B_WIDTH_AS_USUAL);
|
|
||||||
alert->SetFeel(B_NORMAL_WINDOW_FEEL);
|
alert->SetFeel(B_NORMAL_WINDOW_FEEL);
|
||||||
alert->Go(NULL);
|
alert->Go(NULL);
|
||||||
fAlertString = B_EMPTY_STRING;
|
fAlertString = B_EMPTY_STRING;
|
||||||
@@ -519,17 +517,13 @@ MailDaemonApp::MessageReceived(BMessage* msg)
|
|||||||
case 'numg':
|
case 'numg':
|
||||||
{
|
{
|
||||||
int32 numMessages = msg->FindInt32("num_messages");
|
int32 numMessages = msg->FindInt32("num_messages");
|
||||||
MDR_DIALECT_CHOICE(
|
if (numMessages > 1)
|
||||||
fAlertString << numMessages << " new message";
|
fAlertString << numMessages << B_TRANSLATE(" new messages");
|
||||||
if (numMessages > 1)
|
else
|
||||||
fAlertString << 's';
|
fAlertString << numMessages << B_TRANSLATE(" new message");
|
||||||
|
|
||||||
fAlertString << " for " << msg->FindString("name")
|
fAlertString << B_TRANSLATE(" for ") << msg->FindString("name")
|
||||||
<< '\n';,
|
<< '\n';
|
||||||
|
|
||||||
fAlertString << msg->FindString("name") << "より\n"
|
|
||||||
<< numMessages << " 通のメッセージが届きました ";
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -548,21 +542,14 @@ MailDaemonApp::MessageReceived(BMessage* msg)
|
|||||||
|
|
||||||
BString string;
|
BString string;
|
||||||
|
|
||||||
MDR_DIALECT_CHOICE(
|
if (fNewMessages > 0) {
|
||||||
if (fNewMessages > 0)
|
|
||||||
string << fNewMessages;
|
|
||||||
else
|
|
||||||
string << "No";
|
|
||||||
if (fNewMessages != 1)
|
if (fNewMessages != 1)
|
||||||
string << " new messages.";
|
string << fNewMessages << B_TRANSLATE(" new messages.");
|
||||||
else
|
else
|
||||||
string << " new message.";,
|
string << fNewMessages << B_TRANSLATE(" new message.");
|
||||||
|
}
|
||||||
if (fNewMessages > 0)
|
else
|
||||||
string << fNewMessages << " 通の未読メッセージがあります";
|
string << B_TRANSLATE("No new messages.");
|
||||||
else
|
|
||||||
string << "未読メッセージはありません";
|
|
||||||
);
|
|
||||||
|
|
||||||
fMailStatusWindow->SetDefaultMessage(string.String());
|
fMailStatusWindow->SetDefaultMessage(string.String());
|
||||||
break;
|
break;
|
||||||
@@ -715,7 +702,7 @@ MailDaemonApp::SendPendingMessages(BMessage* msg)
|
|||||||
BVolume volume;
|
BVolume volume;
|
||||||
|
|
||||||
map<int32, send_mails_info> messages;
|
map<int32, send_mails_info> messages;
|
||||||
|
|
||||||
|
|
||||||
int32 account = -1;
|
int32 account = -1;
|
||||||
if (msg->FindInt32("account", &account) != B_OK)
|
if (msg->FindInt32("account", &account) != B_OK)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2003 Dr. Zoidberg Enterprises. All rights reserved.
|
* Copyright 2001-2003 Dr. Zoidberg Enterprises. All rights reserved.
|
||||||
* Copyright 2004-2009, Haiku Inc. All rights reserved.
|
* Copyright 2004-2011, Haiku Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
@@ -13,11 +13,10 @@
|
|||||||
|
|
||||||
#include "MailSettings.h"
|
#include "MailSettings.h"
|
||||||
|
|
||||||
#include <MDRLanguage.h>
|
|
||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
#include <E-mail.h>
|
#include <E-mail.h>
|
||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
@@ -34,6 +33,10 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "StatusWindow"
|
||||||
|
|
||||||
|
|
||||||
static BLocker sLock;
|
static BLocker sLock;
|
||||||
|
|
||||||
|
|
||||||
@@ -50,7 +53,7 @@ MailStatusWindow::MailStatusWindow(BRect rect, const char *name,
|
|||||||
frame.InsetBy(90.0 + 5.0, 5.0);
|
frame.InsetBy(90.0 + 5.0, 5.0);
|
||||||
|
|
||||||
fCheckNowButton = new BButton(frame, "check_mail",
|
fCheckNowButton = new BButton(frame, "check_mail",
|
||||||
MDR_DIALECT_CHOICE ("Check mail now","メールチェック"),
|
B_TRANSLATE("Check mail now"),
|
||||||
new BMessage('mbth'), B_FOLLOW_LEFT_RIGHT,
|
new BMessage('mbth'), B_FOLLOW_LEFT_RIGHT,
|
||||||
B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE | B_NAVIGABLE);
|
B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE | B_NAVIGABLE);
|
||||||
fCheckNowButton->ResizeToPreferred();
|
fCheckNowButton->ResizeToPreferred();
|
||||||
@@ -62,9 +65,9 @@ MailStatusWindow::MailStatusWindow(BRect rect, const char *name,
|
|||||||
frame.InsetBy(-90.0, 0.0);
|
frame.InsetBy(-90.0, 0.0);
|
||||||
|
|
||||||
fMessageView = new BStringView(frame, "message_view", "",
|
fMessageView = new BStringView(frame, "message_view", "",
|
||||||
B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE);
|
B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE);
|
||||||
fMessageView->SetAlignment(B_ALIGN_CENTER);
|
fMessageView->SetAlignment(B_ALIGN_CENTER);
|
||||||
fMessageView->SetText(MDR_DIALECT_CHOICE ("No new messages.","未読メッセージはありません"));
|
fMessageView->SetText(B_TRANSLATE("No new messages."));
|
||||||
float framewidth = frame.Width();
|
float framewidth = frame.Width();
|
||||||
fMessageView->ResizeToPreferred();
|
fMessageView->ResizeToPreferred();
|
||||||
fMessageView->ResizeTo(framewidth, fMessageView->Bounds().Height());
|
fMessageView->ResizeTo(framewidth, fMessageView->Bounds().Height());
|
||||||
|
|||||||
Reference in New Issue
Block a user