Skip to content

Commit f841262

Browse files
committed
translate to ENG
1 parent 399e2b7 commit f841262

Some content is hidden

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

57 files changed

+929
-911
lines changed

Addin_MacroTools_ENG.xlsb

550 KB
Binary file not shown.

Addin_MacroTools_RUS.xlsb

296 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 = "The procedure name is not set"
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 "Mistake! in EvtHandler_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 "There is 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 "There is 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 "The VBA code is not highlighted"
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 "There is 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 "There is no active VBA code module"
5252
50: Exit Sub
5353
51: End If
5454
52:

scripts/Modules/A_RibbonCallbacks.bas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ Option Explicit
3333
32: On Error GoTo ErrorHandler
3434
33: If VBAIsTrusted Then
3535
34: Workbooks(C_Const.NAME_ADDIN & ".xlam").Sheets(C_Const.SH_SNIPPETS).Copy After:=ActiveWorkbook.Sheets(ActiveWorkbook.Sheets.Count)
36-
35: Call MsgBox("Âûãðóçêà áàçû êîäà ïðîèçâåäåíà", vbInformation, "Âûãðóçêà áàçû êîäà:")
36+
35: Call MsgBox("The code base has been unloaded", vbInformation, "Unloading the code base:")
3737
36: End If
3838
37: Exit Sub
3939
ErrorHandler:
4040
39: Select Case Err.Number
4141
Case 91:
42-
41: Call MsgBox("Íåò îòêðûòûõ " & Chr(34) & "Ôàéëîâ Excel" & Chr(34) & "!", vbOKOnly + vbExclamation, "Îøèáêà:")
42+
41: Call MsgBox("No open" & Chr(34) & "Excel Files" & Chr(34) & "!", vbOKOnly + vbExclamation, "Mistake:")
4343
42: Case Else:
44-
43: Call MsgBox("Îøèáêà! â ImportCodeBaseBtn" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "â ñòðîêå " & Erl, vbOKOnly + vbExclamation, "Îøèáêà:")
44+
43: Call MsgBox("Mistake! in ImportCodeBaseBtn" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "in the line" & Erl, vbOKOnly + vbExclamation, "Mistake:")
4545
44: Call WriteErrorLog("ImportCodeBaseBtn")
4646
45: End Select
4747
46: Err.Clear
@@ -65,7 +65,7 @@ ErrorHandler:
6565
64: Exit Sub
6666
ErrorHandler:
6767
66: Err.Clear
68-
67: Call MsgBox("Íåò îòêðûòûõ " & Chr(34) & "Ôàéëîâ Excel" & Chr(34) & "!", vbOKOnly + vbExclamation, "Îøèáêà:")
68+
67: Call MsgBox("No open" & Chr(34) & "Excel Files" & Chr(34) & "!", vbOKOnly + vbExclamation, "Mistake:")
6969
68: End Sub
7070
Private Sub VBABtn(ByRef control As IRibbonControl)
7171
70: Call VBAVBEOpen
@@ -106,9 +106,9 @@ ErrorHandler:
106106
ErrorHandler:
107107
106: Select Case Err.Number
108108
Case 91:
109-
108: Call MsgBox("Íåò îòêðûòûõ " & Chr(34) & "Ôàéëîâ Excel" & Chr(34) & "!", vbOKOnly + vbExclamation, "Îøèáêà:")
109+
108: Call MsgBox("No open" & Chr(34) & "Excel Files" & Chr(34) & "!", vbOKOnly + vbExclamation, "Mistake:")
110110
109: Case Else:
111-
110: Call MsgBox("Îøèáêà! â onUnUnProtectSheets" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "â ñòðîêå " & Erl, vbOKOnly + vbExclamation, "Îøèáêà:")
111+
110: Call MsgBox("Mistake! in onUnUnProtectSheets" & vbLf & Err.Number & vbLf & Err.Description & vbCrLf & "in the line" & Erl, vbOKOnly + vbExclamation, "Mistake:")
112112
111: Call WriteErrorLog("onUnUnProtectSheets")
113113
112: End Select
114114
113: Err.Clear

0 commit comments

Comments
 (0)