source/text/sbasic/shared/03/sf_string.xhp     |   16 ++++++++--------
 source/text/sbasic/shared/03/sf_textstream.xhp |   12 ++++++------
 source/text/sbasic/shared/03/sf_timer.xhp      |   10 +++++-----
 source/text/sbasic/shared/03/sf_ui.xhp         |    2 +-
 4 files changed, 20 insertions(+), 20 deletions(-)

New commits:
commit 8ec0053e3f8610f06c7f7eae0680549a1c9fd896
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Mon Mar 29 20:54:58 2021 +0200
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Tue Mar 30 13:49:39 2021 +0200

    Fixes localization in SF String, TextStream, Timer and UI help pages
    
    Change-Id: Ic860d9861006ba69b6d2b593877f2cfa39f31402
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/113286
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/source/text/sbasic/shared/03/sf_string.xhp 
b/source/text/sbasic/shared/03/sf_string.xhp
index 6ca6447c0..80d228c31 100644
--- a/source/text/sbasic/shared/03/sf_string.xhp
+++ b/source/text/sbasic/shared/03/sf_string.xhp
@@ -128,7 +128,7 @@
    </tablerow>
    <tablerow>
        <tablecell>
-           <paragraph id="par_id771611948706049" role="tablecontent">
+           <paragraph id="par_id771611948706049" role="tablecontent" 
localize="false">
              \n <br/> \r <br/> \t
            </paragraph>
        </tablecell>
@@ -146,7 +146,7 @@
        </tablecell>
    </tablerow>
    </table>
-  <tip id="par_id251611949474763">To have the escape sequence "\n" interpreted 
as an actual string, simply use "\\n" instead of "\" &amp; Chr(10).</tip>
+  <tip id="par_id251611949474763">To have the escape sequence "\n" interpreted 
as an actual string, simply use "\\n" instead of <literal>"\" &amp; 
Chr(10).</literal></tip>
 
   <h3 id="hd_id771579606799550">Non-printable characters:</h3>
     <paragraph role="paragraph" id="par_id531579606877342">Characters defined 
in the Unicode Character Database as “Other” or “Separator” are considered as 
non-printable characters.</paragraph>
@@ -343,10 +343,10 @@
 
 <section id="Count">
   <comment> Count 
--------------------------------------------------------------------------------------------------------------------------
 </comment>
-  <bookmark xml-lang="en-US" branch="index" id="bm_id421582384432626">
+  <bookmark xml-lang="en-US" branch="index" id="bm_id421582384432626" 
localize="false">
       <bookmark_value>String service;Count</bookmark_value>
   </bookmark>
-  <h2 id="hd_id1001582384527265">Count</h2>
+  <h2 id="hd_id1001582384527265" localize="false">Count</h2>
     <paragraph role="paragraph" id="par_id891582384556756">Counts the number 
of occurrences of a substring or a regular expression within a 
string.</paragraph>
     <h3 id="hd_id561582384583468" localize="false"><embedvar 
href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
       <bascode>
@@ -476,10 +476,10 @@
     <h3 id="hd_id561579876264354" localize="false"><embedvar 
href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
       <paragraph role="paragraph" 
id="par_id131579876314120"><emph>InputStr</emph>: The string to be 
searched</paragraph>
       <paragraph role="paragraph" 
id="par_id751579876371545"><emph>Regex</emph>: The regular 
expression</paragraph>
-      <paragraph role="paragraph" 
id="par_id881579876394584"><emph>Start</emph>: The position in the string where 
the search will begin. This parameter is passed by reference, so after 
execution the value of Start will point to the first character of the found 
substring. If no matching substring is found, Start will be set to 
0.</paragraph>
+      <paragraph role="paragraph" 
id="par_id881579876394584"><emph>Start</emph>: The position in the string where 
the search will begin. This parameter is passed by reference, so after 
execution the value of <literal>Start</literal> will point to the first 
character of the found substring. If no matching substring is found, 
<literal>Start</literal> will be set to 0.</paragraph>
       <paragraph role="paragraph" 
