summaryrefslogtreecommitdiffstats
path: root/source/text/sbasic/shared/03
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2021-03-19 20:57:10 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-03-21 02:38:58 +0100
commit6312559da3b25f10725253ac23455914777052b6 (patch)
tree262714b65a1448116f8b1d9e21098e171bf4675f /source/text/sbasic/shared/03
parentRemove bogus markup (diff)
downloadhelp-6312559da3b25f10725253ac23455914777052b6.tar.gz
help-6312559da3b25f10725253ac23455914777052b6.zip
Fix localization issues in SF_Database e SF_Dialog help pages
Also silence strings for translation in sf_filesystem and sf_dialogcontrol Change-Id: I1303ff8eeb263737266b809c1fbe6366cc85dcf5 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/112729 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'source/text/sbasic/shared/03')
-rw-r--r--source/text/sbasic/shared/03/lib_ScriptForge.xhp2
-rw-r--r--source/text/sbasic/shared/03/sf_database.xhp32
-rw-r--r--source/text/sbasic/shared/03/sf_dialog.xhp16
-rw-r--r--source/text/sbasic/shared/03/sf_dialogcontrol.xhp2
-rw-r--r--source/text/sbasic/shared/03/sf_filesystem.xhp2
5 files changed, 27 insertions, 27 deletions
diff --git a/source/text/sbasic/shared/03/lib_ScriptForge.xhp b/source/text/sbasic/shared/03/lib_ScriptForge.xhp
index c59831b920..70506e1be9 100644
--- a/source/text/sbasic/shared/03/lib_ScriptForge.xhp
+++ b/source/text/sbasic/shared/03/lib_ScriptForge.xhp
@@ -46,7 +46,7 @@
</tablerow>
<tablerow>
<tablecell>
- <paragraph id="par_id851613847558931" role="tablecontent">LibreOffice Basic</paragraph>
+ <paragraph id="par_id851613847558931" role="tablecontent">%PRODUCTNAME Basic</paragraph>
</tablecell>
<tablecell>
<paragraph role="tablecontent" localize="false" id="par_id581613836728425">
diff --git a/source/text/sbasic/shared/03/sf_database.xhp b/source/text/sbasic/shared/03/sf_database.xhp
index b29dee9972..14aec72251 100644
--- a/source/text/sbasic/shared/03/sf_database.xhp
+++ b/source/text/sbasic/shared/03/sf_database.xhp
@@ -40,7 +40,7 @@
<comment>TODO: Add reference to the future help page SFDocuments.SF_Form service in the paragraph below</comment>
<paragraph role="paragraph" id="par_id811599407236602" xml-lang="en-US">Each instance of the <literal>Database</literal> service represents a single database and gives access to its tables, queries and data. This service does not provide access to forms or reports in the Base document.</paragraph>
<note id="par_id231615386789950">All exchanges between this service and the database are done using SQL only.</note>
- <paragraph role="paragraph" id="par_id121599407322804" xml-lang="en-US">SQL statements may be run in <emph>direct</emph> or <emph>indirect</emph> <emph>mode</emph>. In direct mode the statement is transferred to the database engine without any syntax checking or review.</paragraph>
+ <paragraph role="paragraph" id="par_id121599407322804" xml-lang="en-US">SQL statements may be run in <emph>direct</emph> or <emph>indirect</emph> mode. In direct mode the statement is transferred to the database engine without any syntax checking or review.</paragraph>
<paragraph role="paragraph" id="par_id681599407189019" xml-lang="en-US">The provided interfaces include simple tables and queries lists, as well as access to database data.</paragraph>
<tip id="par_id891599407280007" xml-lang="en-US">To make SQL statements more readable, you can use optional square brackets to enclose tables, queries and fields instead of using other enclosing characters that may be exclusive to certain Relational Database Management Systems (RDBMS).</tip>
@@ -72,7 +72,7 @@
<paragraph role="bascode" localize="false" id="bas_id251599408799447">myDoc.CloseDocument()</paragraph>
</bascode>
- <bookmark xml-lang="en-US" branch="index" id="bm_id771615387442357">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id771615387442357" localize="false">
<bookmark_value>Database Service;Queries</bookmark_value>
<bookmark_value>Database Service;Tables</bookmark_value>
</bookmark>
@@ -188,7 +188,7 @@
</bookmark>
<h2 id="hd_id76158791326673" localize="false">CloseDatabase</h2>
<paragraph role="paragraph" id="par_id201587913266596">Closes the current database connection.</paragraph>
- <h3 id="hd_id591587913266515"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd_id591587913266515" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id29158791326686">myDatabase.CloseDatabase()</paragraph>
</bascode>
@@ -214,15 +214,15 @@
<h2 id="hd_id281596554849363" localize="false">DAvg, DCount, DMin, DMax, DSum</h2>
<paragraph role="paragraph" id="par_id13159655484952">Computes the given aggregate function on a field or expression belonging to a table.</paragraph>
<paragraph role="paragraph" id="par_id101615148468548">Optionally, a SQL <literal>WHERE</literal> clause can be specified as a filter that will be applied prior to the aggregate function.</paragraph>
- <h3 id="hd_id461596554849371"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd_id461596554849371" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id441596554849435">myDatabase.DAvg(Expression As String, TableName As String, [Criteria As String]) As Variant</paragraph>
</bascode>
- <h3 id="hd_id201596554849717"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
+ <h3 id="hd_id201596554849717" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
<paragraph role="paragraph" id="par_id441596554849949"><emph>Expression</emph>: A SQL expression in which the field names are surrounded with square brackets.</paragraph>
<paragraph role="paragraph" id="par_id381596554849698" xml-lang="en-US"><emph>TableName</emph>: A table name (without square brackets).</paragraph>
<paragraph role="paragraph" id="par_id521596554849185" xml-lang="en-US"><emph>Criteria</emph>: A <literal>WHERE</literal> clause without the "WHERE" keyword, in which field names are surrounded with square brackets.</paragraph>
- <h3 id="hd_id841596554849466"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
+ <h3 id="hd_id841596554849466" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
<paragraph role="paragraph" id="par_id781615150306678">The example below assumes the file <literal>Employees.odb</literal> has a table named <literal>EmployeeData</literal>.</paragraph>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id921596554849612">GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")</paragraph>
@@ -247,16 +247,16 @@
<h2 id="hd_id151599488113565" localize="false">DLookup</h2>
<paragraph role="paragraph" id="par_id41599488113961">Computes a SQL expression on a single record returned by a <literal>WHERE</literal> clause defined by the <literal>Criteria</literal> parameter.</paragraph>
<paragraph role="paragraph" id="par_id601615381471954">If the query returns multiple records, only the first one is considered. Use the <literal>OrderClause</literal> parameter to determine how query results are sorted.</paragraph>
- <h3 id="hd_id991599488113830"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd_id991599488113830" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id351599488113828">myDatabase.DLookup(Expression As String, TableName As String, [Criteria As String], [OrderClause As String]) As Variant</paragraph>
</bascode>
- <h3 id="hd_id681599488113330"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
+ <h3 id="hd_id681599488113330" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
<paragraph role="paragraph" id="par_id671599488113986"><emph>Expression</emph>: A SQL expression in which the field names are surrounded with square brackets.</paragraph>
<paragraph role="paragraph" id="par_id441599488113247" xml-lang="en-US"><emph>TableName</emph>: A table name (without square brackets).</paragraph>
<paragraph role="paragraph" id="par_id40159948811316" xml-lang="en-US"><emph>Criteria</emph>: A <literal>WHERE</literal> clause without the "WHERE" keyword, in which field names are surrounded with square brackets.</paragraph>
<paragraph role="paragraph" id="par_id71599488689029" xml-lang="en-US"><emph>OrderClause</emph>: An <literal>ORDER BY</literal> clause without the "ORDER BY" keywords. Field names should be surrounded with square brackets.</paragraph>
- <h3 id="hd_id41599488113501"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
+ <h3 id="hd_id41599488113501" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id311599488264597">MsgBox myDB.DLookup("[FirstName]", "EmployeeData", Criteria := "[LastName] LIKE 'Smith'", OrderClause := "[FirstName] DESC")</paragraph>
<paragraph role="bascode" localize="false" id="bas_id311599488113597">MsgBox myDB.DLookup("[Salary]", "EmployeeData", Criteria := "[ID] = '3'")</paragraph>
@@ -273,17 +273,17 @@
<paragraph role="paragraph" id="par_id481599489278579">Stores the contents of a table or the results of a <literal>SELECT</literal> query or of an SQL statement in a two-dimensional array. The first index in the array corresponds to the rows and the second index refers to the columns.</paragraph>
<paragraph role="paragraph" id="par_id821615384762425">An upper limit can be specified to the number of returned rows. Optionally column names may be inserted in the first row of the array.</paragraph>
<paragraph role="paragraph" id="par_id271599490209915" xml-lang="en-US">The returned array will be empty if no rows are returned and the column headers are not required.</paragraph>
- <h3 id="hd_id99159948927831"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd_id99159948927831" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id31599489278687">myDatabase.GetRows(SQLCommand As String, [DirectSQL As Boolean], [Header As Boolean], [MaxRows As Long]) As Variant</paragraph>
</bascode>
- <h3 id="hd_id901599489278929"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
+ <h3 id="hd_id901599489278929" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
<paragraph role="paragraph" id="par_id451599489278429"><emph>SQLCommand</emph>: A table or query name (without square brackets) or a <literal>SELECT</literal> SQL statement.</paragraph>
<paragraph role="paragraph" id="par_id271599489278141" xml-lang="en-US"><emph>DirectSQL</emph>: When <literal>True</literal>, the SQL command is sent to the database engine without pre-analysis. Default is <literal>False</literal>. This argument is ignored for tables. For queries, the applied option is the one set when the query was defined.</paragraph>
<paragraph role="paragraph" id="par_id941599489278747" xml-lang="en-US"><emph>Header</emph>: When <literal>True</literal>, the first row of the returned array contains the column headers.</paragraph>
<paragraph role="paragraph" id="par_id591599489278926" xml-lang="en-US"><emph>MaxRows</emph>: The maximum number of rows to return. The default is zero, meaning there is no limit to the number of returned rows.</paragraph>
- <h3 id="hd_id531599489278812"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
- <paragraph role="paragraph" id="par_id721615385125947">Below are a few examples of how the GetRows can be used:</paragraph>
+ <h3 id="hd_id531599489278812" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
+ <paragraph role="paragraph" id="par_id721615385125947">Below are a few examples of how the <literal>GetRows</literal> method can be used:</paragraph>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id821599489278193">Dim queryResults as Variant</paragraph>
<paragraph role="bascode" id="bas_id171615385196045">' Returns all rows in the table with column headers</paragraph>
@@ -302,14 +302,14 @@
<paragraph role="paragraph" id="par_id31599490609759">Executes an action query of an SQL statement such as creating a table, as well as inserting, updating and deleting records.</paragraph>
<paragraph role="paragraph" id="par_id331615385491925">The method returns <literal>True</literal> when successful.</paragraph>
<tip id="par_id21599490810021" xml-lang="en-US">The <literal>RunSql</literal> method is rejected with an error message in case the database was previously opened in read-only mode.</tip>
- <h3 id="hd_id681599490609322"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd_id681599490609322" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id11599490609861">myDatabase.RunSql(SQLCommand As String, [DirectSQL As Boolean]) As Boolean</paragraph>
</bascode>
- <h3 id="hd_id221599490609863"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
+ <h3 id="hd_id221599490609863" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
<paragraph role="paragraph" id="par_id701599490609473"><emph>SQLCommand</emph>: A query name (without square brackets) or a SQL statement.</paragraph>
<paragraph role="paragraph" id="par_id51599490609377" xml-lang="en-US"><emph>DirectSQL</emph>: When <literal>True</literal>, the SQL command is sent to the database engine without pre-analysis. (Default = <literal>False</literal>). For queries, the applied option is the one set when the query was defined.</paragraph>
- <h3 id="hd_id31599490609478"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
+ <h3 id="hd_id31599490609478" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id47159949060973">myDatabase.RunSql("INSERT INTO [EmployeeData] VALUES(25, 'Smith', 'John')", DirectSQL := True)</paragraph>
</bascode>
diff --git a/source/text/sbasic/shared/03/sf_dialog.xhp b/source/text/sbasic/shared/03/sf_dialog.xhp
index 5087ae61bc..b96ef47526 100644
--- a/source/text/sbasic/shared/03/sf_dialog.xhp
+++ b/source/text/sbasic/shared/03/sf_dialog.xhp
@@ -30,7 +30,7 @@
<paragraph role="paragraph" id="par_id721598110472337" xml-lang="en-US">A dialog box disappears from memory after its explicit termination.</paragraph>
<tip id="par_id891598188164936" xml-lang="en-US">The <literal>SFDialogs.Dialog</literal> service is closely related to the <literal>SFDialogs.DialogControl</literal> service.</tip>
<h2 id="hd_id581582885621841" xml-lang="en-US">Service invocation and usage</h2>
- <paragraph role="paragraph" id="par_id361598174756160" xml-lang="en-US">The dialog service is invoked through the <literal>CreateScriptService</literal> method. It requires three arguments to specify the dialog box to activate:</paragraph>
+ <paragraph role="paragraph" id="par_id361598174756160" xml-lang="en-US">The <literal>Dialog</literal> service is invoked through the <literal>CreateScriptService</literal> method. It requires three arguments to specify the dialog box to activate:</paragraph>
<paragraph role="paragraph" id="par_id31612271944733"><emph>Container</emph>: "<link href="text/sbasic/shared/03131900.xhp" name="GlobalScope specifier"><literal>GlobalScope</literal></link>" for preinstalled libraries or a window name as defined by <link href="text/sbasic/shared/03/sf_ui.xhp" name="ScriptForge.UI"><literal>ScriptForge.UI</literal></link> service. Empty string "" default value stands for the current document.</paragraph>
<paragraph role="paragraph" id="par_id311612271947124"><emph>Library</emph>: The case-sensitive name of a library contained in the container. Default value is "Standard".</paragraph>
<paragraph role="paragraph" id="par_id821612271946316"><emph>DialogName</emph>: A case-sensitive string designating the dialog.</paragraph>
@@ -247,11 +247,11 @@
<h2 id="hd _id681583933076692" localize="false">Activate</h2>
<paragraph role="paragraph" id="par_id871583933076448">Set the focus on the current <literal>Dialog</literal> instance. Return <literal>True</literal> if focusing was successful.</paragraph>
<paragraph role="paragraph" id="par_id151598178880227" xml-lang="en-US">This method is called from a dialog or control event, or when a dialog is displayed in non-modal mode.</paragraph>
- <h3 id="hd _id61583933076171"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd _id61583933076171" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id731583933076815">oDlg.Activate() As Boolean</paragraph>
</bascode>
- <h3 id="hd _id26158393307687"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
+ <h3 id="hd _id26158393307687" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id221598179105596">Dim oDlg As Object</paragraph>
<paragraph role="bascode" localize="false" id="bas_id171598179111121">Set oDlg = CreateScriptService(,, "myDialog")</paragraph>
@@ -276,13 +276,13 @@
<paragraph id="par_id81598185229301" role="listitem" xml-lang="en-US">a dialog control class instance based on its name</paragraph>
</listitem>
</list>
- <h3 id="hd _id601584541257443"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
+ <h3 id="hd _id601584541257443" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id201584541257726">oDlg.Controls([ControlName As String]) As Variant</paragraph>
</bascode>
- <h3 id="hd _id291584541257237"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
+ <h3 id="hd _id291584541257237" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functparameters"/></h3>
<paragraph role="paragraph" id="par_id1001584541257789"><emph>ControlName</emph> : A valid control name as a case-sensitive string. If absent, the list of control names is returned as a zero-based array.</paragraph>
- <h3 id="hd _id32158454125769"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
+ <h3 id="hd _id32158454125769" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functexample"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id151598185478904">Dim myDialog As Object, myList As Variant, myControl As Object</paragraph>
<paragraph role="bascode" localize="false" id="bas_id21598185484092">Set myDialog = CreateScriptService("SFDialogs.Dialog", , "Standard", "Dialog1")</paragraph>
@@ -345,7 +345,7 @@
<paragraph role="bascode" localize="false" id="bas_id281598186461514">lReturn = oDlg.Execute()</paragraph>
<paragraph role="bascode" localize="false" id="bas_id291598186461410">Select Case lReturn</paragraph>
<paragraph role="bascode" localize="false" id="bas_id741598187182079">' ...</paragraph>
- <paragraph role="bascode" id="bas_id781612273203518">End Select</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id781612273203518">End Select</paragraph>
</bascode>
</section>
<section id="Terminate">
@@ -354,7 +354,7 @@
<bookmark_value>Dialog service;Terminate</bookmark_value>
</bookmark>
<h2 id="hd _id101598187953201" localize="false">Terminate</h2>
- <paragraph role="paragraph" id="par_id21598187953679">Terminate the dialog service for the current instance. Return <literal>True</literal> if the termination was successful.</paragraph>
+ <paragraph role="paragraph" id="par_id21598187953679">Terminate the <literal>Dialog</literal> service for the current instance. Return <literal>True</literal> if the termination was successful.</paragraph>
<h3 id="hd _id221598187953425" localize="false"><embedvar href="text/sbasic/shared/00000003.xhp#functsyntax"/></h3>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id231598187953624">oDlg.Terminate() As Boolean</paragraph>
diff --git a/source/text/sbasic/shared/03/sf_dialogcontrol.xhp b/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
index e171effcad..547b2147b8 100644
--- a/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
+++ b/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
@@ -26,7 +26,7 @@
<paragraph role="paragraph" id="par_id931583589764919" xml-lang="en-US">The <literal>DialogControl</literal> service manages the controls belonging to a dialog defined with the Basic <link href="text/sbasic/guide/create_dialog.xhp" name="Dialog Editor">Dialog Editor</link>. Each instance of the current service represents a single control within a dialog box.</paragraph>
- <bookmark xml-lang="en-US" branch="index" id="bm_id331612167249331">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id331612167249331" localize="false">
<bookmark_value>API;awt.XControl</bookmark_value>
<bookmark_value>API;awt.XControlModel</bookmark_value>
</bookmark>
diff --git a/source/text/sbasic/shared/03/sf_filesystem.xhp b/source/text/sbasic/shared/03/sf_filesystem.xhp
index 96402fa027..c24f3779f0 100644
--- a/source/text/sbasic/shared/03/sf_filesystem.xhp
+++ b/source/text/sbasic/shared/03/sf_filesystem.xhp
@@ -122,7 +122,7 @@
<paragraph role="bascode" localize="false" id="bas_id901612990364784">FSO.BuildPath(...)</paragraph>
</bascode>
- <bookmark xml-lang="en-US" branch="index" id="bm_id901612991354326">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id901612991354326" localize="false">
<bookmark_value>FileSystem service;FileNaming property</bookmark_value>
<bookmark_value>FileSystem service;ConfigFolder property</bookmark_value>
<bookmark_value>FileSystem service;ExtensionsFolder property</bookmark_value>