Skip to content

Commit 6726782

Browse files
Fix plugin description i18n fallback and folder warning symbols
1 parent 621f65d commit 6726782

24 files changed

Lines changed: 68 additions & 24 deletions

archive/folderview.plus-2026.03.21.03.txz.sha256

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fc1d1a5d43902f95c5c7e92e6edca66b0ccc5b89ebfacc805b70823f3b9803ff folderview.plus-2026.03.21.34.txz

folderview.plus.plg

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66
<!ENTITY launch "Settings/FolderViewPlus">
77
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
88
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/dev/folderview.plus.plg">
9-
<!ENTITY version "2026.03.21.33">
10-
<!ENTITY md5 "44335c8e38f9543aa34afba5631add66">
9+
<!ENTITY version "2026.03.21.34">
10+
<!ENTITY md5 "b0696373a8c7182c98a11a369b113b25">
1111
]>
1212

1313
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon="folder-icon.png" support="https://forums.unraid.net/topic/197631-plugin-folderview-plus/" min="7.0.0">
1414
<CHANGES>
1515

16+
###2026.03.21.34
17+
- Fix: Plugin tab install description no longer renders the raw `folderviewplus-desc` placeholder key.
18+
- Fix: Folder editor recommendation warnings no longer show mojibake prefix symbols (safe ASCII list markers).
19+
- Compatibility: Added `folderviewplus-desc` locale key across all shipped languages to keep locale packs aligned.
20+
- Quality: Extended language-usage guard coverage to include plugin `README.md` i18n keys and prevent future drift.
21+
22+
1623
###2026.03.21.33
1724
- Feature: Added a dedicated Templates step to the Setup Assistant `new install` route for both Docker and VMs.
1825
- Feature: Added starter-template category selection, per-folder template toggles, and Smart auto-assign previews during wizard setup.

scripts/lang_usage_guard.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ while (queue.length > 0) {
6161
queue.push(fullPath);
6262
continue;
6363
}
64-
if (!/\.(page|js)$/i.test(entry.name)) {
64+
const isRuntimeSource = /\.(page|js)$/i.test(entry.name);
65+
const isPluginReadme = relativePath === 'README.md';
66+
if (!isRuntimeSource && !isPluginReadme) {
6567
continue;
6668
}
6769
sourceFiles.push(fullPath);
Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
####FolderView Plus###
2-
FolderView Plus lets you create folders for grouping Dockers and VMs together to help with organization. Especially useful if you're using docker-compose.
2+
<span id="folderviewplus-desc">Create folders to organize Docker containers and VMs with smart nesting, starter templates, dashboard views, and one-click folder actions.</span>
33
Getting Started: A new button named "Add Folder" will appear at the bottom of the docker/VM tab next to "Add Container/VM".
44
<script src="/plugins/folderview.plus/scripts/include/CLDRPluralRuleParser.js"></script>
55
<script src="/plugins/folderview.plus/scripts/include/jquery.i18n.js"></script>
@@ -9,4 +9,22 @@ Getting Started: A new button named "Add Folder" will appear at the bottom of th
99
<script src="/plugins/folderview.plus/scripts/include/jquery.i18n.parser.js"></script>
1010
<script src="/plugins/folderview.plus/scripts/include/jquery.i18n.emitter.js"></script>
1111
<script src="/plugins/folderview.plus/scripts/include/jquery.i18n.emitter.bidi.js"></script>
12-
<script id="folderviewplus-script">const i18nc = {'locale': document.documentElement.lang};const i18nl = {'en': '/plugins/folderview.plus/langs/en.json'};i18nl[`${document.documentElement.lang}`] = `/plugins/folderview.plus/langs/${document.documentElement.lang}.json`;$.i18n(i18nc).load(i18nl).then(() => {$('#folderviewplus-script').parent()[0].childNodes[0].nodeValue = $.i18n('folderviewplus-desc')}, ()=>{});</script>
12+
<script id="folderviewplus-script">
13+
(() => {
14+
const target = document.getElementById('folderviewplus-desc');
15+
if (!target) {
16+
return;
17+
}
18+
const fallback = String(target.textContent || '').trim();
19+
const locale = document.documentElement.lang || 'en';
20+
const i18nc = { locale };
21+
const i18nl = { en: '/plugins/folderview.plus/langs/en.json' };
22+
i18nl[locale] = `/plugins/folderview.plus/langs/${locale}.json`;
23+
$.i18n(i18nc).load(i18nl).then(() => {
24+
const translated = String($.i18n('folderviewplus-desc') || '').trim();
25+
target.textContent = translated && translated !== 'folderviewplus-desc' ? translated : fallback;
26+
}, () => {
27+
target.textContent = fallback;
28+
});
29+
})();
30+
</script>

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/langs/cs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,6 @@
160160
"folder-webui": "Folder WebUI:",
161161
"folder-webui-tooltip": "Default folder WebUI URL.",
162162
"folder-webui-url": "WebUI URL:",
163-
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu."
163+
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu.",
164+
"folderviewplus-desc": "Create folders to organize Docker containers and VMs with smart nesting, starter templates, dashboard views, and one-click folder actions."
164165
}

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/langs/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,6 @@
160160
"folder-webui": "Folder WebUI:",
161161
"folder-webui-tooltip": "Default folder WebUI URL.",
162162
"folder-webui-url": "WebUI URL:",
163-
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu."
163+
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu.",
164+
"folderviewplus-desc": "Create folders to organize Docker containers and VMs with smart nesting, starter templates, dashboard views, and one-click folder actions."
164165
}

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/langs/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,6 @@
160160
"folder-webui": "Folder WebUI:",
161161
"folder-webui-tooltip": "Default folder WebUI URL.",
162162
"folder-webui-url": "WebUI URL:",
163-
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu."
163+
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu.",
164+
"folderviewplus-desc": "Create folders to organize Docker containers and VMs with smart nesting, starter templates, dashboard views, and one-click folder actions."
164165
}

src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/langs/es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,6 @@
160160
"folder-webui": "Folder WebUI:",
161161
"folder-webui-tooltip": "Default folder WebUI URL.",
162162
"folder-webui-url": "WebUI URL:",
163-
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu."
163+
"folder-webui-url-tooltip": "The URL to open when clicking the WebUI button in the folder context menu.",
164+
"folderviewplus-desc": "Create folders to organize Docker containers and VMs with smart nesting, starter templates, dashboard views, and one-click folder actions."
164165
}

0 commit comments

Comments
 (0)