Skip to content

Commit 0a1a42b

Browse files
committed
API: change message for first dictionary export
1 parent cc66e75 commit 0a1a42b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Tests/DeclDictTester/DeclDictApiTests.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Public Sub RunVcsCheck_WithoutDialogChangedLettercase_CheckReturnMessage()
2828

2929
' 1st call => run first export
3030
Result = Application.Run(AddInCallPath, False, DictFilePath)
31-
Assert.That Result, Iz.EqualTo("Info: no export data exists, run first export")
31+
Assert.That Result, Iz.EqualTo("Info: No dictionary data found. A new dictionary has been created.")
3232

3333
' 2nd call => no changes => Return value = True
3434
Result = Application.Run(AddInCallPath, False, DictFilePath)

source/modules/_AddInAPI.bas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ End Function
3939
' Returns:
4040
' Boolean (True) ... if DiffCount = 0
4141
' String ... if DiffCount > 0 => "Failed: <lettercase info>"
42+
' String ... if dict file not exists => "Info: No dictionary data found. A new dictionary has been created."
4243
'
4344
'---------------------------------------------------------------------------------------
4445
Public Function RunVcsCheck(Optional ByVal OpenDialogToFixLettercase As Boolean = False, _
@@ -60,7 +61,7 @@ Public Function RunVcsCheck(Optional ByVal OpenDialogToFixLettercase As Boolean
6061
.ImportVBProject CurrentVbProject
6162
' ... log info: first export
6263
.ExportToFile DeclDictFilePath
63-
RunVcsCheck = "Info: no export data exists, run first export"
64+
RunVcsCheck = "Info: No dictionary data found. A new dictionary has been created."
6465
Exit Function
6566
End If
6667

source/tables/USysAPI.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
&lt;blockquote&gt;
1212

1313
&lt;div&gt;&lt;font size=2&gt;OpenDialogToFixLettercase - (Boolean) - Open dialog to fix lettercase&lt;/font&gt;&lt;/div&gt;
14-
&lt;div&gt;&lt;font size=2&gt;DeclDictFilePath - (String) - use alternative file path&lt;/font&gt;&lt;/div&gt;
14+
&lt;div&gt;&lt;font size=2&gt;DeclDictFilePath - (String) - use alternative dictionary file path&lt;/font&gt;&lt;/div&gt;
1515

1616
&lt;/blockquote&gt;
1717

@@ -23,6 +23,7 @@
2323
&lt;ul&gt;
2424
&lt;li&gt;&lt;font size=2&gt;Boolean (True) ... if DiffCount = 0&lt;/font&gt;&lt;/li&gt;
2525
&lt;li&gt;&lt;font size=2&gt;String ... if DiffCount &amp;gt; 0 =&amp;gt; &amp;quot;Failed: &amp;lt;lettercase info&amp;gt;&amp;quot;&lt;/font&gt;&lt;/li&gt;
26+
&lt;li&gt;&lt;font size=2&gt;String ... if dict file not exists =&amp;gt; &amp;quot;Info: No dictionary data found. A new dictionary has been created.&amp;quot;&lt;/font&gt;&lt;/li&gt;
2627
&lt;/ul&gt;
2728
&lt;/ul&gt;
2829

0 commit comments

Comments
 (0)