Avoid duplicate trnslation string in DNS settings view

As pointed out correctly by PulkoMandy. Thanks!
This commit is contained in:
Humdinger
2015-06-05 09:34:30 +02:00
parent 0ecdbff36a
commit 38aa1d3b82
@@ -54,11 +54,10 @@ DNSSettingsView::DNSSettingsView(BNetworkSettingsItem* item)
titleView->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); titleView->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
fServerListView = new BListView("nameservers"); fServerListView = new BListView("nameservers");
fTextControl = new IPAddressControl(AF_UNSPEC, B_TRANSLATE("Server:"), const char* serverLabel = B_TRANSLATE("Server:");
"server"); fTextControl = new IPAddressControl(AF_UNSPEC, serverLabel, "server");
fTextControl->SetExplicitMinSize(BSize(fTextControl->StringWidth("5") * 16 fTextControl->SetExplicitMinSize(BSize(fTextControl->StringWidth("5") * 16
+ fTextControl->StringWidth(B_TRANSLATE("Server:")), + fTextControl->StringWidth(serverLabel), B_SIZE_UNSET));
B_SIZE_UNSET));
fAddButton = new BButton(B_TRANSLATE("Add"), new BMessage(kMsgAddServer)); fAddButton = new BButton(B_TRANSLATE("Add"), new BMessage(kMsgAddServer));
fAddButton->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); fAddButton->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));