Using a variable instead of translating a string twice.

Thanks John for the guidance.
This commit is contained in:
Humdinger
2012-12-12 21:25:10 +01:00
parent 748378c826
commit d7250540e0
+4 -4
View File
@@ -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));