Skip to content

Commit

Permalink
Updated support scripts and language files
Browse files Browse the repository at this point in the history
Changed If a preference is not found in the ini file, the default value is now saved, so it can be edited manually
  • Loading branch information
Bioruebe committed Oct 24, 2016
1 parent eaafbf1 commit 41c65f9
Show file tree
Hide file tree
Showing 36 changed files with 26 additions and 12 deletions.
5 changes: 2 additions & 3 deletions UniExtract.au3
Expand Up @@ -700,6 +700,7 @@ Func LoadPref($name, ByRef $value, $int = True)
Local $return = IniRead($prefs, "UniExtract Preferences", $name, "")
If @error Or $return = "" Then
Cout("Error reading option " & $name & " --> " & $value)
SavePref($name, $value)
Return SetError(1, "", -1)
EndIf

Expand Down Expand Up @@ -4386,6 +4387,7 @@ Func _AfterUpdate()
; Remove unused files
FileDelete($bindir & "languages\ChineseBig5_v0038.lng")
FileDelete($bindir & "languages\exeinfope_Neutral_v0038.lng")
FileDelete($bindir & "languages\exeinfope_Neutral_v0041.lng")
FileDelete($bindir & "languages\exeinfope_turkish.lng")
FileDelete($bindir & "languages\exeinfopeCHS.lng")
FileDelete($bindir & "faad.exe")
Expand All @@ -4400,9 +4402,6 @@ Func _AfterUpdate()
FileMove($bindir & "x86\7z.exe.new", $bindir & "x86\7z.exe", 1)
FileMove($bindir & "x64\7z.dll.new", $bindir & "x64\7z.dll", 1)
FileMove($bindir & "x64\7z.exe.new", $bindir & "x64\7z.exe", 1)

; Add new options to ini file (for options without corresponding GUI control)
SavePref("hidestatusboxiffullscreen", $bHideStatusBoxIfFullscreen)
EndFunc

