Node.js based forum software built for the modern web
feat: closes #7952, translate widget-settings
Baris Usakli990508a533b0
diff --git a/public/language/en-GB/admin/extend/widgets.json b/public/language/en-GB/admin/extend/widgets.jsonindex 025f48b327..f2255b9395 100644--- a/public/language/en-GB/admin/extend/widgets.json+++ b/public/language/en-GB/admin/extend/widgets.json@@ -18,5 +18,13 @@"alert.update-success": "Successfully updated widgets","alert.clone-success": "Successfully cloned widgets",- "error.select-clone": "Please select a page to clone from"+ "error.select-clone": "Please select a page to clone from",++ "title": "Title",+ "title.placeholder": "Title (only shown on some containers)",+ "container": "Container",+ "container.placeholder": "Drag and drop a container or enter HTML here.",+ "show-to-groups": "Show to groups",+ "hide-from-groups": "Hide from groups",+ "hide-on-mobile": "Hide on mobile"}\ No newline at end of filediff --git a/src/views/admin/partials/widget-settings.tpl b/src/views/admin/partials/widget-settings.tplindex 3c15bd6148..8ce3b8485f 100644--- a/src/views/admin/partials/widget-settings.tpl+++ b/src/views/admin/partials/widget-settings.tpl@@ -1,14 +1,14 @@<br />-<label>Title</label>-<input type="text" class="form-control" name="title" placeholder="Title (only shown on some containers)" /><br />+<label>[[admin/extend/widgets:title]]</label>+<input type="text" class="form-control" name="title" placeholder="[[admin/extend/widgets:title.placeholder]]" /><br />-<label>Container</label>-<textarea rows="4" class="form-control container-html" name="container" placeholder="Drag and drop a container or enter HTML here."></textarea>+<label>[[admin/extend/widgets:container]]</label>+<textarea rows="4" class="form-control container-html" name="container" placeholder="[[admin/extend/widgets:container.placeholder]]"></textarea><br/><div class="row"><div class="col-lg-6">- <label>Show to groups</label>+ <label>[[admin/extend/widgets:show-to-groups]]</label><select name="groups" class="form-control" multiple size="10"><!-- BEGIN groups --><option value="{groups.displayName}">{groups.displayName}</option>@@ -16,7 +16,7 @@</select></div><div class="col-lg-6">- <label>Hide from groups</label>+ <label>[[admin/extend/widgets:hide-from-groups]]</label><select name="groups" class="form-control" multiple size="10"><!-- BEGIN groups --><option value="{groups.displayName}">{groups.displayName}</option>@@ -26,5 +26,5 @@</div><div class="checkbox">-<label><input name="hide-mobile" type="checkbox"> Hide on mobile</input></label>+<label><input name="hide-mobile" type="checkbox"> [[admin/extend/widgets:hide-on-mobile]]</input></label></div>