Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luci-app-ksmbd: support new UCI option, update for 3.2.1 version #3620

Merged
merged 1 commit into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return L.view.extend({
return Promise.all([
L.resolveDefault(fs.stat('/sbin/block'), null),
L.resolveDefault(fs.stat('/etc/config/fstab'), null),
L.resolveDefault(fs.exec('/usr/sbin/usmbd', ['-V']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/version : (\S+)/))[1] }),
L.resolveDefault(fs.exec('/usr/sbin/ksmbd.mountd', ['-V']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/version : (\S+)/))[1] }),
L.resolveDefault(fs.exec('/sbin/modinfo', ['ksmbd']), {}).then(function(res) { return L.toArray((res.stdout || '').match(/version:\t(\S+)/))[1] }),
]);
},
Expand Down Expand Up @@ -38,6 +38,9 @@ return L.view.extend({

o = s.taboption('general', form.Value, 'description', _('Description'));
o.placeholder = 'Ksmbd on OpenWrt';

o = s.taboption('general', form.Flag, 'allow_legacy_protocols', _('Allow legacy (insecure) protocols/authentication.'),
_('Allow legacy smb(v1)/Lanman connections, needed for older devices without smb(v2.1/3) support.'));

o = s.taboption('template', form.TextValue, '_tmpl',
_('Edit the template that is used for generating the ksmbd configuration.'),
Expand Down
40 changes: 25 additions & 15 deletions applications/luci-app-ksmbd/po/bg/ksmbd.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,61 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:82
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:85
msgid "Allow guests"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:79
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:42
msgid "Allow legacy (insecure) protocols/authentication."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:43
msgid ""
"Allow legacy smb(v1)/Lanman connections, needed for older devices without "
"smb(v2.1/3) support."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:82
msgid "Allowed users"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:66
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:69
msgid "Browse-able"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:98
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:101
msgid "Create mask"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:39
msgid "Description"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:104
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:107
msgid "Directory mask"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:31
msgid "Edit Template"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:43
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:46
msgid "Edit the template that is used for generating the ksmbd configuration."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:77
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:80
msgid "Force Root"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:30
msgid "General Settings"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:93
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:96
msgid "Hide dot files"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:88
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:91
msgid "Inherit owner"
msgstr ""

Expand All @@ -60,7 +70,7 @@ msgstr ""
msgid "Listen only on the given interface or, if unspecified, on lan"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:60
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:63
msgid "Name"
msgstr ""

Expand All @@ -69,25 +79,25 @@ msgstr ""
msgid "Network Shares"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:61
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:64
msgid "Path"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:56
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:59
msgid ""
"Please add directories to share. Each directory refers to a folder on a "
"mounted device."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:71
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:74
msgid "Read-only"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:55
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:58
msgid "Shared Directories"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:44
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:47
msgid ""
"This is the content of the file '/etc/ksmbd/smb.conf.template' from which "
"your ksmbd configuration will be generated. Values enclosed by pipe symbols "
Expand Down
40 changes: 25 additions & 15 deletions applications/luci-app-ksmbd/po/ca/ksmbd.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,61 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10.1\n"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:82
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:85
msgid "Allow guests"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:79
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:42
msgid "Allow legacy (insecure) protocols/authentication."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:43
msgid ""
"Allow legacy smb(v1)/Lanman connections, needed for older devices without "
"smb(v2.1/3) support."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:82
msgid "Allowed users"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:66
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:69
msgid "Browse-able"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:98
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:101
msgid "Create mask"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:39
msgid "Description"
msgstr "Descripció"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:104
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:107
msgid "Directory mask"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:31
msgid "Edit Template"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:43
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:46
msgid "Edit the template that is used for generating the ksmbd configuration."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:77
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:80
msgid "Force Root"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:30
msgid "General Settings"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:93
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:96
msgid "Hide dot files"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:88
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:91
msgid "Inherit owner"
msgstr ""

Expand All @@ -66,7 +76,7 @@ msgstr "Interfície"
msgid "Listen only on the given interface or, if unspecified, on lan"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:60
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:63
msgid "Name"
msgstr "Nom"

Expand All @@ -75,25 +85,25 @@ msgstr "Nom"
msgid "Network Shares"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:61
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:64
msgid "Path"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:56
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:59
msgid ""
"Please add directories to share. Each directory refers to a folder on a "
"mounted device."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:71
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:74
msgid "Read-only"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:55
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:58
msgid "Shared Directories"
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:44
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:47
msgid ""
"This is the content of the file '/etc/ksmbd/smb.conf.template' from which "
"your ksmbd configuration will be generated. Values enclosed by pipe symbols "
Expand Down
40 changes: 25 additions & 15 deletions applications/luci-app-ksmbd/po/cs/ksmbd.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,61 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 3.10-dev\n"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:82
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:85
msgid "Allow guests"
msgstr "Povolení hosté"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:79
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:42
msgid "Allow legacy (insecure) protocols/authentication."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:43
msgid ""
"Allow legacy smb(v1)/Lanman connections, needed for older devices without "
"smb(v2.1/3) support."
msgstr ""

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:82
msgid "Allowed users"
msgstr "Povolení uživatelé"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:66
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:69
msgid "Browse-able"
msgstr "Možnost procházení"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:98
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:101
msgid "Create mask"
msgstr "Vytvořit masku"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:39
msgid "Description"
msgstr "Popis"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:104
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:107
msgid "Directory mask"
msgstr "Maska adresáře"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:31
msgid "Edit Template"
msgstr "Editovat šablonu"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:43
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:46
msgid "Edit the template that is used for generating the ksmbd configuration."
msgstr "Editovat šablonu, která je použita pro generování konfigurace CIFSD."

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:77
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:80
msgid "Force Root"
msgstr "Vynutit superuživatelský přístup"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:30
msgid "General Settings"
msgstr "Obecné nastavení"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:93
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:96
msgid "Hide dot files"
msgstr "Skrýt soubory začínající tečkou"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:88
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:91
msgid "Inherit owner"
msgstr "Zdědit vlastníka"

Expand All @@ -66,7 +76,7 @@ msgstr "Rozhraní"
msgid "Listen only on the given interface or, if unspecified, on lan"
msgstr "Naslouchat pouze na daném rozhraní nebo, pokud není zadáno, v síti LAN"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:60
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:63
msgid "Name"
msgstr "Název"

Expand All @@ -75,27 +85,27 @@ msgstr "Název"
msgid "Network Shares"
msgstr "Síťová sdílení"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:61
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:64
msgid "Path"
msgstr "Cesta"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:56
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:59
msgid ""
"Please add directories to share. Each directory refers to a folder on a "
"mounted device."
msgstr ""
"Přidejte adresáře, které chcete sdílet. Každý adresář odkazuje na složku na "
"připojeném zařízení."

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:71
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:74
msgid "Read-only"
msgstr "Pouze pro čtení"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:55
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:58
msgid "Shared Directories"
msgstr "Sdílené adresáře"

#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:44
#: applications/luci-app-ksmbd/htdocs/luci-static/resources/view/ksmbd.js:47
msgid ""
"This is the content of the file '/etc/ksmbd/smb.conf.template' from which "
"your ksmbd configuration will be generated. Values enclosed by pipe symbols "
Expand Down
Loading