Ticket #5484: PairsLocalizationUpdate.patch
File PairsLocalizationUpdate.patch, 2.0 KB (added by , 14 years ago) |
---|
-
src/apps/pairs/PairsWindow.cpp
39 39 40 40 PairsWindow::PairsWindow() 41 41 : 42 BWindow(BRect(100, 100, 405, 423), "Pairs", B_TITLED_WINDOW,42 BWindow(BRect(100, 100, 405, 423), TR("Pairs"), B_TITLED_WINDOW, 43 43 B_ASYNCHRONOUS_CONTROLS | B_QUIT_ON_WINDOW_CLOSE 44 44 | B_NOT_RESIZABLE | B_NOT_ZOOMABLE), 45 45 fPairComparing(NULL), … … 223 223 BString score; 224 224 score << fButtonClicks; 225 225 strAbout 226 << "Pairs\n"226 << TR("Pairs\n" 227 227 "\twritten by Ralf Schülke\n" 228 228 "\tCopyright 2008-2010, Haiku Inc.\n" 229 229 "\n" 230 "You completed the game in %s clicks.\n" ;230 "You completed the game in %s clicks.\n"); 231 231 232 232 strAbout.Replace("%s", score.String(), 1); 233 233 -
src/apps/pairs/PairsView.cpp
14 14 #include <Application.h> 15 15 #include <Bitmap.h> 16 16 #include <Button.h> 17 #include <Catalog.h> 17 18 #include <Directory.h> 18 19 #include <Entry.h> 19 20 #include <FindDirectory.h> 20 21 #include <IconUtils.h> 22 #include <Locale.h> 21 23 #include <List.h> 22 24 #include <Node.h> 23 25 #include <NodeInfo.h> … … 91 93 return false; 92 94 } 93 95 96 #undef TR_CONTEXT 97 #define TR_CONTEXT "PairsView" 94 98 95 99 void 96 100 PairsView::_ReadRandomIcons() … … 165 169 if (bitmap == NULL) { 166 170 BString strErr; 167 171 strErr 168 << "Pairs did not find enough vector icons in the system; it " 169 << "needs at least " << fNumOfCards / 2; 172 << TR("Pairs did not find enough vector icons in the system; ") 173 << TR("it needs at least ") 174 << fNumOfCards / 2; 170 175 BAlert* alert = new BAlert("fatal", strErr, 171 "OK", NULL, NULL, B_WIDTH_FROM_WIDEST, B_STOP_ALERT);176 TR("OK"), NULL, NULL, B_WIDTH_FROM_WIDEST, B_STOP_ALERT); 172 177 alert->Go(); 173 178 exit(1); 174 179 }