; Download FFmpeg and move needed files to Universal Extractor directory
Expand Down
Binary file modified lang/Arabic.ini
Binary file not shown.
Binary file modified lang/Armenian.ini
Binary file not shown.
Binary file modified lang/Bulgarian.ini
Binary file not shown.
Binary file modified lang/Catalan.ini
Binary file not shown.
Binary file modified lang/Chinese (Simplified).ini
Binary file not shown.
Binary file modified lang/Chinese (Traditional).ini
Binary file not shown.
Binary file modified lang/Croatian.ini
Binary file not shown.
Binary file modified lang/Czech.ini
Binary file not shown.
Binary file modified lang/Dutch.ini
Binary file not shown.
Binary file modified lang/Farsi.ini
Binary file not shown.
Binary file modified lang/Finnish.ini
Binary file not shown.
Binary file modified lang/French.ini
Binary file not shown.
Binary file modified lang/Greek.ini
Binary file not shown.
Binary file modified lang/Hungarian.ini
Binary file not shown.
Binary file modified lang/Italian.ini
Binary file not shown.
Binary file modified lang/Japanese.ini
Binary file not shown.
Binary file modified lang/Korean.ini
Binary file not shown.
Binary file modified lang/Polish.ini
Binary file not shown.
Binary file modified lang/Portuguese (Brazilian).ini
Binary file not shown.
Binary file modified lang/Portuguese.ini
Binary file not shown.
Binary file modified lang/Romanian.ini
Binary file not shown.
Binary file modified lang/Russian.ini
Binary file not shown.
Binary file modified lang/Serbian.ini
Binary file not shown.
Binary file modified lang/Slovak.ini
Binary file not shown.
Binary file modified lang/Spanish.ini
Binary file not shown.
Binary file modified lang/Swedish.ini
Binary file not shown.
Binary file modified lang/Taiwanese.ini
Binary file not shown.
Binary file modified lang/Thai.ini
Binary file not shown.
Binary file modified lang/Turkish.ini
Binary file not shown.
Binary file modified lang/Ukrainian.ini
Binary file not shown.
Binary file modified lang/Vietnamese.ini
Binary file not shown.
20 changes: 17 additions & 3 deletions lang/changes.txt
Expand Up @@ -89,6 +89,13 @@ FIRSTSTART_PAGE3 = "%name can intergate completely into the context menu, so tha
FIRSTSTART_PAGE4 = "%name supports the extraction of audio and video tracks out of common video files. To keep the program size small, the files needed for this feature are not included by default.%n%nShould they be downloaded now?%n%nNote: With a click on Download you accept the FFMPEG license. After download it can be found in the license directory."
FIRSTSTART_PAGE5 = "In order to support a wide range of file types, %name provides support for additional extractors, which are not included by default. Mostly due to legal issues and to keep the filesize small, you have to download these plugins on your own and place them in the folder '%1'.%n%nWhenever a file extraction is possible with a missing additional extractor, a message will be displayed. An overview on available and installed plugins can be accesses via 'Plugins' entry in the help menu."
FIRSTSTART_PAGE6 = "The configuration has successfully been finished. You can now start using %name. If you encounter any bugs, please report them via the 'Feedback' menu point in the Help menu. Thank you.%n%nDisclaimer: This Software is provided "as-is", without any warranty; use it at your own risk. The authors of %name cannot be made responsible for any damages arising from the use of the Software. Like any tool, it can be used for legitimate as well as illegitmate purposes. With using %name you agree to use it only for legal purposes, according to local and international law. If you do not accept this license aggreement, you are not allowed to use this tool."
STATS_HEADER_STATUS = "General result distribution"
STATS_HEADER_TYPE = "Extractions by file type"
STATS_STATUS_SUCCESS = "Success"
STATS_STATUS_FAILED = "Failed"
STATS_STATUS_FILEINFO = "File scan"
STATS_STATUS_UNKNOWN = "Unknown file type / not supported"
STATS_NO_DATA = "Not enough data available to create statistics.%n%nPlease try again later."
ABOUT_INFO_LABEL = "by %1%nVersion 2.0.0 by Bioruebe <%2>%n%n%3%n%nEnglish language file by Jared Breland/Bioruebe%n%nReleased under %4"
ABOUT_VERSION = "Version %1"
METHOD_ADMIN_RADIO = "%1 Administrative Installer"
Expand All @@ -105,6 +112,7 @@ TERM_AUDIO = "Audio"
TERM_CONTAINER = "container format"
TERM_DOWNLOAD = "Download"
TERM_DOWNLOADING = "Downloading"
TERM_EXECUTABLE = "executable file"
TERM_EXTRACT = "extract"
TERM_FILE = "file"
TERM_GAME = "Game "
Expand All @@ -116,6 +124,7 @@ SCANNING_EXE = "Scanning executable file with %1"
SENDING_FEEDBACK = "Sending feedback"
INPUT_NEEDED = "User input needed"
SEARCHING_PASSWORD = "Searching password"
MOVING_FILE = "Moving to"
CONVERT_CDROM = "%1 images cannot be extracted directly. Instead, this image will be converted to an ISO image, which will then be extracted.%n%nWould you like to continue?%nNote: This process will take several minutes."
CONVERT_CDROM_STAGE1_FAILED = "Error: The image could not be converted.%nIf this is a BIN/CUE image, ensure that the CUE file is properly formatted."
CONVERT_CDROM_STAGE2_FAILED = "Error: An ISO image was created, but it could not be converted.%nWould you like to keep the ISO image for further analysis?"
Expand All @@ -132,7 +141,7 @@ FEEDBACK_PROMPT = "To improve further versions of %name, you could inform the de
FEEDBACK_PRIVACY = "Privacy notice: The feedback files are stored online on our servers until they are processed by a developer and deleted afterwards. No data will be shared with third parties. You can request deletion at any time via email.%n%nThe logged content can include system information as well as parts of the file's content. If you do not want to send specific information, simply delete them.%n%nDo you accept this privacy agreement and want to send the message? Otherwise nothing will be transmitted."
FFMPEG_NEEDED = "%1 seems to be a video file.%n%nIn order to extract all video and audio tracks, FFmpeg is needed, but the corresponding files are not included to keep the installer size small. %n%name can download the needed files automatically. Once downloaded, the binaries are stored in the program directory, updated automatically and can also be used in portable mode. %n%nDo you want %name to download FFmpeg now? %n%nNote: When clicking yes, you confirm that you have read the FFmpeg license information, which can be found at %2, and that you agree to it."
PACKAGE_EXPLORER = "%1 cannot be extracted automatically. %name will now display a file explorer. Select the files you want to extract, right click on any item and select 'Extract'. %n%nNote: If the file explorer is empty or an error message appears, search for an index file (often containing 'dir') in the directory and try to extract it."
UPDATE_PROMPT = "A new update is available for %name.%n%n Your version: %1%nNewest version: %2%n%n%3%n%nDo you want to download it now?"
UPDATE_PROMPT = "A new update is available for %1.%n%n Your version: %2%nNewest version: %3%n%n%4%n%nDo you want to download it now?"
FILE_COPY = "To process the file %1 correctly, a copy have to be created. Depending on the file size, this can take some time.%n%nPlease ensure that there is enough free space available and click OK to continue."
FILE_DELETE = "The file %1 has sucessfully been extracted. Do you want %name to delete the original file?%n%nNote: It can be possible that the extracted files are not usable. Please only click Yes if you are sure, the extraction worked like imagined.%n(This message can be deactivated in the options.)"
BATCH_DUPLICATE = "The file %1 is already in the batch queue.%n%nShall it be added again and therefore extracted twice?"
Expand All @@ -149,13 +158,15 @@ HELP_UPDATE = "%n %1%tCheck for updates"
HELP_SCAN = "%n %1%t%tGives information about the file type"
HELP_SILENT = "%n %1%t%tSilent mode (no prompts)"
HELP_BATCH = "%n %1%t%tAdd file to batch queue"
HELP_SUB = "%n%nPassing %1 instead of a destination directory name instructs%n%name to extract to a subdirectory named after the archive."
HELP_SUB = "%n%nPassing %1 instead of a destination directory name instructs%n%name to extract to a subdirectory named after the archive, "
HELP_LAST = "with %1 the last used directory will be used."
HELP_EXAMPLE2 = "%n %1 c:\1\example.zip c:\test"
HELP_NOARGS = "%n%nRunning %name without any arguments will prompt the user for the filename and destination directory."
CANNOT_EXTRACT = "%1 cannot be extracted.%nThe filetype could not be determined exactly. Filetype returned was: %n%n%2%n%nDo you want to analyze the file yourself?"
UNKNOWN_EXT = "%1 has an unknown extension and cannot be extracted.%n%nIf you have more information about this file type, please contact us. More details can be found in the Help menu.%n%n%2"
INVALID_FILE = "The file to extract,%n%n%1%,n%ncould not be found. Please select a valid input.%n%n%1"
INVALID_DIR = "%1 could not be created. You may not have the required permissions to write to the folder.%n%nPlease select a valid destination or try running %name with administrator rights."
NO_HISTORY = "%1 could not be extracted.%nLast used directory cannot be read.%n%nPlease make sure %2 is enabled and you have extracted at least one file before trying to extract to last used directory."
EXTRACT_FAILED = "%1 could not be extracted.%nIt appears to be a(n) %2, which is supported, but extraction failed.%n%nDo you want %name to create and display a log file with further information?"
NOT_PACKED = "%1 could not be extracted, the file is not packed but %n%n%2"
DOWNLOAD_FAILED = "The file %1 cannot be downloaded. Please ensure that you are connected to the internet and try again."
Expand All @@ -165,12 +176,13 @@ FEEDBACK_EMPTY = "Please try to give as much information as possible to ensure f
FEEDBACK_ERROR = "Sending feedback failed. Please try again later, manually send an email or use the forum to submit your report. Thank you"
BATCH_FINISH = "Batch processing has finished, but not all files could be extracted successfully. The following files resulted in an error:%n%n%1%nFor further information please read the appropriate files in the log directory (only available if logging is activated)."
NOT_SUPPORTED = "%1 cannot be extracted.%n%n%name does currently not support the file type. If you know any method to extract it, please send us some information about, so the feature can be added in future versions."
MISSING_EXE = "%1 cannot be extracted.%n%nThe helper module%2could not be found.%n%nIf it is an optional extractor, you have to download and move it into the program directory first. More information about optional modules can be found in the First Start Assistant, accessable via help menu."
MISSING_EXE = "%1 cannot be extracted.%n%nThe helper module %2 could not be found.%n%nIf it is an optional extractor, you have to download and move it into the program directory first. More information about optional modules can be found in the First Start Assistant, accessable via help menu."
RENAME_NOTFOUND = "The file's extension was successfully changed, but %name failed to locate the renamed file. Please search the file and restart %name%n%nGuessed filename: %1%n%nNote: You can disable renaming in the options menu using the %2 checkbox."
EXTRACT_TIMEOUT = "%1 could not be extracted.%n%nThe timeout was reached. If the problem is temporary, another try could lead to success."
WRONG_PASSWORD = "%1 could not be extracted.%n%nThe file is password protected and the password you entered is incorrect.%n%nTip: Use the built-in automatic password search based on a configurable password list, which can be found in the %2 menu."
PLUGIN_IMPORT_MISSINGFILES = "Importing plugin %1 failed.%n%nNot all files were selected. Please retry and select all of the following files:%n%n%2"
MISSING_DEFINITION = "%1 cannot be extracted.%n%nThe definition file %2 could not be found.%n%nIf it is a custom plugin, make sure you set it up correctly."
OPEN_URL_FAILED = "%name failed to open requested web link.%n%nPlease open your favourite browser and manually enter the following URL:"
PLUGIN_SUPPORTED_FILETYPES = "Supported file types:"
PLUGIN_ARC_CONV = "Extractor for several game archives"
PLUGIN_ISCAB = "Part of the installshield package to extract cab files. It might work better than Universal Extractor's generic extraction, but is a commercial (non free) tool."
Expand All @@ -184,7 +196,9 @@ PLUGIN_CI = "Plugin for CreateInstall installers, download, install, copy files
PLUGIN_DGCA = "Decompressor for DGCA archives"
PLUGIN_BOOTIMG = "Extractor for Android boot images"
PLUGIN_IS5COMP = "Extraction support for older InstallShield cabinet archives"
PLUGIN_SIM = "Extractor for Smart Install Maker installers"
EXTRACT_FILES = "UniExtract &Open"
EXTRACT_LAST = "UniExtract to &last dir."
SCAN_FILE = "Scan File"
DIR_ADDITIONAL_FILES = "Additional files"
COMP_FULL = "Full installation"
Expand Down
2 changes: 1 addition & 1 deletion support/CheckFiles.au3
Expand Up @@ -4,7 +4,7 @@
Author: Bioruebe
Script Function:
Checks if files in /bin directory are listed in helper binaries info file
Returns files in /bin directory, which are not listed in helper binaries info file
#ce ----------------------------------------------------------------------------

