[FarGroup/FarManager] master: new option for disable network scan (0f82954e4)

82 views
Skip to first unread message

farg...@farmanager.com

unread,
Nov 29, 2021, 3:00:54 PM11/29/21
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/0f82954e47456d06f9d8cc79ba590cee93a04f5a

>---------------------------------------------------------------

commit 0f82954e47456d06f9d8cc79ba590cee93a04f5a
Author: Aleksey Dobrunov <cta...@gmail.com>
Date: Mon Nov 29 00:16:15 2021 +0500

new option for disable network scan


>---------------------------------------------------------------

0f82954e47456d06f9d8cc79ba590cee93a04f5a
plugins/network/NetBel.hlf | 12 ++++++++----
plugins/network/NetBel.lng | 1 +
plugins/network/NetCfg.cpp | 37 ++++++++++++++++++++-----------------
plugins/network/NetClass.cpp | 28 +++++++++++++++++++---------
plugins/network/NetCommon.hpp | 14 ++++++--------
plugins/network/NetCze.hlf | 24 ++++++++++++++----------
plugins/network/NetCze.lng | 1 +
plugins/network/NetEng.hlf | 26 +++++++++++++++-----------
plugins/network/NetEng.lng | 5 +++--
plugins/network/NetGer.hlf | 26 +++++++++++++++-----------
plugins/network/NetGer.lng | 1 +
plugins/network/NetHun.hlf | 24 ++++++++++++++----------
plugins/network/NetHun.lng | 1 +
plugins/network/NetIta.lng | 1 +
plugins/network/NetLit.lng | 1 +
plugins/network/NetLng.hpp | 1 +
plugins/network/NetPol.hlf | 12 ++++++++----
plugins/network/NetPol.lng | 1 +
plugins/network/NetRus.hlf | 20 ++++++++++++--------
plugins/network/NetRus.lng | 3 ++-
plugins/network/NetSky.hlf | 26 +++++++++++++++-----------
plugins/network/NetSky.lng | 1 +
plugins/network/NetSpa.lng | 1 +
plugins/network/NetUkr.hlf | 24 ++++++++++++++----------
plugins/network/NetUkr.lng | 1 +
plugins/network/changelog | 5 +++++
plugins/network/version.hpp | 2 +-
27 files changed, 182 insertions(+), 117 deletions(-)

diff --git a/plugins/network/NetBel.hlf b/plugins/network/NetBel.hlf
index 46510508e..099b96939 100644
--- a/plugins/network/NetBel.hlf
+++ b/plugins/network/NetBel.hlf
@@ -59,16 +59,20 @@ $ #Канфігурацыя модуля прагляду сеткі#
Показывать предоставляемые хостом общие принтеры.

#Показывать полные пути к общим ресурсам#
- ...
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Паказваць схаваныя# Калі ўключаная гэтая опцыя, плагін будзе паказваць
#агульныя рэсурсы# схаваныя (адмінiстратыўныя) супольныя рэсурсы.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

#Возврат в Избранное, если ресурс в избранном#
- ...
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetBel.lng b/plugins/network/NetBel.lng
index c8ad31588..a382ebf12 100644
--- a/plugins/network/NetBel.lng
+++ b/plugins/network/NetBel.lng
@@ -54,6 +54,7 @@
"Рабіць зхаванымі"
"Заўсёды адлюстроўваць"
"Адлюстроўваць д&рукаркі"
+"Scan network"
"Выводзіць \"..\" у спісе пастаўшчыкоў"
"Вяртанне ў &Пераважныя, калі сродкі знаходзяцца ў пераважным"
"Праверка даступнасці с&родкаў"
diff --git a/plugins/network/NetCfg.cpp b/plugins/network/NetCfg.cpp
index d6c994541..8e0344e2b 100644
--- a/plugins/network/NetCfg.cpp
+++ b/plugins/network/NetCfg.cpp
@@ -14,12 +14,12 @@ const wchar_t* StrHiddenShares = L"HiddenShares";
const wchar_t* StrShowPrinters = L"ShowPrinters";
const wchar_t* StrLocalNetwork = L"LocalNetwork";
const wchar_t* StrDisconnectMode = L"DisconnectMode";
-const wchar_t* StrRemoveConnection = L"RemoveConnection";
const wchar_t* StrHiddenSharesAsHidden = L"HiddenSharesAsHidden";
const wchar_t* StrFullPathShares = L"FullPathShares";
const wchar_t* StrFavoritesFlags = L"FavoritesFlags";
const wchar_t* StrNoRootDoublePoint = L"NoRootDoublePoint";
const wchar_t* StrNavigateToDomains = L"NavigateToDomains";
+const wchar_t* StrScanNetwork = L"ScanNetwork";
const wchar_t* StrPanelMode = L"PanelMode";