id="par_id251579876403831"><emph>CaseSensitive</emph>: Default = 
<literal>False</literal></paragraph>
       <paragraph role="paragraph" 
id="par_id841579876412287"><emph>Forward</emph>: Determines the direction of 
the search. If <literal>True</literal>, search moves forward. If 
<literal>False</literal> search moves backwards (Default = 
<literal>True</literal>)</paragraph>
-      <paragraph role="paragraph" id="par_id451612309155653">At the first 
iteration, if <literal>Forward = True</literal>, then Start should be equal to 
1, whereas if <literal>Forward = False</literal> then Start should be equal to 
<literal>Len(InputStr)</literal></paragraph>
+      <paragraph role="paragraph" id="par_id451612309155653">At the first 
iteration, if <literal>Forward = True</literal>, then <literal>Start</literal> 
should be equal to 1, whereas if <literal>Forward = False</literal> then 
<literal>Start</literal> should be equal to 
<literal>Len(InputStr)</literal></paragraph>
     <h3 id="hd_id651579876420512" localize="false"><embedvar 
href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
       <bascode>
         <paragraph role="bascode" localize="false" 
id="bas_id621579876463377">Dim lStart As Long : lStart = 1</paragraph>
@@ -577,7 +577,7 @@
         <paragraph role="bascode" localize="false" 
id="bas_id471579881638941">SF_String.IsAlpha(InputStr As String) As 
Boolean</paragraph>
       </bascode>
     <h3 id="hd_id921579881654036" localize="false"><embedvar 
href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
-      <paragraph role="paragraph" 
id="par_id11579881691826"><emph>InputStr</emph>: The string to be checked.  If 
empty, the method returns <literal>False</literal>.</paragraph>
+      <paragraph role="paragraph" 
id="par_id11579881691826"><emph>InputStr</emph>: The string to be checked. If 
empty, the method returns <literal>False</literal>.</paragraph>
     <h3 id="hd_id841579881714210" localize="false"><embedvar 
href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
       <bascode>
         <paragraph role="bascode" localize="false" 
id="par_id381579881735058">MsgBox SF_String.IsAlpha("àénΣlPµ") 'True</paragraph>
@@ -1234,7 +1234,7 @@
         <paragraph role="bascode" localize="false" 
id="bas_id711580211886107">a = SF_String.SplitNotQuoted("abc,""def,ghi""", 
",")</paragraph>
         <paragraph role="bascode" localize="false" 
id="bas_id111580211865432">' a = Array("abc", """def,ghi""")</paragraph>
         <paragraph role="bascode" localize="false" 
id="bas_id101580211896350">a = SF_String.SplitNotQuoted("abc,""def\"",ghi""", 
",")</paragraph>
-        <paragraph role="bascode" id="bas_id351612388312049"> ' a = 
Array("abc", """def\"",ghi""")</paragraph>
+        <paragraph role="bascode" localize="false" id="bas_id351612388312049"> 
' a = Array("abc", """def\"",ghi""")</paragraph>
         <paragraph role="bascode" localize="false" 
id="bas_id591580211905379">a = 
SF_String.SplitNotQuoted("abc,""def\"",ghi"""",", ",")</paragraph>
         <paragraph role="bascode" localize="false" 
id="bas_id691580211914228">' a = Array("abc", """def\"",ghi""", "")</paragraph>
       </bascode>
diff --git a/source/text/sbasic/shared/03/sf_textstream.xhp 
b/source/text/sbasic/shared/03/sf_textstream.xhp
index 99c158e19..1659d32a5 100644
--- a/source/text/sbasic/shared/03/sf_textstream.xhp
+++ b/source/text/sbasic/shared/03/sf_textstream.xhp
@@ -42,16 +42,16 @@
     </bascode>
     <paragraph role="paragraph" id="par_id371585330787197" 
xml-lang="en-US">The file must be closed with the <literal>CloseFile</literal> 
method after all read or write operations have been executed:</paragraph>
     <bascode>
-      <paragraph role="bascode" 
id="bas_id91613599192241">myFile.CloseFile()</paragraph>
+      <paragraph role="bascode" localize="false" 
id="bas_id91613599192241">myFile.CloseFile()</paragraph>
     </bascode>
     <paragraph role="paragraph" id="par_id891582733781994" 
