source/text/sbasic/shared/03/sf_l10n.xhp |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 2fc5ab8916f741bfea022ccfe770ce65efb90494
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Nov 25 14:13:25 2023 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sun Nov 26 11:55:16 2023 +0100

    Related tdf#158364: improve help for ExportToPOTFile
    
    There's no directory used by default so LO requires the complete (with fthe 
path) file name.
    
    Change-Id: Ib28f2593f0e4385fbc8a0e7770c3575f05a15c6f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/159899
    Tested-by: Jenkins
    Reviewed-by: Jean-Pierre Ledure <j...@ledure.be>

diff --git a/source/text/sbasic/shared/03/sf_l10n.xhp 
b/source/text/sbasic/shared/03/sf_l10n.xhp
index 317be9c8c0..986ef01b8e 100644
--- a/source/text/sbasic/shared/03/sf_l10n.xhp
+++ b/source/text/sbasic/shared/03/sf_l10n.xhp
@@ -283,14 +283,14 @@
       <paragraph role="bascode" localize="false" 
id="bas_id61585843652225">oDlg = CreateScriptService("Dialog", "GlobalScope", 
"Standard", "MyDialog")</paragraph>
       <paragraph role="bascode" localize="false" 
id="bas_id61585843652012">myPO = CreateScriptService("L10N")</paragraph>
       <paragraph role="bascode" localize="false" 
id="bas_id61585843653117">myPO.AddTextsFromDialog(oDlg)</paragraph>
-      <paragraph role="bascode" localize="false" 
id="bas_id68163786595435">myPO.ExportToPOTFile("en-US.pot")</paragraph>
+      <paragraph role="bascode" localize="false" 
id="bas_id68163786595435">myPO.ExportToPOTFile("C:\en-US.pot")</paragraph>
     </bascode>
     <embed href="text/sbasic/shared/00000003.xhp#In_Python"/>
     <pycode>
       <paragraph role="pycode" localize="false" id="pyc_id821625856085583">dlg 
= CreateScriptService("Dialog", "GlobalScope", "Standard", 
"Dialog1")</paragraph>
       <paragraph role="pycode" localize="false" 
id="pyc_id821625856440596">myPO = CreateScriptService("L10N")</paragraph>
       <paragraph role="pycode" localize="false" 
id="pyc_id521625856443065">myPO.AddTextsFromDialog(dlg)</paragraph>
-      <paragraph role="pycode" localize="false" 
id="pyc_id401637866328706">myPO.ExportToPOTFile("en-US.pot")</paragraph>
+      <paragraph role="pycode" localize="false" 
id="pyc_id401637866328706">myPO.ExportToPOTFile("C:\en-US.pot")</paragraph>
     </pycode>
 </section>
 
@@ -308,18 +308,18 @@
        <input>svc.ExportToPOTFile(filename: str, header: str = '', 
encoding:str = 'UTF-8'): bool</input>
      </paragraph>
      <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-     <paragraph role="paragraph" 
id="par_id31586102707537"><emph>filename</emph>: The output file in 
<literal>FileSystem.FileNaming</literal> notation.</paragraph>
+     <paragraph role="paragraph" 
id="par_id31586102707537"><emph>filename</emph>: The full output file name in 
<literal>FileSystem.FileNaming</literal> notation.</paragraph>
      <paragraph role="paragraph" id="par_id851586102707579" 
xml-lang="en-US"><emph>header</emph>: Comments that will be added on top of the 
generated POT file.</paragraph>
      <paragraph role="paragraph" id="par_id111614364686973">Do not include any 
leading "#" characters. If you want the header to be broken into multiple 
lines, insert escape sequences (\n) where relevant. A standard header will be 
added alongside the text specified in the <literal>header</literal> 
argument.</paragraph>
      <paragraph role="paragraph" id="par_id5158610270728" 
xml-lang="en-US"><emph>encoding</emph>: The character set to be used (Default = 
"UTF-8").</paragraph>
      <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
      <bascode>
        <paragraph role="bascode" localize="false" id="bas_id761625856867301">' 
Basic</paragraph>
-       <paragraph role="bascode" localize="false" 
id="bas_id891586102707992">myPO.ExportToPOTFile("myFile.pot", Header := "First 
line of the header\nSecond line of the header")</paragraph>
+       <paragraph role="bascode" localize="false" 
id="bas_id891586102707992">myPO.ExportToPOTFile("C:\myFile.pot", Header := 
"First line of the header\nSecond line of the header")</paragraph>
     </bascode>
     <pycode>
       <paragraph role="pycode" localize="false" id="pyc_id141625856892715"># 
Python</paragraph>
-      <paragraph role="pycode" localize="false" 
id="pyc_id131625856893020">myPO.ExportToPOTFile('myFile.pot', header = 'First 
line of the header\nSecond line of the header')</paragraph>
+      <paragraph role="pycode" localize="false" 
id="pyc_id131625856893020">myPO.ExportToPOTFile('C:\myFile.pot', header = 
'First line of the header\nSecond line of the header')</paragraph>
     </pycode>
     <note id="par_id581614364494235">The generated file should successfully 
pass the <literal>msgfmt --check</literal> GNU command.</note>
 </section>

Reply via email to