int Config()
@@ -30,6 +30,7 @@ int Config()
Builder.AddCheckbox(MNoRootDoublePoint, &Opt.RootDoublePoint);
Builder.AddCheckbox(MConfigLocalNetwork, &Opt.LocalNetwork);
Builder.AddCheckbox(MConfigShowPrinters, &Opt.ShowPrinters);
+ Builder.AddCheckbox(MConfigScanNetwork, &Opt.ScanNetwork);
Builder.AddSeparator(MConfigShares);
Builder.AddCheckbox(MConfigSharesFullPath, &Opt.FullPathShares);

@@ -52,16 +53,16 @@ int Config()
switch (HiddenSharesState)
{
case 0: // never show
- Opt.HiddenShares = FALSE;
- Opt.HiddenSharesAsHidden = FALSE;
+ Opt.HiddenShares = false;
+ Opt.HiddenSharesAsHidden = false;
break;
case 1: // make hidden
- Opt.HiddenShares = TRUE;
- Opt.HiddenSharesAsHidden = TRUE;
+ Opt.HiddenShares = true;
+ Opt.HiddenSharesAsHidden = true;
break;
case 2: // always show
- Opt.HiddenShares = TRUE;
- Opt.HiddenSharesAsHidden = FALSE;
+ Opt.HiddenShares = true;
+ Opt.HiddenSharesAsHidden = false;
break;
}

@@ -77,17 +78,18 @@ void Options::Read()
{
PluginSettings settings(MainGuid, PsInfo.SettingsControl);

- Opt.AddToDisksMenu = settings.Get(0, StrAddToDisksMenu, 1);
- Opt.AddToPluginsMenu = settings.Get(0, StrAddToPluginsMenu, 1);
- Opt.LocalNetwork = settings.Get(0, StrLocalNetwork, TRUE);
- Opt.HiddenShares = settings.Get(0, StrHiddenShares, 1);
- Opt.ShowPrinters = settings.Get(0, StrShowPrinters, 0);
- Opt.FullPathShares = settings.Get(0, StrFullPathShares, TRUE);
+ Opt.AddToDisksMenu = settings.Get(0, StrAddToDisksMenu, true);
+ Opt.AddToPluginsMenu = settings.Get(0, StrAddToPluginsMenu, true);
+ Opt.LocalNetwork = settings.Get(0, StrLocalNetwork, true);
+ Opt.HiddenShares = settings.Get(0, StrHiddenShares, true);
+ Opt.ShowPrinters = settings.Get(0, StrShowPrinters, false);
+ Opt.FullPathShares = settings.Get(0, StrFullPathShares, true);
Opt.FavoritesFlags = settings.Get(0, StrFavoritesFlags, static_cast<int>(FAVORITES_DEFAULTS));
- Opt.RootDoublePoint = settings.Get(0, StrNoRootDoublePoint, TRUE);
- Opt.DisconnectMode = settings.Get(0, StrDisconnectMode, FALSE);
- Opt.HiddenSharesAsHidden = settings.Get(0, StrHiddenSharesAsHidden, TRUE);
- Opt.NavigateToDomains = settings.Get(0, StrNavigateToDomains, FALSE);
+ Opt.RootDoublePoint = settings.Get(0, StrNoRootDoublePoint, true);
+ Opt.DisconnectMode = settings.Get(0, StrDisconnectMode, false);
+ Opt.HiddenSharesAsHidden = settings.Get(0, StrHiddenSharesAsHidden, true);
+ Opt.NavigateToDomains = settings.Get(0, StrNavigateToDomains, false);
+ Opt.ScanNetwork = settings.Get(0, StrScanNetwork, true);
}