xml-lang="en-US">Optionally, the resources used by the 
<literal>TextStream</literal> instance can be released using the 
<literal>Dispose</literal> method:</paragraph>
     <bascode>
-      <paragraph role="bascode" id="bas_id761613599333614">Set myFile = 
myFile.Dispose()</paragraph>
+      <paragraph role="bascode" localize="false" 
id="bas_id761613599333614">Set myFile = myFile.Dispose()</paragraph>
     </bascode>
     <note id="par_id121612917368946">The methods in the 
<literal>TextStream</literal> service are mostly based on the <link 
href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1io_1_1XTextInputStream.html";
 name="XTextInputStream API"><literal>XTextInputStream</literal></link> and 
<link 
href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1io_1_1XTextOutputStream.html";
 name="XTextOutputStream API"><literal>XTextOutputStream</literal></link> UNO 
interfaces.</note>
 
     <h2 id="hd_id941585330787948" xml-lang="en-US">Properties</h2>
-    <bookmark xml-lang="en-US" branch="index" id="bm_id1001613600572485">
+    <bookmark xml-lang="en-US" branch="index" id="bm_id1001613600572485" 
localize="false">
       <bookmark_value>TextStream service;AtEndOfStream</bookmark_value>
       <bookmark_value>TextStream service;Encoding</bookmark_value>
       <bookmark_value>TextStream service;FileName</bookmark_value>
@@ -228,10 +228,10 @@
       <paragraph role="bascode" localize="false" id="bas_id931613595640789">   
 Dim FSO : FSO = CreateScriptService("FileSystem")</paragraph>
       <paragraph role="bascode" id="bas_id181613595641087">    'Opens the text 
file with the names to be read</paragraph>
       <paragraph role="bascode" localize="false" id="bas_id291613595641480">   
 Dim inputFile as Object</paragraph>
-      <paragraph role="bascode" id="bas_id651613595641754">    Set inputFile = 
FSO.OpenTextFile("~/Documents/Students.txt")</paragraph>
+      <paragraph role="bascode" localize="false" id="bas_id651613595641754">   
 Set inputFile = FSO.OpenTextFile("~/Documents/Students.txt")</paragraph>
       <paragraph role="bascode" localize="false" id="bas_id711613595642109">   
 'Reads all the contents in the input file as a single string</paragraph>
-      <paragraph role="bascode" id="bas_id81613595642474">    Dim allData as 
String</paragraph>
-      <paragraph role="bascode" id="bas_id191613595642766">    allData = 
inputFile.ReadAll()</paragraph>
+      <paragraph role="bascode" localize="false" id="bas_id81613595642474">    
Dim allData as String</paragraph>
+      <paragraph role="bascode" localize="false" id="bas_id191613595642766">   
 allData = inputFile.ReadAll()</paragraph>
       <paragraph role="bascode" localize="false" id="bas_id961613595643093">   
 'Splits the string into an array</paragraph>
       <paragraph role="bascode" localize="false" id="bas_id51613595643398">    
Dim arrNames as Variant</paragraph>
       <paragraph role="bascode" localize="false" id="bas_id151613595643675">   
 arrNames = SF_String.SplitLines(allData)</paragraph>
diff --git a/source/text/sbasic/shared/03/sf_timer.xhp 
b/source/text/sbasic/shared/03/sf_timer.xhp
index dce3465a5..809d473cc 100644
--- a/source/text/sbasic/shared/03/sf_timer.xhp
+++ b/source/text/sbasic/shared/03/sf_timer.xhp
@@ -26,7 +26,7 @@
 <section id="abstract">
   <h1 id="hd_id731582733781114" xml-lang="en-US"><variable 
id="TimerService"><link href="text/sbasic/shared/03/sf_timer.xhp" 
name="ScriptForge.Timer 
service"><literal>ScriptForge</literal>.<literal>Timer</literal> 
service</link></variable></h1>
   <paragraph role="paragraph" id="par_id961582733781662" xml-lang="en-US">The 
