From e613865bd32e4cc7c05fa328a36270f62b286bd2 Mon Sep 17 00:00:00 2001
From: Florent Rougon <f.rougon@free.fr>
Date: Sat, 11 Mar 2017 10:15:33 +0100
Subject: [PATCH] Document fgfs' option --log-dir in English and French (for
 'fgfs --help -v')

---
 Translations/en/options.xml | 1 +
 Translations/fr/options.xml | 1 +
 options.xml                 | 6 ++++++
 3 files changed, 8 insertions(+)

diff --git a/Translations/en/options.xml b/Translations/en/options.xml
index e9b7661d6..539b77c31 100644
--- a/Translations/en/options.xml
+++ b/Translations/en/options.xml
@@ -252,5 +252,6 @@
 	<trace-write-desc>Trace the writes for a property;</trace-write-desc>
 	<log-level-desc>Specify which logging level to use</log-level-desc>
 	<log-class-desc>Specify which logging class(es) to use</log-class-desc>
+	<log-dir-desc>Log to directory DIR. The special value 'desktop' causes logging to the desktop (OS-dependent location). This option may be given several times, using a different value each time. Inside the specified directory, the written log file is named FlightGear_YYYY-MM-DD_&lt;num&gt;.log, where &lt;num&gt; takes the values 0, 1, 2, etc.</log-dir-desc>
 
 </PropertyList>
diff --git a/Translations/fr/options.xml b/Translations/fr/options.xml
index 43098f2d0..9fc9f5d10 100644
--- a/Translations/fr/options.xml
+++ b/Translations/fr/options.xml
@@ -269,5 +269,6 @@
     <trace-write-desc>Trace les �critures pour une propri�t�.</trace-write-desc>   <!-- English: "Trace the writes for a property;" -->
     <log-level-desc>Pr�cise quel niveau de journalisation utiliser.</log-level-desc>   <!-- English: "Specify which logging level to use" -->
     <log-class-desc>Pr�cise quelles classe(s) de journalisation utiliser.</log-class-desc>   <!-- English: "Specify which logging class(es) to use" -->
+    <log-dir-desc>�crit le journal dans le r�pertoire DIR. La valeur particuli�re 'desktop' fait �crire un fichier journal sur le bureau (endroit qui d�pend du syst�me d'exploitation). Cette option peut �tre sp�cifi�e plusieurs fois � condition de passer une valeur diff�rente � chaque fois. � l'int�rieur du r�pertoire choisi, le fichier journal s'appelle FlightGear_YYYY-MM-DD_&lt;num&gt;.log, o� &lt;num&gt; prend les valeurs 0, 1, 2, etc.</log-dir-desc>   <!-- English: "Log to directory DIR. The special value 'desktop' causes logging to the desktop (OS-dependent location). This option may be given several times, using a different value each time. Inside the specified directory, the written log file is named FlightGear_YYYY-MM-DD_&lt;num&gt;.log, where &lt;num&gt; takes the values 0, 1, 2, etc." -->
 
 </PropertyList>
diff --git a/options.xml b/options.xml
index eb3c619a8..0c72c1c05 100644
--- a/options.xml
+++ b/options.xml
@@ -1178,6 +1178,12 @@
     <description>log-class-desc</description>
    </option>
 
+   <option>
+    <name>log-dir</name>
+    <arg>DIR</arg>
+    <description>log-dir-desc</description>
+   </option>
+
    <option>
     <name>trace-read</name>
     <arg>property</arg>