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:
@@ -16,3 +16,8 @@ DoCatalogs Pairs :
|
|||||||
PairsView.cpp
|
PairsView.cpp
|
||||||
PairsWindow.cpp
|
PairsWindow.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
|
AddCatalogEntryAttribute Pairs
|
||||||
|
:
|
||||||
|
x-vnd.Haiku-Pairs:PairsWindow:Pairs
|
||||||
|
;
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <Locale.h>
|
|
||||||
|
|
||||||
#include "Pairs.h"
|
#include "Pairs.h"
|
||||||
#include "PairsWindow.h"
|
#include "PairsWindow.h"
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
#include <IconUtils.h>
|
#include <IconUtils.h>
|
||||||
#include <List.h>
|
#include <List.h>
|
||||||
#include <Locale.h>
|
|
||||||
#include <Node.h>
|
#include <Node.h>
|
||||||
#include <NodeInfo.h>
|
#include <NodeInfo.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
@@ -171,8 +170,12 @@ PairsView::_ReadRandomIcons()
|
|||||||
snprintf(buffer, sizeof(buffer), B_TRANSLATE("Pairs did not find "
|
snprintf(buffer, sizeof(buffer), B_TRANSLATE("Pairs did not find "
|
||||||
"enough vector icons in the system; it needs at least %d."),
|
"enough vector icons in the system; it needs at least %d."),
|
||||||
fNumOfCards / 2);
|
fNumOfCards / 2);
|
||||||
BAlert* alert = new BAlert("fatal", buffer, B_TRANSLATE("OK"),
|
BString msgStr(buffer);
|
||||||
NULL, NULL, B_WIDTH_FROM_WIDEST, B_STOP_ALERT);
|
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();
|
alert->Go();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
#include <Locale.h>
|
|
||||||
#include <Menu.h>
|
#include <Menu.h>
|
||||||
#include <MenuBar.h>
|
#include <MenuBar.h>
|
||||||
#include <MenuItem.h>
|
#include <MenuItem.h>
|
||||||
@@ -247,6 +246,7 @@ PairsWindow::MessageReceived(BMessage* message)
|
|||||||
view->SetFontAndColor(0,
|
view->SetFontAndColor(0,
|
||||||
strlen(B_TRANSLATE_SYSTEM_NAME("Pairs")), &font);
|
strlen(B_TRANSLATE_SYSTEM_NAME("Pairs")), &font);
|
||||||
view->ResizeToPreferred();
|
view->ResizeToPreferred();
|
||||||
|
alert->SetShortcut(0, B_ESCAPE);
|
||||||
|
|
||||||
if (alert->Go() == 0) {
|
if (alert->Go() == 0) {
|
||||||
// New game
|
// New game
|
||||||
|
|||||||
Reference in New Issue
Block a user