void Options::Write()
@@ -103,6 +105,7 @@ void Options::Write()
settings.Set(0, StrFavoritesFlags, Opt.FavoritesFlags);
settings.Set(0, StrNoRootDoublePoint, Opt.RootDoublePoint);
settings.Set(0, StrHiddenSharesAsHidden, Opt.HiddenSharesAsHidden);
+ settings.Set(0, StrScanNetwork, Opt.ScanNetwork);
}

__int64 GetSetting(FARSETTINGS_SUBFOLDERS Root, const wchar_t* Name)
diff --git a/plugins/network/NetClass.cpp b/plugins/network/NetClass.cpp
index 14054cfa6..43c19fe6b 100644
--- a/plugins/network/NetClass.cpp
+++ b/plugins/network/NetClass.cpp
@@ -145,6 +145,10 @@ BOOL NetResourceList::Enumerate(
if (EnumFavorites(lpNetResource, this))
return TRUE;

+ if (!Opt.ScanNetwork && lpNetResource && (lpNetResource->dwDisplayType == RESOURCEDISPLAYTYPE_DOMAIN
+ || lpNetResource->dwDisplayType == RESOURCEDISPLAYTYPE_NETWORK))
+ return TRUE;
+
HANDLE hEnum;

if (WNetOpenEnum(dwScope, dwType, dwUsage, lpNetResource, &hEnum) != NO_ERROR)
@@ -273,17 +277,17 @@ BOOL NetBrowser::EnumerateNetList()
if (!Opt.HiddenSharesAsHidden || (PInfo.Flags & PFLAGS_SHOWHIDDEN))
{
// Check whether we need to get the hidden shares.
- if (NetList.Count() > 0)
+
+ if (PCurResource)
{
- if (PCurResource)
+ // If the parent of the current folder is not a server
+ if (PCurResource->dwDisplayType != RESOURCEDISPLAYTYPE_SERVER)
{
- // If the parent of the current folder is not a server
- if (PCurResource->dwDisplayType != RESOURCEDISPLAYTYPE_SERVER)
- {
- return TRUE;
- }
+ return TRUE;
}
-
+ }
+ if (NetList.Count() > 0)
+ {
// If there are elements, check the first element
if ((NetList[NetList.Count() - 1].dwDisplayType) != RESOURCEDISPLAYTYPE_SHARE)
{
@@ -1163,6 +1167,10 @@ BOOL NetBrowser::IsResourceReadable(NETRESOURCE& Res)
if (CheckFavoriteItem(&Res))
return TRUE;

+ if (!Opt.ScanNetwork && (Res.dwDisplayType == RESOURCEDISPLAYTYPE_DOMAIN || Res.dwDisplayType ==
+ RESOURCEDISPLAYTYPE_NETWORK))
+ return TRUE;
+
HANDLE hEnum = INVALID_HANDLE_VALUE;
DWORD result = WNetOpenEnum(RESOURCE_GLOBALNET, RESOURCETYPE_ANY, 0, &Res, &hEnum);

@@ -1260,7 +1268,6 @@ BOOL NetBrowser::GetResourceInfo(wchar_t* SrcName, LPNETRESOURCE DstNetResource)
fwprintf(LogFile, L"GetResourceInfo %s\n", SrcName);

#endif
- TSaveScreen SS;
NETRESOURCE nrOut[32]; // provide buffer space
NETRESOURCE* lpnrOut = &nrOut[0];
DWORD cbBuffer = sizeof(nrOut);
@@ -1321,6 +1328,8 @@ BOOL NetBrowser::GetResourceParent(NETRESOURCE& SrcRes, LPNETRESOURCE DstNetReso
if (GetFavoritesParent(SrcRes, DstNetResource))
return TRUE;
}
+ if (!Opt.ScanNetwork)
+ return FALSE;

#ifdef NETWORK_LOGGING

@@ -1329,6 +1338,7 @@ BOOL NetBrowser::GetResourceParent(NETRESOURCE& SrcRes, LPNETRESOURCE DstNetReso

LogNetResource(SrcRes);
#endif
+ TSaveScreen ss;
BOOL Ret = FALSE;
NETRESOURCE nrOut[32]; // provide buffer space
NETRESOURCE* lpnrOut = &nrOut[0];
diff --git a/plugins/network/NetCommon.hpp b/plugins/network/NetCommon.hpp
index dcc159b51..1ac6419c3 100644
--- a/plugins/network/NetCommon.hpp
+++ b/plugins/network/NetCommon.hpp
@@ -10,16 +10,16 @@ extern struct Options
int HiddenShares;
int ShowPrinters;
int LocalNetwork;
- int DisconnectMode;
- int ConfirmRemoveConnection;
+ int DisconnectMode; // not configurable
int HiddenSharesAsHidden;
int FullPathShares;
- int FavoritesFlags;
+ int FavoritesFlags; // not configurable
int RootDoublePoint;
- int NavigateToDomains;
+ int NavigateToDomains; // not configurable
+ int ScanNetwork;

- void Read();
- void Write();
+ static void Read();
+ static void Write();
} Opt;


@@ -40,6 +40,4 @@ public:

BOOL DlgCreateFolder(wchar_t* lpBuffer, size_t nBufferSize);

-#define ShowMessage(x) PsInfo.Message(&MainGuid, nullptr, FMSG_ALLINONE|FMSG_MB_OK, L"", reinterpret_cast<const wchar_t* const*>(x), 0,{})
-
#endif // __NETCOMMON_HPP__
diff --git a/plugins/network/NetCze.hlf b/plugins/network/NetCze.hlf
index b1ac06483..f99248323 100644
--- a/plugins/network/NetCze.hlf
+++ b/plugins/network/NetCze.hlf
@@ -47,28 +47,32 @@ $ #Konfigurace síťového prohlížeče#
#Přidat do menu pluginů#
Zapíná přidání položky "síť" do menu pluginů.

- #Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ #Show ".." in the providers list#
+ Show ".." on the panel in the list of providers. Selecting ".." will switch to the current working directory.

#Zobrazovat lokáln síťí#
Pokud je toto nastavení aktivováno, síťový prohlížeč při prvním spuštěná zobrazí
síťové sousedy aktuálního počítače (počítače ve stejné doméně, nebo pracovní skupině).
Toto nastavení pracuje pouze na sítích Microsoft Windows.

- #Показывать принтеры#
- Показывать предоставляемые хостом общие принтеры.
+ #Show printers#
+ Show shared printers.

- #Показывать полные пути к общим ресурсам#
- ...
+ #Show full share name#
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Zobrazovat skrytá sdílení#
Pokud je toto nastavení aktivováno, budou v pluginu zobrazeny skrytá (administrativní) sdílení.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+- #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

- #Возврат в Избранное, если ресурс в избранном#
- ...
+ #Browse up to favorites if possible#
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetCze.lng b/plugins/network/NetCze.lng
index c6f45aa67..7b1b6b41f 100644
--- a/plugins/network/NetCze.lng
+++ b/plugins/network/NetCze.lng
@@ -54,6 +54,7 @@
"&Show as hidden"
"&Always show"
"Show p&rinters"
+"Scan network"
"Show \"&..\" in the providers"
"&Browse up to favorites if possible"
"Check resource &reachability"
diff --git a/plugins/network/NetEng.hlf b/plugins/network/NetEng.hlf
index 613f15258..f2579eb07 100644
--- a/plugins/network/NetEng.hlf
+++ b/plugins/network/NetEng.hlf
@@ -44,30 +44,34 @@ $ #Network browser configuration#
Enables adding "Network" item to the disks menu.

#Add to plugins menu#
- Enables adding "Network" item to the plugins menu.
+ Enables adding "Network browser" item to the plugins menu.

- #Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ #Show ".." in the providers list#
+ Show ".." on the panel in the list of providers. Selecting ".." will switch to the current working directory.

#Show local network#
If this option is enabled, then, when the Network Browser is first opened, it will show
the network neighborhood of the current computer (computers in the same domain or
workgroup). The option works only for Microsoft Windows networks.

- #Показывать принтеры#
- Показывать предоставляемые хостом общие принтеры.
+ #Show printers#
+ Show shared printers.

- #Показывать полные пути к общим ресурсам#
- ...
+ #Show full share name#
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Show hidden shares#
If this option is enabled, hidden (administrative) shares are shown in the plugin.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

- #Возврат в Избранное, если ресурс в избранном#
- ...
+ #Browse up to favorites if possible#
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetEng.lng b/plugins/network/NetEng.lng
index d97983d35..aab304970 100644
--- a/plugins/network/NetEng.lng
+++ b/plugins/network/NetEng.lng
@@ -48,13 +48,14 @@
"Add to &Plugins menu"
"Show &local network"
"Shares"
-"Show share &full name"
+"Show &full share name"
"Hidden Shares"
"&Never show"
"&Show as hidden"
"&Always show"
"Show p&rinters"
-"Show \"&..\" in the providers"
+"Scan network"
+"Show \"&..\" in the providers list"
"&Browse up to favorites if possible"
"Check resource &reachability"

diff --git a/plugins/network/NetGer.hlf b/plugins/network/NetGer.hlf
index 4034cecce..b1346c615 100644
--- a/plugins/network/NetGer.hlf
+++ b/plugins/network/NetGer.hlf
@@ -41,30 +41,34 @@ $ #Netzwerk Browser Konfiguration#
Erlaubt das Hinzufügen von "Netzwerk"-Einträgen in das Laufwerksmenü.

#Add to plugins menu#
- Enables adding "Network" item to the plugins menu.
+ Enables adding "Network browser" item to the plugins menu.

- #Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ #Show ".." in the providers list#
+ Show ".." on the panel in the list of providers. Selecting ".." will switch to the current working directory.

#Show local network#
If this option is enabled, then, when the Network Browser is first opened, it will show
the network neighborhood of the current computer (computers in the same domain or
workgroup). The option works only for Microsoft Windows networks.

- #Показывать принтеры#
- Показывать предоставляемые хостом общие принтеры.
+ #Show printers#
+ Show shared printers.

- #Показывать полные пути к общим ресурсам#
- ...
+ #Show full share name#
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Show hidden shares#
If this option is enabled, hidden (administrative) shares are shown in the plugin.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

- #Возврат в Избранное, если ресурс в избранном#
- ...
+ #Browse up to favorites if possible#
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetGer.lng b/plugins/network/NetGer.lng
index 46b16f1b1..16ffe21d6 100644
--- a/plugins/network/NetGer.lng
+++ b/plugins/network/NetGer.lng
@@ -54,6 +54,7 @@
"&Show as hidden"
"&Always show"
"Show p&rinters"
+"Scan network"
"Show \"&..\" in the providers"
"&Browse up to favorites if possible"
"Check resource &reachability"
diff --git a/plugins/network/NetHun.hlf b/plugins/network/NetHun.hlf
index 76f5f62d4..8a7a2ee62 100644
--- a/plugins/network/NetHun.hlf
+++ b/plugins/network/NetHun.hlf
@@ -46,28 +46,32 @@ $ #Hállózati tallózó beállítása#
#Add to plugins menu#
Enables adding "Network" item to the plugins menu.

- #Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ #Show ".." in the providers list#
+ Show ".." on the panel in the list of providers. Selecting ".." will switch to the current working directory.

#Show local network#
If this option is enabled, then, when the Network Browser is first opened, it will show
the network neighborhood of the current computer (computers in the same domain or
workgroup). The option works only for Microsoft Windows networks.

- #Показывать принтеры#
- Показывать предоставляемые хостом общие принтеры.
+ #Show printers#
+ Show shared printers.

- #Показывать полные пути к общим ресурсам#
- ...
+ #Show full share name#
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Show hidden shares#
If this option is enabled, hidden (administrative) shares are shown in the plugin.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

- #Возврат в Избранное, если ресурс в избранном#
- ...
+ #Browse up to favorites if possible#
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetHun.lng b/plugins/network/NetHun.lng
index f1e575e62..a31e491af 100644
--- a/plugins/network/NetHun.lng
+++ b/plugins/network/NetHun.lng
@@ -54,6 +54,7 @@
"&Show as hidden"
"&Always show"
"Show p&rinters"
+"Scan network"
"Show \"&..\" in the providers"
"&Browse up to favorites if possible"
"Check resource &reachability"
diff --git a/plugins/network/NetIta.lng b/plugins/network/NetIta.lng
index 0a537302d..5f2304bec 100644
--- a/plugins/network/NetIta.lng
+++ b/plugins/network/NetIta.lng
@@ -54,6 +54,7 @@
"Crealo Nascosto"
"Mostralo Sempre"
"Mostra Stam&panti"
+"Scan network"
"Mostra \"..\" Nell'Elenco"
"&Sfoglia Fino Ai Preferiti Se Possibile"
"Controlla Se La Risorsa E' &Disponibile"
diff --git a/plugins/network/NetLit.lng b/plugins/network/NetLit.lng
index fd70fb1d1..2de1bb00d 100644
--- a/plugins/network/NetLit.lng
+++ b/plugins/network/NetLit.lng
@@ -54,6 +54,7 @@
"&Show as hidden"
"&Always show"
"Show p&rinters"
+"Scan network"
"Show \"&..\" in the providers"
"&Browse up to favorites if possible"
"Check resource &reachability"
diff --git a/plugins/network/NetLng.hpp b/plugins/network/NetLng.hpp
index d9d92e040..4cf98c315 100644
--- a/plugins/network/NetLng.hpp
+++ b/plugins/network/NetLng.hpp
@@ -54,6 +54,7 @@
MConfigHiddenSharesMakeHidden,
MConfigHiddenSharesAlwaysShow,
MConfigShowPrinters,
+ MConfigScanNetwork,
MNoRootDoublePoint,
MUpbrowseToFavorites,
MCheckResource,
diff --git a/plugins/network/NetPol.hlf b/plugins/network/NetPol.hlf
index cc3baf208..42148faf7 100644
--- a/plugins/network/NetPol.hlf
+++ b/plugins/network/NetPol.hlf
@@ -60,16 +60,20 @@ tylko w sieciach Microsoft Windows.
Pokazuje drukarki udostępnione przez serwery.

#Pokaż pełną nazwę udziału#
- ...
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Pokaż ukryte zasoby - zawsze pokazuj#
Jeżeli opcja jest włączona, widoczne są zasoby ukryte (administracyjne).

- #Pokaż ukryte zasoby - jako ukryte#
- Jeżeli opcja jest włączona, dla ukrytych zasobów administracyjnych wtyczka ustawia atrybut Ukryty (Hidden).
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

#Przeglądaj do Ulubionych, jeżeli możliwe#
- ...
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.

@DisconnectDrive
$ #Odłącz dysk sieciowy#
diff --git a/plugins/network/NetPol.lng b/plugins/network/NetPol.lng
index db41072b8..6766b587f 100644
--- a/plugins/network/NetPol.lng
+++ b/plugins/network/NetPol.lng
@@ -54,6 +54,7 @@
"Pokaż &jako ukryte"
"&Zawsze pokazuj"
"Pokaż d&rukarki"
+"Scan network"
"Pokaż \"&..\" na liście dostępów"
"Przeglądaj &Ulubione, jeśli to możliwe"
"&Sprawdź dostępność zasobów"
diff --git a/plugins/network/NetRus.hlf b/plugins/network/NetRus.hlf
index 71162b525..d97347bed 100644
--- a/plugins/network/NetRus.hlf
+++ b/plugins/network/NetRus.hlf
@@ -46,10 +46,10 @@ $ #Конфигурация модуля просмотра сети#
Разрешает добавление к меню дисков пункта "Сеть".

#Добавить к меню плагинов#
- Разрешает добавление к меню плагинов пункта "Сеть".
+ Разрешает добавление к меню плагинов пункта "Просмотр сети".

#Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ Показывать ".." на панели в списке провайдеров. При выборе ".." будет произведен переход в текущую рабочую директорию.

#Показывать локальную сеть#
Если включена эта опция, то при первоначальном открытии Network Browser будет показано сетевое
@@ -60,16 +60,20 @@ $ #Конфигурация модуля просмотра сети#
Показывать предоставляемые хостом общие принтеры.

#Показывать полные пути к общим ресурсам#
- ...
+ При включенной опции отображается \\Server1 и \\Server1\Share1, при выключенной - Server1 и Share1

- #Показывать скрытые общие ресурсы#
- Если включена эта опция, плагин будет показывать скрытые общие ресурсы.
+ #Скрытые ресурсы#
+ Опция управляет показом скрытых (административных) общих ресурсов компьютера.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Не отображать#
+ Поиск скрытых общих ресурсов не производится.
+ - #Делать скрытыми#
+ Скрытые общие ресурсы отображаются в панели с атрибутом Hidden.
+ - #Всегда отображать#
+ Скрытые общие ресурсы отображаются в панели как обычные.

#Возврат в Избранное, если ресурс в избранном#
- ...
+ Если просматриваемый компьютер добавлен в избранное, то при переходе на уровень выше ".." откроется Избранное


@DisconnectDrive
diff --git a/plugins/network/NetRus.lng b/plugins/network/NetRus.lng
index 43c6bf481..9e9efc8a1 100644
--- a/plugins/network/NetRus.lng
+++ b/plugins/network/NetRus.lng
@@ -7,7 +7,7 @@

"Просмотр сети"

-"сеть"
+"Сеть"

"Подкл"
"ПодклК"
@@ -54,6 +54,7 @@
"Делать скрытыми"
"Всегда отображать"
"Показывать при&нтеры"
+"Сканировать сеть"
"Выводить \"..\" в списке провайдеров"
"Возврат в &Избранное, если ресурс в избранном"
"Проверка доступности &ресурсов"
diff --git a/plugins/network/NetSky.hlf b/plugins/network/NetSky.hlf
index 82968d114..6ea31bbce 100644
--- a/plugins/network/NetSky.hlf
+++ b/plugins/network/NetSky.hlf
@@ -44,30 +44,34 @@ $ #Konfigurácia prehliadača#
Umiestni položku "sieť" to menu jednotiek.

#Add to plugins menu#
- Enables adding "Network" item to the plugins menu.
+ Enables adding "Network browser" item to the plugins menu.

- #Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ #Show ".." in the providers list#
+ Show ".." on the panel in the list of providers. Selecting ".." will switch to the current working directory.

#Show local network#
If this option is enabled, then, when the Network Browser is first opened, it will show
the network neighborhood of the current computer (computers in the same domain or
workgroup). The option works only for Microsoft Windows networks.

- #Показывать принтеры#
- Показывать предоставляемые хостом общие принтеры.
+ #Show printers#
+ Show shared printers.

- #Показывать полные пути к общим ресурсам#
- ...
+ #Show full share name#
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Show hidden shares#
If this option is enabled, hidden (administrative) shares are shown in the plugin.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

- #Возврат в Избранное, если ресурс в избранном#
- ...
+ #Browse up to favorites if possible#
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetSky.lng b/plugins/network/NetSky.lng
index 8abad59ef..afd4a3a85 100644
--- a/plugins/network/NetSky.lng
+++ b/plugins/network/NetSky.lng
@@ -54,6 +54,7 @@
"Make hidden"
"Always show"
"Zobraziť tlačiar&ne"
+"Scan network"
"Zobraziť \"..\" medzi poskytovateľmi"
"Ak sa dá, &prehliadať až po obľúbené"
"Skont&rolovať dostupnosť zdrojov"
diff --git a/plugins/network/NetSpa.lng b/plugins/network/NetSpa.lng
index a47fa9d34..1bbc41291 100644
--- a/plugins/network/NetSpa.lng
+++ b/plugins/network/NetSpa.lng
@@ -54,6 +54,7 @@
"Make hidden"
"Always show"
"Mostrar i&mpresoras"
+"Scan network"
"Mostrar \"..\" en los proveedores"
"&Navegar hasta favoritos si es posible"
"Comprobar accesibilidad de recu&rsos"
diff --git a/plugins/network/NetUkr.hlf b/plugins/network/NetUkr.hlf
index 0f3ee8f38..1fef58a6d 100644
--- a/plugins/network/NetUkr.hlf
+++ b/plugins/network/NetUkr.hlf
@@ -47,28 +47,32 @@ $ #Конфігурація модуля перегляду мережі#
#Додати до меню плагінів#
Дозволяє додавання до меню плагінів пункту "Мережа".

- #Выводить ".." в списке провайдеров#
- Показывать ".." на панели в списке провайдеров.
+ #Show ".." in the providers list#
+ Show ".." on the panel in the list of providers. Selecting ".." will switch to the current working directory.

#Показувати локальну мережу#
Якщо включено цю опцію, то при початковому відкритті Network Browser буде показане мережне
оточення поточного комп'ютера (комп'ютери, що знаходяться у тому ж домені або робочій групі).
Опція діє тільки для мереж Microsoft Windows.

- #Показывать принтеры#
- Показывать предоставляемые хостом общие принтеры.
+ #Show printers#
+ Show shared printers.

- #Показывать полные пути к общим ресурсам#
- ...
+ #Show full share name#
+ When the option is enabled, \\Server1 and \\Server1\Share1 are displayed, when disabled - Server1 and Share1

#Показувати приховані спільні ресурси#
Якщо включено цю опцію, плагін буде показувати приховані (адміністративні) спільні ресурси.

- #Показывать скрытые ресурсы атрибутом Hidden#
- Если включена эта опция, плагин для скрытых административных ресурсов ставит атрибут Hidden.
+ - #Never show#
+ Don't show hidden shares.
+ - #Show as hidden#
+ Hidden shares are displayed in the panel with the attribute 'Hidden'.
+ - #Always show#
+ Hidden shares appear in the panel as normal.

- #Возврат в Избранное, если ресурс в избранном#
- ...
+ #Browse up to favorites if possible#
+ If the computer you are viewing has been added to favorites, then when you go up level "..", Favorites will open.


@DisconnectDrive
diff --git a/plugins/network/NetUkr.lng b/plugins/network/NetUkr.lng
index 056e4c2fb..b69f1eb3c 100644
--- a/plugins/network/NetUkr.lng
+++ b/plugins/network/NetUkr.lng
@@ -54,6 +54,7 @@
"&Show as hidden"
"&Always show"
"Show p&rinters"
+"Scan network"
"Show \"&..\" in the providers"
"&Browse up to favorites if possible"
"Check resource &reachability"
diff --git a/plugins/network/changelog b/plugins/network/changelog
index 29afd5931..342992cad 100644
--- a/plugins/network/changelog
+++ b/plugins/network/changelog
@@ -1,3 +1,8 @@
+ctapmex 29.11.2021 15:30:00 +0000 - build 103
+
+1. Добавлена опция "Сканировать сеть", позволяющая отключить сканирование сети для поиска устройств.
+2. Актуализирована справка по диалогу настроек плагина
+
ctapmex 28.11.2021 13:30:00 +0000 - build 102

1. откат 100.2
diff --git a/plugins/network/version.hpp b/plugins/network/version.hpp
index 8db0f04d3..2374c22f2 100644
--- a/plugins/network/version.hpp
+++ b/plugins/network/version.hpp
@@ -1,6 +1,6 @@
#include <farversion.hpp>

-#define PLUGIN_BUILD 102
+#define PLUGIN_BUILD 103
#define PLUGIN_DESC L"Network Plugin for Far Manager"
#define PLUGIN_NAME L"Network"
#define PLUGIN_FILENAME L"Network.dll"


Reply all
Reply to author
Forward
0 new messages