Network Services: rename DNS to "DNS Client" and localize.
Fixes #11421.
This commit is contained in:
@@ -2,10 +2,18 @@ SubDir HAIKU_TOP src preferences network ServicesAddOn ;
|
|||||||
|
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) src preferences network ] ;
|
UseHeaders [ FDirName $(HAIKU_TOP) src preferences network ] ;
|
||||||
|
|
||||||
|
AddResources Services : Services.rdef ;
|
||||||
|
|
||||||
Addon Services :
|
Addon Services :
|
||||||
ServicesAddOn.cpp
|
ServicesAddOn.cpp
|
||||||
|
|
||||||
DNSSettingsView.cpp
|
DNSSettingsView.cpp
|
||||||
: be <nogrist>Network network [ TargetLibstdc++ ]
|
: be <nogrist>Network network [ TargetLibstdc++ ] localestub
|
||||||
;
|
;
|
||||||
|
|
||||||
|
DoCatalogs Services :
|
||||||
|
x-vnd.Haiku-NetworkServices
|
||||||
|
:
|
||||||
|
ServicesAddOn.cpp
|
||||||
|
DNSSettingsView.cpp
|
||||||
|
;
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
resource app_signature "application/x-vnd.Haiku-NetworkServices";
|
||||||
|
|
||||||
|
resource app_version {
|
||||||
|
major = 1,
|
||||||
|
middle = 1,
|
||||||
|
minor = 0,
|
||||||
|
variety = 0,
|
||||||
|
internal = 0,
|
||||||
|
short_info = "1.1.0",
|
||||||
|
long_info = "Haiku Network Services preferences."
|
||||||
|
};
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <Catalog.h>
|
||||||
#include <ListView.h>
|
#include <ListView.h>
|
||||||
#include <ScrollView.h>
|
#include <ScrollView.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
@@ -21,8 +22,13 @@
|
|||||||
#include "DNSSettingsView.h"
|
#include "DNSSettingsView.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define B_TRANSLATION_CONTEXT "Services"
|
||||||
|
|
||||||
|
|
||||||
static const int32 kSelectionChanged = 'ssrv';
|
static const int32 kSelectionChanged = 'ssrv';
|
||||||
|
|
||||||
|
static const char* kDNSSettingsName = B_TRANSLATE_MARK("DNS Client");
|
||||||
|
|
||||||
|
|
||||||
NetworkSetupAddOn*
|
NetworkSetupAddOn*
|
||||||
get_nth_addon(image_id image, int index)
|
get_nth_addon(image_id image, int index)
|
||||||
@@ -56,7 +62,8 @@ ServicesAddOn::CreateView()
|
|||||||
BScrollView* sv = new BScrollView( "ScrollView",
|
BScrollView* sv = new BScrollView( "ScrollView",
|
||||||
fServicesListView, B_WILL_DRAW | B_FRAME_EVENTS, false, true);
|
fServicesListView, B_WILL_DRAW | B_FRAME_EVENTS, false, true);
|
||||||
|
|
||||||
fServicesListView->AddItem(new BStringItem("DNS"));
|
fServicesListView->AddItem(new BStringItem(
|
||||||
|
B_TRANSLATE_NOCOLLECT(kDNSSettingsName)));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Enable this when the inetd view is ready
|
// Enable this when the inetd view is ready
|
||||||
@@ -227,7 +234,7 @@ ServicesAddOn::_ShowPanel()
|
|||||||
delete settingsView;
|
delete settingsView;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(item->Text(), "DNS") == 0) {
|
if (strcmp(item->Text(), B_TRANSLATE_NOCOLLECT(kDNSSettingsName)) == 0) {
|
||||||
settingsView = new DNSSettingsView();
|
settingsView = new DNSSettingsView();
|
||||||
panel->AddChild(settingsView);
|
panel->AddChild(settingsView);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user