Skip to content

Commit

Permalink
Using a variable instead of translating a string twice.
Browse files Browse the repository at this point in the history
Thanks John for the guidance.
  • Loading branch information
Humdinger committed Dec 12, 2012
1 parent 748378c commit d725054
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/preferences/sounds/HWindow.cpp
Expand Up @@ -109,10 +109,10 @@ HWindow::InitGUI()
new BMessage(M_NONE_MESSAGE)));
menu->AddItem(new BMenuItem(B_TRANSLATE("Other" B_UTF8_ELLIPSIS),
new BMessage(M_OTHER_MESSAGE)));
BMenuField* menuField = new BMenuField("filemenu",
B_TRANSLATE("Sound file:"), menu);
menuField->SetDivider(menuField->StringWidth(B_TRANSLATE("Sound file:"))
+ 10);

BString label(B_TRANSLATE("Sound file:"));
BMenuField* menuField = new BMenuField("filemenu", label, menu);
menuField->SetDivider(menuField->StringWidth(label) + 10);

BButton* stopbutton = new BButton("stop", B_TRANSLATE("Stop"),
new BMessage(M_STOP_MESSAGE));
Expand Down

0 comments on commit d725054

Please sign in to comment.