Expand Down
9 changes: 5 additions & 4 deletions support/CreateUpdatePackage.au3
@@ -1,10 +1,10 @@
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.1
Author: myName
Author: Bioruebe
Script Function:
Template AutoIt script.
Creates an update package with all changed files since last run
#ce ----------------------------------------------------------------------------

Expand All @@ -20,7 +20,7 @@ $sSnapshotFile = "Snapshot.csv" ; path, hash
$sMainFile = "..\UniExtract.au3"
$sOutdir = ".\Update\"
$s7z = "..\bin\x64\7z.exe"
$sFilter = "*|*.au3;*.xcf;standard.ini;UniExtract.ini;English_old.ini;passwords.txt;list.txt;.gitignore;ffmpeg.exe;arc_conv.exe;bootimg.exe;ci-extractor.exe;dcp_unpacker.exe;dgcac.exe;EnigmaVBUnpacker.exe;iscab.exe;i5comp.exe;mpq.wcx*;RPGDecrypter.exe;sim_unpacker.exe;Extractor.exe;extract.exe;ZD50149.DLL;ZD51145.DLL;gea.dll;gentee.dll;" & $sSnapshotFile & "|.git;backup;devdata;homepage;log;test;userlogs;Update;crass-0.4.14.0;IS_Languages;FFmpeg"
$sFilter = "*|*.au3;*.xcf;standard.ini;UniExtract.ini;English_old.ini;passwords.txt;list.txt;.gitignore;ffmpeg.exe;arc_conv.exe;bootimg.exe;ci-extractor.exe;dcp_unpacker.exe;dgcac.exe;EnigmaVBUnpacker.exe;iscab.exe;i5comp.exe;mpq.wcx*;RPGDecrypter.exe;sim_unpacker.exe;Extractor.exe;extract.exe;ZD50149.DLL;ZD51145.DLL;gea.dll;gentee.dll;" & $sSnapshotFile & ";" & $sSnapshotFile & ".bak" & "|.git;backup;devdata;homepage;log;test;userlogs;Update;crass-0.4.14.0;IS_Languages;FFmpeg"

