Skip to content

Commit 51afb3b

Browse files
committed
add english version
1 parent 2c78466 commit 51afb3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+791
-791
lines changed

Addin_MacroTools.xlsb

-742 KB
Binary file not shown.

Addin_MacroTools_ENG.xlsb

739 KB
Binary file not shown.

Addin_MacroTools_RUS.xlsb

742 KB
Binary file not shown.

scripts/Class_Modules/CTextBox_ContextMenu.cls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ Private m_objParent As Object
4242
21: Set cbrTemp = Application.CommandBars.Add(mEDIT_CONTEXTMENU_NAME, Position:=msoBarPopup)
4343
22: With cbrTemp
4444
23: With .Controls.Add(msoControlButton)
45-
24: .Caption = "ÓÄÀËÈÒÜ"
45+
24: .Caption = "DELETE"
4646
25: .FaceId = CUT_MENUID
4747
26: .Tag = mCUT_TAG
4848
27: End With
4949
28: With .Controls.Add(msoControlButton)
50-
29: .Caption = "ÑÎÇÄÀÒÜ"
50+
29: .Caption = "TO CREATE"
5151
30: .FaceId = COPY_MENUID
5252
31: .Tag = mCOPY_TAG
5353
32: End With
5454
33: With .Controls.Add(msoControlButton)
55-
34: .Caption = "ÈÇÌÅÍÈÒÜ"
55+
34: .Caption = "TO CHANGE"
5656
35: .FaceId = PASTE_MENUID
5757
36: .Tag = mPASTE_TAG
5858
37: End With

scripts/Class_Modules/LogRecorder.cls

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ Public LogSeparator As String
4444

4545
Public Sub WriteErrorLog(Optional ByVal sNameFunction As String = vbNullString)
4646
29: Dim Txt As String
47-
30: If sNameFunction = vbNullString Then sNameFunction = "Èìÿ ïðöåäóðû íå çàäàíî"
48-
31: Txt = String(2, vbNewLine) & "Íàçâàíèå ôóíêöèè/ïðîöåäóðû: " & sNameFunction & vbNewLine
49-
32: Txt = Txt & "Íîìåð îøèáêè: " & Err.Number & vbNewLine
50-
33: Txt = Txt & "Íîìåð ñòðîêè: " & Erl
51-
34: Call AddRecord(Txt, vbTab & vbTab & "Îïèñàíèå: " & Err.Description, 0, LOG_SEPARATOR_BEFORE_AND_AFTER, True)
47+
30: If sNameFunction = vbNullString Then sNameFunction = "Procedure name not specified"
48+
31: Txt = String(2, vbNewLine) & "Function/procedure name:" & sNameFunction & vbNewLine
49+
32: Txt = Txt & "Error number:" & Err.Number & vbNewLine
50+
33: Txt = Txt & "Line number:" & Erl
51+
34: Call AddRecord(Txt, vbTab & vbTab & "Description:" & Err.Description, 0, LOG_SEPARATOR_BEFORE_AND_AFTER, True)
5252
35: End Sub
5353

5454
Public Sub SaveLog()
5555
38: If AddIntoTXTfile(LogFileFullName, Buffer) Then
5656
39: Buffer = Empty
5757
40: Else
58-
41: Debug.Print "Îøèáêà çàïèñè ëîãà â ôàéë " & LogFileFullName
58+
41: Debug.Print "Error writing the log to the file" & LogFileFullName
5959
42: End If
6060
43: End Sub
6161

@@ -156,3 +156,4 @@ Public LogSeparator As String
156156
139: Set ts = Nothing: Set FSO = Nothing
157157
140: AddIntoTXTfile = Err = 0
158158
141: End Function
159+

