Various build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -105,7 +105,7 @@ DataTranslationsApplication::_NoTranslatorError(const char* name)
|
|||||||
BString text(B_TRANSLATE("The item '"));
|
BString text(B_TRANSLATE("The item '"));
|
||||||
text << B_TRANSLATE("%name' does not appear to be a Translator and will"
|
text << B_TRANSLATE("%name' does not appear to be a Translator and will"
|
||||||
" not be installed.");
|
" not be installed.");
|
||||||
text.ReplaceAll(%name, name);
|
text.ReplaceAll("%name", name);
|
||||||
BAlert* alert = new BAlert("", text.String(), B_TRANSLATE("Ok"));
|
BAlert* alert = new BAlert("", text.String(), B_TRANSLATE("Ok"));
|
||||||
alert->Go();
|
alert->Go();
|
||||||
}
|
}
|
||||||
@@ -153,10 +153,10 @@ DataTranslationsApplication::RefsReceived(BMessage* message)
|
|||||||
|
|
||||||
if (target.Contains(ref.name)) {
|
if (target.Contains(ref.name)) {
|
||||||
BString string(B_TRANSLATE("An item named '"));
|
BString string(B_TRANSLATE("An item named '"));
|
||||||
string << B_TRANSLATE("%ref.name' already exists in the "
|
string << B_TRANSLATE("%name already exists in the "
|
||||||
"Translators folder! Shall the existing translator be "
|
"Translators folder! Shall the existing translator be "
|
||||||
"overwritten?");
|
"overwritten?");
|
||||||
string.ReplaceAll(%ref.name, ref.name);
|
string.ReplaceAll("%name", ref.name);
|
||||||
|
|
||||||
BAlert* alert = new BAlert(B_TRANSLATE("DataTranslations - Note"),
|
BAlert* alert = new BAlert(B_TRANSLATE("DataTranslations - Note"),
|
||||||
string.String(), B_TRANSLATE("Cancel"),
|
string.String(), B_TRANSLATE("Cancel"),
|
||||||
|
|||||||
@@ -224,14 +224,14 @@ DataTranslationsWindow::_ShowInfoAlert(int32 id)
|
|||||||
|
|
||||||
BString message;
|
BString message;
|
||||||
message << B_TRANSLATE("Name: %name \nVersion: ");
|
message << B_TRANSLATE("Name: %name \nVersion: ");
|
||||||
message.ReplaceAll(%name, name);
|
message.ReplaceAll("%name", name);
|
||||||
|
|
||||||
// Convert the version number into a readable format
|
// Convert the version number into a readable format
|
||||||
message << (int)B_TRANSLATION_MAJOR_VERSION(version)
|
message << (int)B_TRANSLATION_MAJOR_VERSION(version)
|
||||||
<< '.' << (int)B_TRANSLATION_MINOR_VERSION(version)
|
<< '.' << (int)B_TRANSLATION_MINOR_VERSION(version)
|
||||||
<< '.' << (int)B_TRANSLATION_REVISION_VERSION(version);
|
<< '.' << (int)B_TRANSLATION_REVISION_VERSION(version);
|
||||||
message << B_TRANSLATE("\nInfo: %info\n\nPath:\n") << path.Path() << "\n";
|
message << B_TRANSLATE("\nInfo: %info\n\nPath:\n") << path.Path() << "\n";
|
||||||
message.ReplaceAll(%info, info);
|
message.ReplaceAll("%info", info);
|
||||||
|
|
||||||
BAlert* alert = new BAlert(B_TRANSLATE("info"), message.String(),
|
BAlert* alert = new BAlert(B_TRANSLATE("info"), message.String(),
|
||||||
B_TRANSLATE("OK"));
|
B_TRANSLATE("OK"));
|
||||||
|
|||||||
@@ -15,6 +15,10 @@
|
|||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
|
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "AutoConfigWindow"
|
||||||
|
|
||||||
|
|
||||||
AutoConfigWindow::AutoConfigWindow(BRect rect, BWindow *parent)
|
AutoConfigWindow::AutoConfigWindow(BRect rect, BWindow *parent)
|
||||||
: BWindow(rect, B_TRANSLATE("Create new account"), B_TITLED_WINDOW_LOOK,
|
: BWindow(rect, B_TRANSLATE("Create new account"), B_TITLED_WINDOW_LOOK,
|
||||||
B_MODAL_APP_WINDOW_FEEL,
|
B_MODAL_APP_WINDOW_FEEL,
|
||||||
@@ -38,7 +42,7 @@ AutoConfigWindow::AutoConfigWindow(BRect rect, BWindow *parent)
|
|||||||
buttonRect.top = buttonRect.bottom - buttonHeight;
|
buttonRect.top = buttonRect.bottom - buttonHeight;
|
||||||
buttonRect.left = buttonRect.right - 2 * buttonWidth - 5;
|
buttonRect.left = buttonRect.right - 2 * buttonWidth - 5;
|
||||||
buttonRect.right = buttonRect.left + buttonWidth;
|
buttonRect.right = buttonRect.left + buttonWidth;
|
||||||
fBackButton = new BButton(buttonRect, "back", B_TRANSALATE("Back"),
|
fBackButton = new BButton(buttonRect, "back", B_TRANSLATE("Back"),
|
||||||
new BMessage(kBackMsg));
|
new BMessage(kBackMsg));
|
||||||
fBackButton->SetEnabled(false);
|
fBackButton->SetEnabled(false);
|
||||||
fRootView->AddChild(fBackButton);
|
fRootView->AddChild(fBackButton);
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ DNSQuery::GetMXRecords(BString serverName, BObjectList<mx_record>* mxList,
|
|||||||
_ReadQueryHeader(receiBuffer, &receiHeader);
|
_ReadQueryHeader(receiBuffer, &receiHeader);
|
||||||
PRINT(B_TRANSLATE("Package contains :"));
|
PRINT(B_TRANSLATE("Package contains :"));
|
||||||
PRINT(B_TRANSLATE("%d Questions, "), receiHeader.q_count);
|
PRINT(B_TRANSLATE("%d Questions, "), receiHeader.q_count);
|
||||||
PRINT(B_TRANSLATE("%d Answers,) ", receiHeader.ans_count);
|
PRINT(B_TRANSLATE("%d Answers, "), receiHeader.ans_count);
|
||||||
PRINT(B_TRANSLATE("%d Authoritative Servers, "), receiHeader.auth_count);
|
PRINT(B_TRANSLATE("%d Authoritative Servers, "), receiHeader.auth_count);
|
||||||
PRINT(B_TRANSLATE("%d Additional records\n"), receiHeader.add_count);
|
PRINT(B_TRANSLATE("%d Additional records\n"), receiHeader.add_count);
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ UsePrivateHeaders shared ;
|
|||||||
local sources =
|
local sources =
|
||||||
Account.cpp
|
Account.cpp
|
||||||
AutoConfig.cpp
|
AutoConfig.cpp
|
||||||
AutoConfigWindow.cpp
|
|
||||||
AutoConfigView.cpp
|
AutoConfigView.cpp
|
||||||
|
AutoConfigWindow.cpp
|
||||||
CenterContainer.cpp
|
CenterContainer.cpp
|
||||||
ConfigViews.cpp
|
ConfigViews.cpp
|
||||||
ConfigWindow.cpp
|
ConfigWindow.cpp
|
||||||
@@ -54,7 +54,7 @@ DoCatalogs E-mail :
|
|||||||
x-vnd.Haiku-Mail
|
x-vnd.Haiku-Mail
|
||||||
:
|
:
|
||||||
Account.cpp
|
Account.cpp
|
||||||
AutoConfiView.cpp
|
AutoConfigView.cpp
|
||||||
ConfigViews.cpp
|
ConfigViews.cpp
|
||||||
ConfigWindow.cpp
|
ConfigWindow.cpp
|
||||||
DNSQuery.cpp
|
DNSQuery.cpp
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ GeneralView::GeneralView(SettingsHost* host)
|
|||||||
fTimeout = new BTextControl(B_TRANSLATE("Hide notifications from screen"
|
fTimeout = new BTextControl(B_TRANSLATE("Hide notifications from screen"
|
||||||
" after"), NULL, new BMessage(kSettingChanged));
|
" after"), NULL, new BMessage(kSettingChanged));
|
||||||
BStringView* displayTimeLabel = new BStringView("dt_label",
|
BStringView* displayTimeLabel = new BStringView("dt_label",
|
||||||
B_TRANSLATE("seconds of inactivity");
|
B_TRANSLATE("seconds of inactivity"));
|
||||||
|
|
||||||
// Default position
|
// Default position
|
||||||
// TODO: Here will come a screen representation with the four corners clickable
|
// TODO: Here will come a screen representation with the four corners clickable
|
||||||
@@ -178,7 +178,7 @@ GeneralView::MessageReceived(BMessage* msg)
|
|||||||
"Notifications"), B_TRANSLATE("Cannot enable"
|
"Notifications"), B_TRANSLATE("Cannot enable"
|
||||||
" notifications because the server cannot be "
|
" notifications because the server cannot be "
|
||||||
"found.\nThis means your InfoPopper installation"
|
"found.\nThis means your InfoPopper installation"
|
||||||
" was not successfully completed.")),
|
" was not successfully completed."),
|
||||||
B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL,
|
B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL,
|
||||||
B_STOP_ALERT);
|
B_STOP_ALERT);
|
||||||
(void)alert->Go();
|
(void)alert->Go();
|
||||||
@@ -292,7 +292,7 @@ GeneralView::Save()
|
|||||||
ret = find_directory(B_USER_BOOT_DIRECTORY, &path, true);
|
ret = find_directory(B_USER_BOOT_DIRECTORY, &path, true);
|
||||||
if (ret != B_OK) {
|
if (ret != B_OK) {
|
||||||
BAlert* alert = new BAlert("",
|
BAlert* alert = new BAlert("",
|
||||||
B_TRANSLATE"Can't save preferences, you probably don't have "
|
B_TRANSLATE("Can't save preferences, you probably don't have "
|
||||||
"write access to the boot settings directory."), B_TRANSLATE("OK"),
|
"write access to the boot settings directory."), B_TRANSLATE("OK"),
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
B_WIDTH_AS_USUAL, B_STOP_ALERT);
|
B_WIDTH_AS_USUAL, B_STOP_ALERT);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ NotificationsView::NotificationsView()
|
|||||||
fNotifications->SetSelectionMode(B_SINGLE_SELECTION_LIST);
|
fNotifications->SetSelectionMode(B_SINGLE_SELECTION_LIST);
|
||||||
|
|
||||||
fTitleCol = new BStringColumn(B_TRANSLATE("Title"), 100,
|
fTitleCol = new BStringColumn(B_TRANSLATE("Title"), 100,
|
||||||
be_plain_font->StringWidth(B_TRANSLATE"Title")) +
|
be_plain_font->StringWidth(B_TRANSLATE("Title")) +
|
||||||
(kCLVTitlePadding * 2), rect.Width(), B_TRUNCATE_END, B_ALIGN_LEFT);
|
(kCLVTitlePadding * 2), rect.Width(), B_TRUNCATE_END, B_ALIGN_LEFT);
|
||||||
fNotifications->AddColumn(fTitleCol, kTitleIndex);
|
fNotifications->AddColumn(fTitleCol, kTitleIndex);
|
||||||
|
|
||||||
|
|||||||
@@ -134,8 +134,8 @@ void
|
|||||||
AlertView::UpdateCountdownView()
|
AlertView::UpdateCountdownView()
|
||||||
{
|
{
|
||||||
BString string;
|
BString string;
|
||||||
string << B_TRANSLATE("Settings will revert in %fSeconds seconds.");
|
string = B_TRANSLATE("Settings will revert in %seconds seconds.");
|
||||||
string.ReplaceAll(%fSeconds, fSeconds);
|
string.ReplaceFirst("%seconds", BString() << fSeconds);
|
||||||
fCountdownView->SetText(string.String());
|
fCountdownView->SetText(string.String());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ static const struct {
|
|||||||
int32 bits_per_pixel;
|
int32 bits_per_pixel;
|
||||||
const char* label;
|
const char* label;
|
||||||
} kColorSpaces[] = {
|
} kColorSpaces[] = {
|
||||||
{ B_CMAP8, 8, B_TRANSATE("8 bits/pixel, 256 colors") },
|
{ B_CMAP8, 8, B_TRANSLATE("8 bits/pixel, 256 colors") },
|
||||||
{ B_RGB15, 15, B_TRANSLATE("15 bits/pixel, 32768 colors") },
|
{ B_RGB15, 15, B_TRANSLATE("15 bits/pixel, 32768 colors") },
|
||||||
{ B_RGB16, 16, B_TRANSLATE("16 bits/pixel, 65536 colors") },
|
{ B_RGB16, 16, B_TRANSLATE("16 bits/pixel, 65536 colors") },
|
||||||
{ B_RGB24, 24, B_TRANSLATE("24 bits/pixel, 16 Million colors") },
|
{ B_RGB24, 24, B_TRANSLATE("24 bits/pixel, 16 Million colors") },
|
||||||
@@ -670,8 +670,8 @@ ScreenWindow::_UpdateRefreshControl()
|
|||||||
if (!item->IsMarked())
|
if (!item->IsMarked())
|
||||||
item->SetMarked(true);
|
item->SetMarked(true);
|
||||||
|
|
||||||
// "Other…" items only contains a refresh rate when active
|
// "Other" items only contains a refresh rate when active
|
||||||
fOtherRefresh->SetLabel(B_TRANSLATE("Other" B_UTF8_ELLIPSIS_);
|
fOtherRefresh->SetLabel(B_TRANSLATE("Other" B_UTF8_ELLIPSIS));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user