Skip to content

Commit

Permalink
Updated various GUI settings descriptions (#8333)
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink authored Dec 11, 2024
2 parents e863899 + 3f2434e commit 001dbe5
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/tribler/ui/public/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"EnableUTP": "Enabled bandwidth management (uTP)",
"MaxConnections": "Max connections per download",
"ZeroIsUnlimited": "0 = unlimited",
"MinusOneIsUnlimited": "-1 = unlimited",
"Password": "Password",
"UploadRate": "Upload rate limit",
"DownloadRate": "Download rate limit",
Expand All @@ -51,6 +52,8 @@
"SeedingNote": "Note that these settings also apply to existing downloads.",
"MinHops": "High speed\nMinimum anonymity",
"MaxHops": "Low speed\nHigh anonymity",
"HopInfo": "Decide how many proxies should be between you and the BitTorrent network by default. You can choose from 1, 2, or 3 proxies. The more you add, the harder it will be to discover you, but your download speed will also be lower.",
"ForMoreInfoRead": "For more information, read",
"EnableDevMode": "Enable developer mode",
"EnableStats": "Enable network statistics (requires restart)",
"LogDir": "Log directory",
Expand Down Expand Up @@ -127,6 +130,7 @@
"HTTP": "HTTP",
"HTTPAuth": "HTTP with authentication",
"WebServerSettings": "Web server settings",
"ZeroIsRandomPort": "A value of 0 lets your Operating System decide a random free port (recommended).",
"VersionCurrent": "Current version",
"VersionOld": "Old version",
"VersionAvailable": "NEW VERSION AVAILABLE",
Expand Down
4 changes: 4 additions & 0 deletions src/tribler/ui/public/locales/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"EnableUTP": "Ancho de banda activado gestión (uTP)",
"MaxConnections": "Conexiones máximas por descarga",
"ZeroIsUnlimited": "0 = ilimitadas",
"MinusOneIsUnlimited": "-1 = ilimitadas",
"Password": "Contraseña",
"UploadRate": "Límite de velocidad de subida",
"DownloadRate": "Límite de velocidad de descarga",
Expand All @@ -51,6 +52,8 @@
"SeedingNote": "Tenga en cuenta que estos ajustes también se aplican a las descargas existentes.",
"MinHops": "Alta velocidad\nMínimo anonimato",
"MaxHops": "Baja velocidad\nAlto anonimato",
"HopInfo": "Decida cuántos servidores proxy debe haber entre usted y la red BitTorrent de forma predeterminada. Puede elegir entre 1, 2 o 3 proxies. Cuanto más agregues, más difícil será descubrirte, pero tu velocidad de descarga también será menor.",
"ForMoreInfoRead": "Para más información, lea",
"EnableDevMode": "Activar el modo desarrollador",
"EnableStats": "Activar las estadísticas de red (requiere reinicio)",
"LogDir": "Carpeta de registros",
Expand Down Expand Up @@ -127,6 +130,7 @@
"HTTP": "HTTP",
"HTTPAuth": "HTTP con autenticación",
"WebServerSettings": "Configurações do servidor web",
"ZeroIsRandomPort": "Un valor de 0 permite que su sistema operativo decida un puerto libre aleatorio (recomendado).",
"VersionCurrent": "Versión actual",
"VersionOld": "Versión antigua",
"VersionAvailable": "NUEVA VERSIÓN DISPONIBLE",
Expand Down
4 changes: 4 additions & 0 deletions src/tribler/ui/public/locales/ko_KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"EnableUTP": "활성화된 대역폭 관리(uTP)",
"MaxConnections": "내려받기당 최대 연결 수",
"ZeroIsUnlimited": "0 = 무제한",
"MinusOneIsUnlimited": "-1 = 무제한",
"Password": "비밀번호",
"UploadRate": "올리기 속도 제한",
"DownloadRate": "내려받기 속도 제한",
Expand All @@ -51,6 +52,8 @@
"SeedingNote": "해당 설정은 기존 내려받기에도 적용됩니다.",
"MinHops": "고속\n최소 익명성",
"MaxHops": "저속\n높은 익명성",
"HopInfo": "기본적으로 귀하와 BitTorrent 네트워크 사이에 몇 개의 프록시가 있어야 하는지 결정하세요. 1개, 2개 또는 3개의 프록시 중에서 선택할 수 있습니다. 더 많이 추가할수록 사용자를 발견하기가 더 어려워지지만 다운로드 속도도 느려집니다.",
"ForMoreInfoRead": "자세한 내용은 다음을 읽어보세요.",
"EnableDevMode": "개발자 모드 사용",
"EnableStats": "네트워크 통계 사용(다시 시작해야 함)",
"LogDir": "로그 디렉터리",
Expand Down Expand Up @@ -124,6 +127,7 @@
"HTTP": "HTTP",
"HTTPAuth": "인증이 포함된 HTTP",
"WebServerSettings": "웹 서버 설정",
"ZeroIsRandomPort": "값이 0이면 운영 체제에서 임의의 여유 포트를 결정할 수 있습니다(권장).",
"VersionCurrent": "현재 버전",
"VersionOld": "이전 버전",
"VersionAvailable": "새로운 버전 이용 가능",
Expand Down
4 changes: 4 additions & 0 deletions src/tribler/ui/public/locales/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"BittorrentFeatures": "Recursos BitTorrent",
"MaxConnections": "Máximo de conexões por download",
"ZeroIsUnlimited": "0 = sem limites",
"MinusOneIsUnlimited": "-1 = sem limites",
"Password": "Senha",
"UploadRate": "Limite de upload",
"DownloadRate": "Limite de upload",
Expand All @@ -49,6 +50,8 @@
"SeedingNote": "Essas configurações também se aplicam à downloads já existentes",
"MinHops": "Alta Velocidade\nBaixa anonimidade",
"MaxHops": "Baixa Velocidade\nAlta anonimidade",
"HopInfo": "Decida quantos proxies devem existir entre você e a rede BitTorrent por padrão. Você pode escolher entre 1, 2 ou 3 proxies. Quanto mais você adicionar, mais difícil será descobrir você, mas sua velocidade de download também será menor.",
"ForMoreInfoRead": "Para mais informações, leia",
"EnableDevMode": "Ativar o modo de desenvolvedor",
"EnableStats": "Ativar estatísticas de rede (requer reinicialização)",
"LogDir": "Diretório de registro",
Expand Down Expand Up @@ -121,6 +124,7 @@
"HTTP": "HTTP",
"HTTPAuth": "HTTP com autenticação",
"WebServerSettings": "Configurações do servidor web",
"ZeroIsRandomPort": "Um valor 0 permite que seu sistema operacional decida uma porta livre aleatória (recomendado).",
"VersionCurrent": "Versão atual",
"VersionOld": "Versão antiga",
"VersionAvailable": "NOVA VERSÃO DISPONÍVEL",
Expand Down
4 changes: 4 additions & 0 deletions src/tribler/ui/public/locales/ru_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"EnableUTP": "Использовать uTP",
"MaxConnections": "Макс. число соединений",
"ZeroIsUnlimited": "0 = без ограничения",
"MinusOneIsUnlimited": "-1 = без ограничения",
"Password": "Пароль",
"UploadRate": "Исходящий трафик",
"DownloadRate": "Входящий трафик",
Expand All @@ -52,6 +53,8 @@
"SeedingNote": "Обратите внимание, что эти настройки применяются",
"MinHops": "Высокая скорость\nМинимальная анонимность",
"MaxHops": "Низкая скорость\nМаксимальная анонимность",
"HopInfo": "Решите, сколько прокси должно быть между вами и сетью BitTorrent по умолчанию. Вы можете выбрать один, два или три прокси. Чем больше вы добавите, тем сложнее будет вас найти, но и скорость загрузки будет ниже.",
"ForMoreInfoRead": "Для получения дополнительной информации читайте",
"EnableDevMode": "Включить "режим разработчика"",
"EnableStats": "Включить сбор сетевой статистики",
"LogDir": "Папка журнала",
Expand Down Expand Up @@ -128,6 +131,7 @@
"HTTP": "HTTP",
"HTTPAuth": "HTTP с аутентификацией",
"WebServerSettings": "Настройки веб-сервера",
"ZeroIsRandomPort": "Значение 0 позволяет вашей операционной системе выбирать случайный свободный порт (рекомендуется).",
"VersionCurrent": "Текущая версия",
"VersionOld": "Старая версия",
"VersionAvailable": "ДОСТУПНА НОВАЯ ВЕРСИЯ",
Expand Down
4 changes: 4 additions & 0 deletions src/tribler/ui/public/locales/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"EnableUTP": "启用带宽管理(uTP)",
"MaxConnections": "每个下载任务的最大连接数",
"ZeroIsUnlimited": "0 = 无限制",
"MinusOneIsUnlimited": "-1 = 无限制",
"Password": "密码",
"UploadRate": "上传速率限制",
"DownloadRate": "下载速率限制",
Expand All @@ -50,6 +51,8 @@
"SeedingNote": "注意这些设置也会应用到现有的下载任务。",
"MinHops": "高速\n低匿名性",
"MaxHops": "低速\n高匿名性",
"HopInfo": "决定默认情况下您和 BitTorrent 网络之间应有多少代理。 您可以选择 1、2 或 3 个代理。 添加的越多,就越难被发现,但你的下载速度也会降低。",
"ForMoreInfoRead": "欲了解更多信息,请阅读",
"EnableDevMode": "启用开发者模式",
"EnableStats": "启用网络统计(需要重启)",
"LogDir": "日志目录",
Expand Down Expand Up @@ -127,6 +130,7 @@
"HTTP": "HTTP",
"HTTPAuth": "带身份验证的 HTTP和",
"WebServerSettings": "网络服务器设置",
"ZeroIsRandomPort": "值 0 让您的操作系统决定随机的空闲端口(推荐)。",
"VersionCurrent": "当前版本",
"VersionOld": "旧版",
"VersionAvailable": "新版本上线",
Expand Down
17 changes: 15 additions & 2 deletions src/tribler/ui/src/pages/Settings/Anonymity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,20 @@ export default function Anonimity() {
return null;
}

function hopsToString(hops: number | undefined) {
switch(hops){
case 3: {return t("ThreeHops");}
case 2: {return t("TwoHops");}
default: {return t("OneHop");}
}
}

return (
<div className="p-6 w-full">
<div className="p-6 w-full max-w-[700px]">
<p>{t('HopInfo')}</p>
<br />
<p>{t('ForMoreInfoRead')} <a href="https://www.tribler.org/anonymity.html" className="font-semibold">https://www.tribler.org/anonymity.html</a>.</p>
<br />
<div className="flex items-center py-4">
<div className="whitespace-pre-line text-xs text-center px-2">
{t('MinHops')}
Expand Down Expand Up @@ -56,7 +68,8 @@ export default function Anonimity() {
{t('MaxHops')}
</div>
</div>

<div className="flex justify-center w-full"><span className="text-xl text-muted-foreground font-bold">{hopsToString(settings?.libtorrent?.download_defaults?.number_hops)}</span></div>
<br />
<SaveButton
onClick={async () => {
if (settings){
Expand Down
2 changes: 1 addition & 1 deletion src/tribler/ui/src/pages/Settings/Connection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default function Connection() {
}}
/>
<div></div>
<p className="text-xs p-0 pb-4 text-muted-foreground">{t('ZeroIsUnlimited')}</p>
<p className="text-xs p-0 pb-4 text-muted-foreground">{t('MinusOneIsUnlimited')}</p>
</div>

<SaveButton
Expand Down
1 change: 1 addition & 0 deletions src/tribler/ui/src/pages/Settings/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default function General() {
}}
/>
</div>
<p className="text-xs p-0 pb-4 text-muted-foreground">{t('ZeroIsRandomPort')}</p>

<div className="pt-5 py-2 font-semibold">{t('DefaultDownloadSettings')}</div>
<div className="py-2 flex items-center">
Expand Down

0 comments on commit 001dbe5

Please sign in to comment.