[Libreoffice-commits] core.git: wizards/source
Andrea Gelmini (via logerrit)
logerrit at kemper.freedesktop.org
Fri Nov 6 17:40:35 UTC 2020
wizards/source/scriptforge/SF_UI.xba | 6 +++---
wizards/source/scriptforge/SF_Utils.xba | 10 +++++-----
wizards/source/scriptforge/_CodingConventions.xba | 2 +-
wizards/source/scriptforge/_ModuleModel.xba | 2 +-
wizards/source/scriptforge/po/ScriptForge.pot | 2 +-
wizards/source/sfdatabases/SF_Database.xba | 4 ++--
6 files changed, 13 insertions(+), 13 deletions(-)
New commits:
commit b2576a43d24434951cb81a2dad1db6236637b1eb
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Fri Nov 6 12:21:52 2020 +0100
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Nov 6 18:39:55 2020 +0100
Fix typos
Change-Id: Ibed7535391d5e0c23530b47a232a95f0ad15ee53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105401
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/wizards/source/scriptforge/SF_UI.xba b/wizards/source/scriptforge/SF_UI.xba
index 5cbd6b8aae1f..ca6bf79e40ab 100644
--- a/wizards/source/scriptforge/SF_UI.xba
+++ b/wizards/source/scriptforge/SF_UI.xba
@@ -79,7 +79,7 @@ Const cstMACROEXECNORMAL = 0 ' Default, execution depends on user configu
Const cstMACROEXECNEVER = 1 ' Macros are not executed
Const cstMACROEXECALWAYS = 2 ' Macros are always executed
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
REM -----------------------------------------------------------------------------
Public Function Dispose() As Variant
@@ -208,7 +208,7 @@ Public Function CreateBaseDocument(Optional ByVal FileName As Variant _
''' Create a new LibreOffice Base document embedding an empty database of the given type
''' Args:
''' FileName: Identifies the file to create. It must follow the SF_FileSystem.FileNaming notation
-''' If the file altready exists, it is overwritten without warning
+''' If the file already exists, it is overwritten without warning
''' EmbeddedDatabase: either "HSQLDB" (default) or "FIREBIRD"
''' RegistrationName: the name used to store the new database in the databases register
''' If "" (default), no registration takes place
@@ -1172,4 +1172,4 @@ Private Function _Repr() As String
End Function ' ScriptForge.SF_UI._Repr
REM ============================================ END OF SCRIPTFORGE.SF_UI
-</script:module>
\ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/SF_Utils.xba b/wizards/source/scriptforge/SF_Utils.xba
index eed61f074e53..f24d5825f53e 100644
--- a/wizards/source/scriptforge/SF_Utils.xba
+++ b/wizards/source/scriptforge/SF_Utils.xba
@@ -211,7 +211,7 @@ Public Sub _ExportScriptForgePOTFile(ByVal FileName As String)
''' Export the ScriptForge POT file related to its own user interface
''' Should be called only before issuing new ScriptForge releases only
''' Args:
-''' FileName: the resulting file. It it exists, it is overwritten without warning
+''' FileName: the resulting file. If it exists, is overwritten without warning
Dim sHeader As String ' The specific header to insert
@@ -239,7 +239,7 @@ Public Function _GetPropertyValue(ByRef pvArgs As Variant, ByVal psName As Strin
''' Args
''' pvArgs: a zero_based array of PropertyValues
''' psName: the comparison is not case-sensitive
-''' Retuns:
+''' Returns:
''' Zero-length string if not found
Dim vValue As Variant ' Return value
@@ -606,7 +606,7 @@ End Sub ' ScriptForge.SF_Utils._SetPropertyValue
REM -----------------------------------------------------------------------------
Private Function _TypeNames(Optional ByVal pvArgs As Variant) As String
-''' Converts the array of VarTypes to a comma-sepatrated list of TypeNames
+''' Converts the array of VarTypes to a comma-separated list of TypeNames
Dim sTypes As String ' Return value
Dim sType As String ' A single type
@@ -911,7 +911,7 @@ Try:
End Select
End With
End If
- ' Chech wildcards are only present in last component
+ ' Check that wildcards are only present in last component
If bValid And pbWildCards Then
sFile = SF_FileSystem.GetParentFolderName(pvArgument)
bValid = ( InStr(sFile, "*") + InStr(sFile, "?") + InStr(sFile,"%3F") = 0 ) ' ConvertToUrl replaces ? by %3F
@@ -964,4 +964,4 @@ Dim iType As Integer ' VarType of argument
End Function ' ScriptForge.SF_Utils._VarTypeExt
REM ================================================= END OF SCRIPTFORGE.SF_UTILS
-</script:module>
\ No newline at end of file
+</script:module>
diff --git a/wizards/source/scriptforge/_CodingConventions.xba b/wizards/source/scriptforge/_CodingConventions.xba
index b0443e0a1efa..71fb42c77201 100644
--- a/wizards/source/scriptforge/_CodingConventions.xba
+++ b/wizards/source/scriptforge/_CodingConventions.xba
@@ -46,7 +46,7 @@ REM ============================================================================
'''
' Variable declarations
' =====================
-' * Variable names use only alpha characters, the undercore and digits (no accented characters).
+' * Variable names use only alpha characters, the underscore and digits (no accented characters).
' Exceptionally, names of private variables may be embraced with `[` and `]` if `Option Compatible` is present.
' * The Global, Dim and Const statements always start in the first column of the line.
' * The type (*Dim ... As ...*, *Function ... As ...*) is always declared explicitly, even if the type is Variant.
diff --git a/wizards/source/scriptforge/_ModuleModel.xba b/wizards/source/scriptforge/_ModuleModel.xba
index 30f1aa8f170d..135eced58af1 100644
--- a/wizards/source/scriptforge/_ModuleModel.xba
+++ b/wizards/source/scriptforge/_ModuleModel.xba
@@ -144,7 +144,7 @@ Check:
' _EnterFunction returns True when current method is invoked from a user script
If SF_Utils._EnterFunction(cstThisSub, cstSubArgs) Then
' Check Arg1 is a string and Arg2 is a number.
- ' Validation rules for scalars and arrays are desribed in SF_Utils
+ ' Validation rules for scalars and arrays are described in SF_Utils
If Not SF_Utils._Validate(Arg1, "Arg1", V_STRING) Then GoTo Finally
If Not SF_Utils._Validate(Arg2, "Arg2", V_NUMERIC) Then GoTo Finally
' Fatal error ?
diff --git a/wizards/source/scriptforge/po/ScriptForge.pot b/wizards/source/scriptforge/po/ScriptForge.pot
index f75185bb9da2..0741eff67d62 100644
--- a/wizards/source/scriptforge/po/ScriptForge.pot
+++ b/wizards/source/scriptforge/po/ScriptForge.pot
@@ -788,7 +788,7 @@ msgid ""
"The '%1' method must not be executed in this context."
msgstr ""
-#. SF_Database cannot interprete SQL statement
+#. SF_Database can't interpret SQL statement
#. %1: The statement
#, kde-format
msgctxt "SQLSYNTAX"
diff --git a/wizards/source/sfdatabases/SF_Database.xba b/wizards/source/sfdatabases/SF_Database.xba
index ec20d6118326..0c39c5742adf 100644
--- a/wizards/source/sfdatabases/SF_Database.xba
+++ b/wizards/source/sfdatabases/SF_Database.xba
@@ -67,7 +67,7 @@ Private _MetaData As Object ' com.sun.star.sdbc.XDatabaseMetaData
REM ============================================================ MODULE CONSTANTS
-REM ===================================================== CONSTRUCTOR/DESCTRUCTOR
+REM ===================================================== CONSTRUCTOR/DESTRUCTOR
REM -----------------------------------------------------------------------------
Private Sub Class_Initialize()
@@ -609,7 +609,7 @@ Private Function _ExecuteSql(ByVal psSql As String _
, ByVal pbDirect As Boolean _
) As Variant
''' Return a read-only Resultset based on a SELECT SQL statement or execute the given action SQL (INSERT, CREATE TABLE, ...)
-''' The method raises a fatal error when the SQL statement cannot be interpredted
+''' The method raises a fatal error when the SQL statement cannot be interpreted
''' Args:
''' psSql : the SQL statement. Square brackets are replaced by the correct field surrounding character
''' pbDirect: when True, no syntax conversion is done by LO. Default = False
More information about the Libreoffice-commits
mailing list