add missing i18n for sidebar

This commit is contained in:
2026-05-24 18:03:30 +02:00
parent 88fc872df6
commit d77936e58f
6 changed files with 24 additions and 4 deletions

View File

@@ -587,13 +587,13 @@
// Also check after a delay to account for image/emoji loading shifts // Also check after a delay to account for image/emoji loading shifts
setTimeout(checkOverflow, 500); setTimeout(checkOverflow, 500);
} else if (!hasCache) { } else if (!hasCache) {
container.innerHTML = '<div style="text-align:center;padding:20px;color:#888;">No recent activity.</div>'; container.innerHTML = '<div style="text-align:center;padding:20px;color:#888;">' + (window.f0ckI18n?.sidebar_no_activity || 'No recent activity.') + '</div>';
hasMore = false; hasMore = false;
} }
} catch (e) { } catch (e) {
console.error("Sidebar Activity: Failed to load activity", e); console.error("Sidebar Activity: Failed to load activity", e);
if (!hasCache) { if (!hasCache) {
container.innerHTML = '<div style="text-align:center;padding:20px;color:#888;">Failed to load.</div>'; container.innerHTML = '<div style="text-align:center;padding:20px;color:#888;">' + (window.f0ckI18n?.sidebar_failed_to_load || 'Failed to load.') + '</div>';
} }
hasMore = false; hasMore = false;
} finally { } finally {
@@ -615,7 +615,7 @@
const sentinel = document.createElement('div'); const sentinel = document.createElement('div');
sentinel.id = 'sidebar-load-more-sentinel'; sentinel.id = 'sidebar-load-more-sentinel';
sentinel.style.cssText = 'text-align:center;padding:8px 0;font-size:0.78em;color:#666;'; 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); container.appendChild(sentinel);
try { try {
@@ -664,7 +664,7 @@
// Show end-of-feed indicator // Show end-of-feed indicator
const end = document.createElement('div'); const end = document.createElement('div');
end.style.cssText = 'text-align:center;padding:8px 0;font-size:0.75em;color:#444;'; 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); container.appendChild(end);
} }
} catch (e) { } catch (e) {

View File

@@ -418,6 +418,10 @@
}, },
"sidebar": { "sidebar": {
"loading_activity": "Aktivität wird geladen...", "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", "view": "Ansehen",
"read_more": "mehr sehen", "read_more": "mehr sehen",
"see_less": "weniger anzeigen", "see_less": "weniger anzeigen",

View File

@@ -422,6 +422,10 @@
}, },
"sidebar": { "sidebar": {
"loading_activity": "Loading activity...", "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", "view": "View",
"read_more": "read more", "read_more": "read more",
"see_less": "see less", "see_less": "see less",

View File

@@ -418,6 +418,10 @@
}, },
"sidebar": { "sidebar": {
"loading_activity": "Activiteit laden...", "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", "view": "Bekijken",
"read_more": "lees meer", "read_more": "lees meer",
"see_less": "zie minder", "see_less": "zie minder",

View File

@@ -419,6 +419,10 @@
}, },
"sidebar": { "sidebar": {
"loading_activity": "Aktivität wird geladen...", "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", "view": "Ansehen",
"read_more": "mehr sehen", "read_more": "mehr sehen",
"see_less": "weniger sehen", "see_less": "weniger sehen",

View File

@@ -428,6 +428,10 @@
sidebar_see_less: "{{ t('sidebar.see_less') }}", sidebar_see_less: "{{ t('sidebar.see_less') }}",
sidebar_show_full_comment: "{{ t('sidebar.show_full_comment') }}", sidebar_show_full_comment: "{{ t('sidebar.show_full_comment') }}",
sidebar_loading_activity: "{{ t('sidebar.loading_activity') }}", 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') }}", select_file: "{{ t('upload_btn.select_file') }}",
enter_url: "{{ t('upload_btn.enter_url') }}", enter_url: "{{ t('upload_btn.enter_url') }}",
tags_required: "{{ t('upload_btn.tags_required') }}", tags_required: "{{ t('upload_btn.tags_required') }}",