Multi-language support

This commit is contained in:
bergware
2020-03-04 17:33:46 +01:00
parent 5712ec6282
commit c8148442d2
163 changed files with 3886 additions and 2838 deletions
+36 -24
View File
@@ -16,66 +16,78 @@ Tag="windows"
?>
<form markdown="1" name="SMBEnable" method="POST" action="/update.htm" target="progressFrame">
Enable SMB:
: <select name="shareSMBEnabled" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['shareSMBEnabled'], "no", "No")?>
<?=mk_option($var['shareSMBEnabled'], "yes", "Yes (Workgroup)")?>
<?=mk_option($var['shareSMBEnabled'], "ads", "Yes (Active Directory)")?>
_(Enable SMB)_:
: <select name="shareSMBEnabled" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['shareSMBEnabled'], "no", _('No'))?>
<?=mk_option($var['shareSMBEnabled'], "yes", _('Yes').' ('._('Workgroup').')')?>
<?=mk_option($var['shareSMBEnabled'], "ads", _('Yes').' ('._('Active Directory').')')?>
</select>
:help72
> Select 'Yes (Workgroup)' to enable SMB (Windows Networking) protocol support. This
> also enables Windows host discovery.
>
> Select 'Yes (Active Directory)' to enable Active Directory integration.
:end
Hide "dot" files:
: <select name="hideDotFiles" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['hideDotFiles'], "no", "No");?>
<?=mk_option($var['hideDotFiles'], "yes", "Yes");?>
_(Hide "dot" files)_:
: <select name="hideDotFiles" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['hideDotFiles'], "no", _('No'))?>
<?=mk_option($var['hideDotFiles'], "yes", _('Yes'))?>
</select>
:help73
> If set to 'Yes' then files starting with a '.' (dot) will appear as *hidden files* and normally
> will not appear in Windows folder lists unless you have "Show hidden files, folders, and drives" enabled
> in Windows Folder Options.
> If set to 'No' then dot files will appear in folder lists the same as any other file.
:end
Enhanced macOS interoperability:
: <select name="enableFruit" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['enableFruit'], "no", "No");?>
<?=mk_option($var['enableFruit'], "yes", "Yes");?>
_(Enhanced macOS interoperability)_:
: <select name="enableFruit" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['enableFruit'], "no", _('No'))?>
<?=mk_option($var['enableFruit'], "yes", _('Yes'))?>
</select>
:help74
> When set to 'Yes' provides enhanced compatibility with Apple SMB clients, resulting, for example, in faster
> Finder browsing, and ability to export Time Machine shares. This may cause some issues with Windows clients, however.
> Please also refer to the [VFS_FRUIT MAN PAGE](https://www.mankier.com/8/vfs_fruit).
:end
Enable NetBIOS:
: <select name="USE_NETBIOS" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['USE_NETBIOS'], "no", "No")?>
<?=mk_option($var['USE_NETBIOS'], "yes", "Yes")?>
_(Enable NetBIOS)_:
: <select name="USE_NETBIOS" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['USE_NETBIOS'], "no", _('No'))?>
<?=mk_option($var['USE_NETBIOS'], "yes", _('Yes'))?>
</select>
:help75
> Select 'Yes' to enable NetBIOS. If enabled, SMBv1 protocol will also be recognized. If disabled,
> clients must use SMBv2 or higher.
:end
Enable WSD:
: <select name="USE_WSD" size="1" onchange="checkWSDSettings()" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['USE_WSD'], "no", "No")?>
<?=mk_option($var['USE_WSD'], "yes", "Yes")?>
_(Enable WSD)_:
: <select name="USE_WSD" onchange="checkWSDSettings()" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
<?=mk_option($var['USE_WSD'], "no", _('No'))?>
<?=mk_option($var['USE_WSD'], "yes", _('Yes'))?>
</select>
:help76
> Select 'Yes' to enable WSD (WS-Discovery). The only reason to turn this off is when you are running an
> old LAN setup based on SMBv1.
:end
WSD options [experimental]:
_(WSD options [experimental])_:
: <input type="text" name="WSD_OPT" maxlength="80" class="narrow" value="<?=htmlspecialchars($var['WSD_OPT'])?>" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
> This is a command line otions string passed to the WSD daemon upon startup. Leave this field blank unless
:help77
> This is a command line otions string passed to the WSD daemon upon startup. Leave this field blank unless
> instructed by support to put something here.
:end
&nbsp;
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($var['fsState']=="Started"):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
: <input type="submit" name="changeShare" value="_(Apply)_" disabled><input type="button" value="_(Done)_" onclick="done()"><?if ($var['fsState']=="Started"):?>*_(Array must be **Stopped** to change)_*<?endif;?>
</form>
<script>