scripts/Class_Modules/VBECommandHandler.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Private Sub EvtHandler_Click(ByVal Ctrl As CommandBarButton, CancelDefault As Bo
2525
16: Exit Sub
2626
ErrorHandler:
2727
18: If Err.Number <> 0 Then
28-
19: Debug.Print "Îøèáêà! â EvtHandler_Click" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "â ñòðîêå " & Erl
28+
19: Debug.Print "Error in Eventhandler_Click" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "in the line" & Erl
2929
20: Call WriteErrorLog("EvtHandler_Click")
3030
21: Err.Clear
3131
22: Resume Next

scripts/Modules/AA_SwapEgual.bas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ Option Private Module
3838
36: Set prjProject = Application.VBE.ActiveVBProject
3939
37:
4040
38: If prjProject Is Nothing Then
41-
39: Debug.Print "Íåò àêòèâíîãî ïðîåêòà VBA"
41+
39: Debug.Print "No active VBA project"
4242
40: Exit Sub
4343
41: End If
4444
42:
4545
43: Set cpCodePane = Application.VBE.ActiveCodePane
4646
44:
4747
45: If cpCodePane Is Nothing Then
48-
46: Debug.Print "Íåò àêòèâíîãî ìîäóëÿ êîäà VBA"
48+
46: Debug.Print "No active VBA code module"
4949
47: Exit Sub
5050
48: End If
5151
49:
@@ -54,7 +54,7 @@ Option Private Module
5454
52: sCode = cpCodePane.CodeModule.Lines(nStartLine, IIf(nEndline - nStartLine = 0, 1, nEndline - nStartLine))
5555
53:
5656
54: If (sCode = vbNullString) Then
57-
55: Debug.Print "Êîä VBA íå âûäåëåí"
57+
55: Debug.Print "VBA code is not allocated"
5858
56: Exit Sub
5959
57: End If
6060
58:

scripts/Modules/AB_AlphabetizeProcedure.bas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Const ProcNoUnderscore = "1"
3131
29: Dim nI As Integer
3232
30: Dim nIndex As Integer
3333
31:
34-
32: If MsgBox("Îòñîðòèðîâàòü ïðîöåäóðû è ôóíêöèè ïî àëôàâèòó?", vbQuestion + vbYesNo + vbDefaultButton1, "Ñîðòèðîâêà:") = vbNo Then
34+
32: If MsgBox("Sort procedures and functions alphabetically?", vbQuestion + vbYesNo + vbDefaultButton1, "Sorting:") = vbNo Then
3535
33: Exit Sub
3636
34: End If
3737
35:
@@ -41,14 +41,14 @@ Const ProcNoUnderscore = "1"
4141
39: ReDim CollectedKeys(0) As String
4242
40:
4343
41: If Application.VBE.ActiveVBProject Is Nothing Then
44-
42: Debug.Print "Íåò àêòèâíîãî ïðîåêòà VBA"
44+
42: Debug.Print "No active VBA project"
4545
43: Exit Sub
4646
44: End If
4747
45:
4848
46: Set cpCodePane = Application.VBE.ActiveCodePane
4949
47:
5050
48: If cpCodePane Is Nothing Then
51-
49: Debug.Print "Íåò àêòèâíîãî ìîäóëÿ êîäà VBA"
51+
49: Debug.Print "No active VBA code module"
5252
50: Exit Sub
5353
51: End If
5454
52:

scripts/Modules/A_RibbonCallbacks.bas

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ Option Explicit
3636
35: On Error GoTo ErrorHandler
3737
36: If VBAIsTrusted Then
3838
37: Workbooks(C_Const.NAME_ADDIN & ".xlam").Sheets(C_Const.SH_SNIPPETS).Copy After:=ActiveWorkbook.Sheets(ActiveWorkbook.Sheets.Count)
39-
38: Call MsgBox("Âûãðóçêà áàçû êîäà ïðîèçâåäåíà", vbInformation, "Âûãðóçêà áàçû êîäà:")
39+
38: Call MsgBox("The code base has been uploaded", vbInformation, "Code Base Upload:")
4040
39: Else
4141
40: Call MsgBox(C_Const.sMSGVBA1, vbCritical, C_Const.sMSGVBA2)
4242
41: End If
4343
42: Exit Sub
4444
ErrorHandler:
4545
44: Select Case Err.Number
4646
Case 91:
47-
46: Call MsgBox("Íåò îòêðûòûõ " & Chr(34) & "Ôàéëîâ Excel" & Chr(34) & "!", vbOKOnly + vbExclamation, "Îøèáêà:")
47+
46: Call MsgBox("No open files" & Chr(34) & "Excel files" & Chr(34) & "!", vbOKOnly + vbExclamation, "Error:")
4848
47: Case Else:
49-
48: Call MsgBox("Îøèáêà! â ImportCodeBaseBtn" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "â ñòðîêå " & Erl, vbOKOnly + vbExclamation, "Îøèáêà:")
49+
48: Call MsgBox("Error in ImportCodeBaseBtn" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "in the line" & Erl, vbOKOnly + vbExclamation, "Error:")
5050
49: Call WriteErrorLog("ImportCodeBaseBtn")
5151
50: End Select
5252
51: Err.Clear
@@ -74,7 +74,7 @@ ErrorHandler:
7474
73: Exit Sub
7575
ErrorHandler:
7676
75: Err.Clear
77-
76: Call MsgBox("Íåò îòêðûòûõ " & Chr(34) & "Ôàéëîâ Excel" & Chr(34) & "!", vbOKOnly + vbExclamation, "Îøèáêà:")
77+
76: Call MsgBox("No open files" & Chr(34) & "Excel files" & Chr(34) & "!", vbOKOnly + vbExclamation, "Error:")
7878
77: End Sub
7979
Private Sub VBABtn(ByRef control As IRibbonControl)
8080
79: Call VBAVBEOpen
@@ -115,9 +115,9 @@ ErrorHandler:
115115
ErrorHandler:
116116
115: Select Case Err.Number
117117
Case 91:
118-
117: Call MsgBox("Íåò îòêðûòûõ " & Chr(34) & "Ôàéëîâ Excel" & Chr(34) & "!", vbOKOnly + vbExclamation, "Îøèáêà:")
118+
117: Call MsgBox("No open files" & Chr(34) & "Excel files" & Chr(34) & "!", vbOKOnly + vbExclamation, "Error:")
119119
118: Case Else:
120-
119: Call MsgBox("Îøèáêà! â onUnUnProtectSheets" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "â ñòðîêå " & Erl, vbOKOnly + vbExclamation, "Îøèáêà:")
120+
119: Call MsgBox("Error in onUnProtectSheets" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "in the line" & Erl, vbOKOnly + vbExclamation, "Error:")
121121
120: Call WriteErrorLog("onUnUnProtectSheets")
122122
121: End Select
123123
122: Err.Clear
@@ -199,19 +199,19 @@ ErrorHandler:
199199
198: Call RegExpTemplateManager.Show
200200
199: End Sub
201201
Private Sub onRegExpFunValNumber(control As IRibbonControl)
202-
201: ActiveCell.FormulaR1C1 = "=ÐÅÃÂÛÐ_ÏÎËÓ×ÇÍÀ×ÏÎÍÎÌÅÐÓ()"
202+
201: ActiveCell.FormulaR1C1 = "=REG_GetValueByNumber()"
203203
202: Call FunctionWizardShowExc
204204
203: End Sub
205205
Private Sub onExpFunCount(control As IRibbonControl)
206-
205: ActiveCell.FormulaR1C1 = "=ÐÅÃÂÛÐ_ÑרÒ()"
206+
205: ActiveCell.FormulaR1C1 = "=REG_Count()"
207207
206: Call FunctionWizardShowExc
208208
207: End Sub
209209
Private Sub onRegExpFunTest(control As IRibbonControl)
210-
209: ActiveCell.FormulaR1C1 = "=ÐÅÃÂÛÐ_ÒÅÑÒ()"
210+
209: ActiveCell.FormulaR1C1 = "=REG_Test()"
211211
210: Call FunctionWizardShowExc
212212
211: End Sub
213213
Private Sub onRegExpFunReplace(control As IRibbonControl)
214-
213: ActiveCell.FormulaR1C1 = "=ÐÅÃÂÛÐ_ÇÀÌÅÍÈÒÜ()"
214+
213: ActiveCell.FormulaR1C1 = "=REG_Replace()"
215215
214: Call FunctionWizardShowExc
216216
215: End Sub
217217
Private Sub FunctionWizardShowExc()

scripts/Modules/A_TODO.bas

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)