diff --git a/web/src/App.tsx b/web/src/App.tsx
index 11083d1..64187c4 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -6393,8 +6393,6 @@ function DownloadsPanel() {
);
}
-const CHAT_MAX_LINES_OPTIONS = [100, 200, 500, 1000, 2000];
-const CHAT_RESTORE_OPTIONS = [10, 50, 100, 500];
const CHAT_FONTS = [
"Arial",
"Verdana",
@@ -6420,13 +6418,19 @@ function ChatPanel() {
0} onChange={(e) => set({ [key]: e.target.checked ? 100 : 0 })} />
{t(`chatSettings.${key}`)}
-
+
+ {t("chatSettings.last")}{" "}
+ set({ [key]: Math.min(1000, Math.max(1, Number(e.target.value) || 1)) })}
+ />{" "}
+ {t("chatSettings.linesUnit")}
+
);
return (
@@ -6438,13 +6442,16 @@ function ChatPanel() {
{t("chatSettings.font")}
diff --git a/web/src/locales/cs-CZ.json b/web/src/locales/cs-CZ.json
index a757c03..20e9599 100644
--- a/web/src/locales/cs-CZ.json
+++ b/web/src/locales/cs-CZ.json
@@ -777,7 +777,6 @@
"chatSettings.subtitle": "Nastavení chatu",
"chatSettings.window": "Okno chatu",
"chatSettings.maxLines": "Maximální počet řádků:",
- "chatSettings.lines": "{count} řádků",
"chatSettings.font": "Písmo:",
"chatSettings.fontDefault": "Výchozí",
"chatSettings.fontReset": "Obnovit písmo",
@@ -790,9 +789,10 @@
"chatSettings.restore": "Načíst protokoly",
"chatSettings.restoreChannelLines": "Načíst protokoly chatu kanálu",
"chatSettings.restorePrivateLines": "Načíst protokoly soukromých chatů",
- "chatSettings.lastLines": "posledních {count} řádků",
"chatSettings.notify": "Upozornění na příchozí zprávy",
"chatSettings.notifyServer": "Server",
"chatSettings.notifyChannel": "Kanál",
- "chatSettings.notifyPrivate": "Soukromé"
+ "chatSettings.notifyPrivate": "Soukromé",
+ "chatSettings.linesUnit": "řádků",
+ "chatSettings.last": "posledních"
}
diff --git a/web/src/locales/de.json b/web/src/locales/de.json
index 395c501..e0e7429 100644
--- a/web/src/locales/de.json
+++ b/web/src/locales/de.json
@@ -777,7 +777,6 @@
"chatSettings.subtitle": "Chat Einstellungen",
"chatSettings.window": "Chat Fenster",
"chatSettings.maxLines": "Maximale Anzahl an Zeilen:",
- "chatSettings.lines": "{count} Zeilen",
"chatSettings.font": "Schrift:",
"chatSettings.fontDefault": "Standard",
"chatSettings.fontReset": "Schrift zurücksetzen",
@@ -790,9 +789,10 @@
"chatSettings.restore": "Protokolle aktualisieren",
"chatSettings.restoreChannelLines": "Channel Chat Protokolle aktualisieren",
"chatSettings.restorePrivateLines": "Private Chat Protokolle aktualisieren",
- "chatSettings.lastLines": "letzten {count} Zeilen",
"chatSettings.notify": "Hinweis für eingehende Nachrichten",
"chatSettings.notifyServer": "Server",
"chatSettings.notifyChannel": "Channel",
- "chatSettings.notifyPrivate": "Privat"
+ "chatSettings.notifyPrivate": "Privat",
+ "chatSettings.linesUnit": "Zeilen",
+ "chatSettings.last": "letzten"
}
diff --git a/web/src/locales/en.json b/web/src/locales/en.json
index b5e0149..3d46d0d 100644
--- a/web/src/locales/en.json
+++ b/web/src/locales/en.json
@@ -777,7 +777,6 @@
"chatSettings.subtitle": "Chat settings",
"chatSettings.window": "Chat window",
"chatSettings.maxLines": "Maximum number of lines:",
- "chatSettings.lines": "{count} lines",
"chatSettings.font": "Font:",
"chatSettings.fontDefault": "Default",
"chatSettings.fontReset": "Reset font",
@@ -790,9 +789,10 @@
"chatSettings.restore": "Reload logs",
"chatSettings.restoreChannelLines": "Reload channel chat logs",
"chatSettings.restorePrivateLines": "Reload private chat logs",
- "chatSettings.lastLines": "last {count} lines",
"chatSettings.notify": "Notify on incoming messages",
"chatSettings.notifyServer": "Server",
"chatSettings.notifyChannel": "Channel",
- "chatSettings.notifyPrivate": "Private"
+ "chatSettings.notifyPrivate": "Private",
+ "chatSettings.linesUnit": "lines",
+ "chatSettings.last": "last"
}
diff --git a/web/src/locales/fa.json b/web/src/locales/fa.json
index 72e053d..33cf191 100644
--- a/web/src/locales/fa.json
+++ b/web/src/locales/fa.json
@@ -776,7 +776,6 @@
"chatSettings.subtitle": "تنظیمات چت",
"chatSettings.window": "پنجره چت",
"chatSettings.maxLines": "حداکثر تعداد خطوط:",
- "chatSettings.lines": "{count} خط",
"chatSettings.font": "قلم:",
"chatSettings.fontDefault": "پیشفرض",
"chatSettings.fontReset": "بازنشانی قلم",
@@ -789,9 +788,10 @@
"chatSettings.restore": "بارگذاری گزارشها",
"chatSettings.restoreChannelLines": "بارگذاری گزارش چت کانال",
"chatSettings.restorePrivateLines": "بارگذاری گزارش چت خصوصی",
- "chatSettings.lastLines": "{count} خط آخر",
"chatSettings.notify": "اعلان برای پیامهای ورودی",
"chatSettings.notifyServer": "سرور",
"chatSettings.notifyChannel": "کانال",
- "chatSettings.notifyPrivate": "خصوصی"
+ "chatSettings.notifyPrivate": "خصوصی",
+ "chatSettings.linesUnit": "خط",
+ "chatSettings.last": "آخرین"
}
diff --git a/web/src/locales/zh-CN.json b/web/src/locales/zh-CN.json
index 893e960..13512bc 100644
--- a/web/src/locales/zh-CN.json
+++ b/web/src/locales/zh-CN.json
@@ -776,7 +776,6 @@
"chatSettings.subtitle": "聊天设置",
"chatSettings.window": "聊天窗口",
"chatSettings.maxLines": "最大行数:",
- "chatSettings.lines": "{count} 行",
"chatSettings.font": "字体:",
"chatSettings.fontDefault": "默认",
"chatSettings.fontReset": "重置字体",
@@ -789,9 +788,10 @@
"chatSettings.restore": "加载记录",
"chatSettings.restoreChannelLines": "加载频道聊天记录",
"chatSettings.restorePrivateLines": "加载私聊记录",
- "chatSettings.lastLines": "最近 {count} 行",
"chatSettings.notify": "新消息提示",
"chatSettings.notifyServer": "服务器",
"chatSettings.notifyChannel": "频道",
- "chatSettings.notifyPrivate": "私聊"
+ "chatSettings.notifyPrivate": "私聊",
+ "chatSettings.linesUnit": "行",
+ "chatSettings.last": "最近"
}