From 4f8e4de907aee7ebc10fed8654180d6d2a31ffb4 Mon Sep 17 00:00:00 2001
From: Nico Alt <nicoalt@posteo.org>
Date: Wed, 10 Nov 2021 13:12:38 +0100
Subject: [PATCH] Make more help text translatable

Seems like we've missed this in
https://code.briarproject.org/briar/briar-desktop/-/merge_requests/35
---
 src/main/kotlin/org/briarproject/briar/desktop/Main.kt | 4 ++--
 src/main/resources/strings/BriarDesktop.properties     | 2 ++
 src/main/resources/strings/BriarDesktop_ar.properties  | 4 +++-
 src/main/resources/strings/BriarDesktop_de.properties  | 4 +++-
 src/main/resources/strings/BriarDesktop_es.properties  | 4 +++-
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/main/kotlin/org/briarproject/briar/desktop/Main.kt b/src/main/kotlin/org/briarproject/briar/desktop/Main.kt
index 9065db710c..ab5faf4f84 100644
--- a/src/main/kotlin/org/briarproject/briar/desktop/Main.kt
+++ b/src/main/kotlin/org/briarproject/briar/desktop/Main.kt
@@ -48,11 +48,11 @@ private class Main : CliktCommand(
     ).default(DEFAULT_DATA_DIR)
     private val socksPort by option(
         "--socks-port",
-        help = "Tor Socks Port"
+        help = i18n("main.help.tor.port.socks")
     ).int().default(DEFAULT_SOCKS_PORT)
     private val controlPort by option(
         "--control-port",
-        help = "Tor Control Port"
+        help = i18n("main.help.tor.port.control")
     ).int().default(DEFAULT_CONTROL_PORT)
 
     @OptIn(ExperimentalComposeUiApi::class)
diff --git a/src/main/resources/strings/BriarDesktop.properties b/src/main/resources/strings/BriarDesktop.properties
index 535f818d01..2d114cbd80 100644
--- a/src/main/resources/strings/BriarDesktop.properties
+++ b/src/main/resources/strings/BriarDesktop.properties
@@ -45,6 +45,8 @@ main.help.title=Briar Desktop Client
 main.help.debug=Enable printing of debug messages
 main.help.verbose=Print verbose log messages
 main.help.data=The directory where Briar will store its files. Default: {0}
+main.help.tor.port.socks=Tor Socks Port
+main.help.tor.port.control=Tor Control Port
 
 # Miscellaneous
 password=Password
diff --git a/src/main/resources/strings/BriarDesktop_ar.properties b/src/main/resources/strings/BriarDesktop_ar.properties
index 11b29ba8d5..bb4b078e55 100644
--- a/src/main/resources/strings/BriarDesktop_ar.properties
+++ b/src/main/resources/strings/BriarDesktop_ar.properties
@@ -54,4 +54,6 @@ registration.username=اسم المستخدم
 registration.register=إنشاء الحساب
 
 # Settings
-settings.theme=Change Theme
\ No newline at end of file
+settings.theme=Change Theme
+main.help.tor.port.socks=Tor Socks Port
+main.help.tor.port.control=Tor Control Port
\ No newline at end of file
diff --git a/src/main/resources/strings/BriarDesktop_de.properties b/src/main/resources/strings/BriarDesktop_de.properties
index 837aea2ab8..6bc301f326 100644
--- a/src/main/resources/strings/BriarDesktop_de.properties
+++ b/src/main/resources/strings/BriarDesktop_de.properties
@@ -54,4 +54,6 @@ registration.username=Benutzername
 registration.register=Konto erstellen
 
 # Settings
-settings.theme=Change Theme
\ No newline at end of file
+settings.theme=Change Theme
+main.help.tor.port.socks=Tor Socks Port
+main.help.tor.port.control=Tor Control Port
\ No newline at end of file
diff --git a/src/main/resources/strings/BriarDesktop_es.properties b/src/main/resources/strings/BriarDesktop_es.properties
index 38f2660951..62eb8d0802 100644
--- a/src/main/resources/strings/BriarDesktop_es.properties
+++ b/src/main/resources/strings/BriarDesktop_es.properties
@@ -54,4 +54,6 @@ registration.username=Nombre de usuario
 registration.register=Crear cuenta
 
 # Settings
-settings.theme=Change Theme
\ No newline at end of file
+settings.theme=Change Theme
+main.help.tor.port.socks=Tor Socks Port
+main.help.tor.port.control=Tor Control Port
\ No newline at end of file
-- 
GitLab