<literal>Timer</literal> service measures the amount of time it takes to run 
user scripts.</paragraph>
-  <paragraph role="paragraph" id="par_id181582733781323" xml-lang="en-US">A 
Timer measures <emph>durations</emph>. It can be:</paragraph>
+  <paragraph role="paragraph" id="par_id181582733781323" xml-lang="en-US">A 
<literal>Timer</literal> measures <emph>durations</emph>. It can be:</paragraph>
   <list type="unordered">
     <listitem>
       <paragraph id="par_id711582733781252"  role="listitem" 
xml-lang="en-US">Started, to indicate when to start measuring time.</paragraph>
@@ -38,7 +38,7 @@
       <paragraph id="par_id691582733781498"  role="listitem" 
xml-lang="en-US">Resumed, to continue tracking running time after the Timer has 
been suspended.</paragraph>
     </listitem>
     <listitem>
-      <paragraph id="par_id31582733781344"  role="listitem" 
xml-lang="en-US">Restarted, which will cancel previous measurements and start 
the Timer at zero.</paragraph>
+      <paragraph id="par_id31582733781344"  role="listitem" 
xml-lang="en-US">Restarted, which will cancel previous measurements and start 
the <literal>Timer</literal> at zero.</paragraph>
     </listitem>
   </list>
 </section>
@@ -175,7 +175,7 @@
             <paragraph id="par_id31582734180676" localize="False" 
role="tablecontent" xml-lang="en-US">Continue</paragraph>
         </tablecell>
         <tablecell>
-            <paragraph id="par_id301582734180676" role="tablecontent" 
xml-lang="en-US">Resumes the Timer if it has been suspended</paragraph>
+            <paragraph id="par_id301582734180676" role="tablecontent" 
xml-lang="en-US">Resumes the <literal>Timer</literal> if it has been 
suspended</paragraph>
         </tablecell>
         <tablecell>
             <paragraph id="par_id661582734180676" role="tablecontent" 
xml-lang="en-US"><literal>False</literal> if the timer is not 
suspended</paragraph>
@@ -186,7 +186,7 @@
             <paragraph id="par_id881582734649304" localize="False" 
role="tablecontent" xml-lang="en-US">Restart</paragraph>
         </tablecell>
         <tablecell>
-            <paragraph id="par_id821582734649305" role="tablecontent" 
xml-lang="en-US">Terminates the timer and discard its current property values, 
restarting as a new clean Timer</paragraph>
+            <paragraph id="par_id821582734649305" role="tablecontent" 
xml-lang="en-US">Terminates the <literal>Timer</literal> and discards its 
current property values, restarting as a new clean 
<literal>Timer</literal></paragraph>
         </tablecell>
         <tablecell>
             <paragraph id="par_id761582734649305" role="tablecontent" 
xml-lang="en-US"><literal>False</literal> if the timer is inactive</paragraph>
@@ -227,7 +227,7 @@
     </tablerow>
     </table>
 
-  <h2 id="hd_id651582735695110" xml-lang="en-US"><embedvar 
href="text/sbasic/shared/00000003.xhp#functexample"/></h2>
+    <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
     <bascode>
       <paragraph role="bascode" localize="false" 
id="bas_id711582735902164">myTimer.Start()</paragraph>
       <paragraph role="bascode" localize="false" 
id="bas_id371582735909094">Wait 500</paragraph>
diff --git a/source/text/sbasic/shared/03/sf_ui.xhp 
b/source/text/sbasic/shared/03/sf_ui.xhp
index dedf6462f..f776c6e36 100644
--- a/source/text/sbasic/shared/03/sf_ui.xhp
+++ b/source/text/sbasic/shared/03/sf_ui.xhp
@@ -51,7 +51,7 @@
 
 <h2 id="hd_id881587913266307">Definitions</h2>
 
-  <h3 id="hd_id761587913266887">WindowName</h3>
+  <h3 id="hd_id761587913266887" localize="false">WindowName</h3>
   <paragraph role="paragraph" id="par_id741587913266919">A window can be 
designated using various ways:</paragraph>
   <list type="unordered">
      <listitem>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to