Updated to use B_TRANSLATE* macros. relates to #5408.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36685 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -103,12 +103,15 @@ FontSelectionView::FontSelectionView(const char* name,
|
||||
fFontsMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// size menu
|
||||
fSizesMenuField = new BMenuField("size", TR("Size:"), fSizesMenu, NULL);
|
||||
fSizesMenuField = new BMenuField("size", B_TRANSLATE("Size:"),
|
||||
fSizesMenu, NULL);
|
||||
fSizesMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// preview
|
||||
fPreviewText = new BStringView("preview text",
|
||||
TR_CMT("The quick brown fox jumps over the lazy dog.","Don't translate this literally ! Use a phrase showing all chars from A to Z."));
|
||||
B_TRANSLATE_COMMENT("The quick brown fox jumps over the lazy dog.",
|
||||
"Don't translate this literally ! Use a phrase showing all chars "
|
||||
"from A to Z."));
|
||||
|
||||
fPreviewText->SetFont(&fCurrentFont);
|
||||
fPreviewText->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
|
||||
|
||||
@@ -54,10 +54,10 @@ FontView::FontView()
|
||||
{
|
||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||
|
||||
fPlainView = new FontSelectionView("plain", TR("Plain font:"));
|
||||
fBoldView = new FontSelectionView("bold", TR("Bold font:"));
|
||||
fFixedView = new FontSelectionView("fixed", TR("Fixed font:"));
|
||||
fMenuView = new FontSelectionView("menu", TR("Menu font:"));
|
||||
fPlainView = new FontSelectionView("plain", B_TRANSLATE("Plain font:"));
|
||||
fBoldView = new FontSelectionView("bold", B_TRANSLATE("Bold font:"));
|
||||
fFixedView = new FontSelectionView("fixed", B_TRANSLATE("Fixed font:"));
|
||||
fMenuView = new FontSelectionView("menu", B_TRANSLATE("Menu font:"));
|
||||
|
||||
BGridLayout* layout = new BGridLayout(5, 5);
|
||||
layout->SetInsets(10, 10, 10, 10);
|
||||
|
||||
@@ -40,14 +40,14 @@ static const uint32 kMsgCheckFonts = 'chkf';
|
||||
|
||||
|
||||
MainWindow::MainWindow()
|
||||
: BWindow(BRect(0, 0, 1, 1), TR("Fonts"), B_TITLED_WINDOW,
|
||||
: BWindow(BRect(0, 0, 1, 1), B_TRANSLATE("Fonts"), B_TITLED_WINDOW,
|
||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
|
||||
{
|
||||
fDefaultsButton = new BButton("defaults", TR("Defaults"),
|
||||
fDefaultsButton = new BButton("defaults", B_TRANSLATE("Defaults"),
|
||||
new BMessage(kMsgSetDefaults), B_WILL_DRAW);
|
||||
fDefaultsButton->SetEnabled(false);
|
||||
|
||||
fRevertButton = new BButton("revert", TR("Revert"),
|
||||
fRevertButton = new BButton("revert", B_TRANSLATE("Revert"),
|
||||
new BMessage(kMsgRevert), B_WILL_DRAW);
|
||||
fRevertButton->SetEnabled(false);
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ FontsApp::FontsApp()
|
||||
void
|
||||
FontsApp::AboutRequested()
|
||||
{
|
||||
BAlert *alert = new BAlert("about", TR("Fonts\n"
|
||||
"\tCopyright 2004-2005, Haiku.\n\n"), TR("OK"));
|
||||
BAlert *alert = new BAlert("about", B_TRANSLATE("Fonts\n"
|
||||
"\tCopyright 2004-2005, Haiku.\n\n"), B_TRANSLATE("OK"));
|
||||
BTextView *view = alert->TextView();
|
||||
BFont font;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user