Skip to content

Commit

Permalink
Доработка метода перевода: подстановка значений, если строка с перево…
Browse files Browse the repository at this point in the history
…дом не найдена
  • Loading branch information
13Hz committed Sep 20, 2023
1 parent 6bf6a92 commit 47ce26c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion translate_plugin/Translate.bb
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ Function translate$(title$, needle$ = "", replacement$ = "")
EndIf
EndIf
Next
Return title$
If Len(needle$) > 0 and Len(replacement$) > 0 Then
Return Replace$(title$, needle$, replacement$)
Else
Return title$
EndIf
End Function

0 comments on commit 47ce26c

Please sign in to comment.