$aVersion = _StringBetween(FileRead($sMainFile), 'version = "', '"')
If @error Then Dim $aVersion = ["Update"]
Expand Down Expand Up @@ -67,7 +67,8 @@ If FileExists($sArchive) Then Exit MsgBox(48, "Error", "File already exists: " &

Cout("Copying files")
For $sFile In $aChanged
FileCopy($sDir & $sFile, $sOutdir & $sFile, $FC_CREATEPATH)
; 7zip cannot replace itself, so to extract new versions of 7zip, it has to be renamed
FileCopy($sDir & $sFile, $sOutdir & $sFile & (StringInStr($sFile, "\7z.")? ".new": ""), $FC_CREATEPATH)
Next

Cout("Compressing")
Expand Down
2 changes: 1 addition & 1 deletion support/Update_Language.au3
Expand Up @@ -156,6 +156,6 @@ Func _Strip(ByRef $arr)
$pos = 0
$pos = StringInStr($arr[$i], "=")
If $pos Then $arr[$i] = StringLeft($arr[$i], $pos)
If StringInStr($arr[$i], "Written for") Then $version = StringReplace($arr[$i], "; Written for ", "")
If StringInStr($arr[$i], "Written for") Then $version = StringReplace($arr[$i], "; Written for Universal Extractor ", "")
Next
EndFunc

0 comments on commit 41c65f9

Please sign in to comment.