Patch by Karvjorm (#7348): localize Pairs application name.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2011-10-30 09:10:23 +00:00
parent 7bc8568491
commit 5b264395c0
4 changed files with 12 additions and 5 deletions

View File

@ -16,3 +16,8 @@ DoCatalogs Pairs :
PairsView.cpp
PairsWindow.cpp
;
AddCatalogEntryAttribute Pairs
:
x-vnd.Haiku-Pairs:PairsWindow:Pairs
;

View File

@ -7,7 +7,6 @@
#include <Application.h>
#include <Catalog.h>
#include <Locale.h>
#include "Pairs.h"
#include "PairsWindow.h"

View File

@ -20,7 +20,6 @@
#include <FindDirectory.h>
#include <IconUtils.h>
#include <List.h>
#include <Locale.h>
#include <Node.h>
#include <NodeInfo.h>
#include <Path.h>
@ -171,8 +170,12 @@ PairsView::_ReadRandomIcons()
snprintf(buffer, sizeof(buffer), B_TRANSLATE("Pairs did not find "
"enough vector icons in the system; it needs at least %d."),
fNumOfCards / 2);
BAlert* alert = new BAlert("fatal", buffer, B_TRANSLATE("OK"),
NULL, NULL, B_WIDTH_FROM_WIDEST, B_STOP_ALERT);
BString msgStr(buffer);
msgStr << "\n";
BAlert* alert = new BAlert("Fatal", msgStr.String(),
B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_FROM_WIDEST,
B_STOP_ALERT);
alert->SetShortcut(0, B_ESCAPE);
alert->Go();
exit(1);
}

View File

@ -12,7 +12,6 @@
#include <Alert.h>
#include <Button.h>
#include <Catalog.h>
#include <Locale.h>
#include <Menu.h>
#include <MenuBar.h>
#include <MenuItem.h>
@ -247,6 +246,7 @@ PairsWindow::MessageReceived(BMessage* message)
view->SetFontAndColor(0,
strlen(B_TRANSLATE_SYSTEM_NAME("Pairs")), &font);
view->ResizeToPreferred();
alert->SetShortcut(0, B_ESCAPE);
if (alert->Go() == 0) {
// New game