diff --git a/public/s/js/sidebar-activity.js b/public/s/js/sidebar-activity.js
index 498100b..16f84dc 100644
--- a/public/s/js/sidebar-activity.js
+++ b/public/s/js/sidebar-activity.js
@@ -587,13 +587,13 @@
// Also check after a delay to account for image/emoji loading shifts
setTimeout(checkOverflow, 500);
} else if (!hasCache) {
- container.innerHTML = '
No recent activity.
';
+ container.innerHTML = '' + (window.f0ckI18n?.sidebar_no_activity || 'No recent activity.') + '
';
hasMore = false;
}
} catch (e) {
console.error("Sidebar Activity: Failed to load activity", e);
if (!hasCache) {
- container.innerHTML = 'Failed to load.
';
+ container.innerHTML = '' + (window.f0ckI18n?.sidebar_failed_to_load || 'Failed to load.') + '
';
}
hasMore = false;
} finally {
@@ -615,7 +615,7 @@
const sentinel = document.createElement('div');
sentinel.id = 'sidebar-load-more-sentinel';
sentinel.style.cssText = 'text-align:center;padding:8px 0;font-size:0.78em;color:#666;';
- sentinel.textContent = 'Loading…';
+ sentinel.textContent = window.f0ckI18n?.sidebar_loading_more || 'Loading…';
container.appendChild(sentinel);
try {
@@ -664,7 +664,7 @@
// Show end-of-feed indicator
const end = document.createElement('div');
end.style.cssText = 'text-align:center;padding:8px 0;font-size:0.75em;color:#444;';
- end.textContent = '─ end of activity ─';
+ end.textContent = window.f0ckI18n?.sidebar_end_of_activity || '─ end of activity ─';
container.appendChild(end);
}
} catch (e) {
diff --git a/src/inc/locales/de.json b/src/inc/locales/de.json
index 55e2c71..41bc73c 100644
--- a/src/inc/locales/de.json
+++ b/src/inc/locales/de.json
@@ -418,6 +418,10 @@
},
"sidebar": {
"loading_activity": "Aktivität wird geladen...",
+ "no_activity": "Keine kürzliche Aktivität.",
+ "failed_to_load": "Laden fehlgeschlagen.",
+ "loading_more": "Laden…",
+ "end_of_activity": "─ Ende der Aktivität ─",
"view": "Ansehen",
"read_more": "mehr sehen",
"see_less": "weniger anzeigen",
diff --git a/src/inc/locales/en.json b/src/inc/locales/en.json
index 3ba85f6..bb6307a 100644
--- a/src/inc/locales/en.json
+++ b/src/inc/locales/en.json
@@ -422,6 +422,10 @@
},
"sidebar": {
"loading_activity": "Loading activity...",
+ "no_activity": "No recent activity.",
+ "failed_to_load": "Failed to load.",
+ "loading_more": "Loading…",
+ "end_of_activity": "─ end of activity ─",
"view": "View",
"read_more": "read more",
"see_less": "see less",
diff --git a/src/inc/locales/nl.json b/src/inc/locales/nl.json
index a25eb2d..0522078 100644
--- a/src/inc/locales/nl.json
+++ b/src/inc/locales/nl.json
@@ -418,6 +418,10 @@
},
"sidebar": {
"loading_activity": "Activiteit laden...",
+ "no_activity": "Geen recente activiteit.",
+ "failed_to_load": "Laden mislukt.",
+ "loading_more": "Laden…",
+ "end_of_activity": "─ einde van activiteit ─",
"view": "Bekijken",
"read_more": "lees meer",
"see_less": "zie minder",
diff --git a/src/inc/locales/zange.json b/src/inc/locales/zange.json
index 2150720..7f09800 100644
--- a/src/inc/locales/zange.json
+++ b/src/inc/locales/zange.json
@@ -419,6 +419,10 @@
},
"sidebar": {
"loading_activity": "Aktivität wird geladen...",
+ "no_activity": "Noch keine Aktivität",
+ "failed_to_load": "Ladung gescheitert.",
+ "loading_more": "Ladung wird aufbereitet…",
+ "end_of_activity": "─ Ende des Aktivitätsfadens ─",
"view": "Ansehen",
"read_more": "mehr sehen",
"see_less": "weniger sehen",
diff --git a/views/snippets/footer.html b/views/snippets/footer.html
index a188490..2101d04 100644
--- a/views/snippets/footer.html
+++ b/views/snippets/footer.html
@@ -428,6 +428,10 @@
sidebar_see_less: "{{ t('sidebar.see_less') }}",
sidebar_show_full_comment: "{{ t('sidebar.show_full_comment') }}",
sidebar_loading_activity: "{{ t('sidebar.loading_activity') }}",
+ sidebar_no_activity: "{{ t('sidebar.no_activity') }}",
+ sidebar_failed_to_load: "{{ t('sidebar.failed_to_load') }}",
+ sidebar_loading_more: "{{ t('sidebar.loading_more') }}",
+ sidebar_end_of_activity: "{{ t('sidebar.end_of_activity') }}",
select_file: "{{ t('upload_btn.select_file') }}",
enter_url: "{{ t('upload_btn.enter_url') }}",
tags_required: "{{ t('upload_btn.tags_required') }}",