Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MurageKabui authored Dec 5, 2020
1 parent 45b2c81 commit 0b4bf73
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/CL-Translator.au3
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=F:\Autoit Cool\Projects\Translator\yaTL.ico
#AutoIt3Wrapper_Outfile=F:\Autoit Cool\Projects\Translator\CL-Translator.exe
#AutoIt3Wrapper_Outfile=F:\Autoit Cool\Projects\Translator\CL-QuickTranslate.exe
#AutoIt3Wrapper_Compression=3
#AutoIt3Wrapper_Change2CUI=y
#AutoIt3Wrapper_Res_Description=Translation made easy.
#AutoIt3Wrapper_Res_Fileversion=0.0.0.133
#AutoIt3Wrapper_Res_Fileversion=0.0.0.137
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
#AutoIt3Wrapper_Res_CompanyName=Kabue Murage
#AutoIt3Wrapper_Res_LegalCopyright=Kabue Murage
Expand Down Expand Up @@ -129,9 +130,15 @@ ElseIf _CmdLine_KeyExists('f') Then
If $b_gSaveToFile Then
Select
Case StringInStr($s_gSaveAs, '%f')
$s_gSaveAs = StringReplace($s_gSaveAs, '%f', "")
; FQPN to filename.
Local $sRep = StringRegExpReplace($aMtpleEnc[$i], "^.*\\", "")
; strip extension
$sRep = StringReplace($sRep, _GetFileExtension($sRep), "")

$s_gSaveAs = StringReplace($s_gSaveAs, '%f', $sRep)
ContinueCase
Case StringInStr($s_gSaveAs, '%l')
$s_gSaveAs = StringReplace($s_gSaveAs, '%l', $vLangResult)
$s_gSaveAs = StringReplace($s_gSaveAs, '%l', StringUpper($vLangResult))
EndSelect
WriteToFile($s_gSaveAs, $res)
$hCout("Saved to file : " & $s_gSaveAs & @CRLF)
Expand Down

0 comments on commit 0b4bf73

Please sign in to comment.