From 64f36e9ffc3d1da236e2a4298279e68c2001b9d0 Mon Sep 17 00:00:00 2001 From: TechUnRestricted <83237609+TechUnRestricted@users.noreply.github.com> Date: Mon, 8 Jan 2024 01:03:00 +0300 Subject: [PATCH] Finalizing Translations --- .../LocalizedStrings/LocalizedStrings.h | 608 ++++++++-------- .../LocalizedStrings/LocalizedStrings.m | 648 ++++++++++-------- .../en.lproj/Localizable.strings | 30 + .../ru.lproj/Localizable.strings | 30 + .../Views/AdvancedTextView/AdvancedTextView.h | 4 - .../Views/AdvancedTextView/AdvancedTextView.m | 8 - WinDiskWriter/Views/LogView/LogView.h | 22 +- WinDiskWriter/Views/LogView/LogView.m | 51 +- WinDiskWriter/Windows/MainWindow/MainWindow.m | 4 +- 9 files changed, 775 insertions(+), 630 deletions(-) diff --git a/WinDiskWriter/LocalizedStrings/LocalizedStrings.h b/WinDiskWriter/LocalizedStrings/LocalizedStrings.h index 4fd38e0..3d56a1c 100644 --- a/WinDiskWriter/LocalizedStrings/LocalizedStrings.h +++ b/WinDiskWriter/LocalizedStrings/LocalizedStrings.h @@ -12,9 +12,18 @@ NS_ASSUME_NONNULL_BEGIN @interface LocalizedStrings : NSObject +/// @brief Skip File ++ (NSString *)alertButtonTitleSkipFile; + +/// @brief Stop Writing ++ (NSString *)alertButtonTitleStopWriting; + /// @brief Do not forget to properly remove the device to avoid data corruption. + (NSString *)alertSubtitleImageWritingSuccess; +/// @brief To enable Legacy Boot, WinDiskWriter needs to download grub4dos bootloader files.\nGrub4dos is distributed under the GNU General Public License version 2.0. ++ (NSString *)alertSubtitleLegacyBootSupport; + /// @brief The Path to the Image or Folder you entered does not exist. + (NSString *)alertSubtitlePathDoesNotExist; @@ -24,44 +33,38 @@ NS_ASSUME_NONNULL_BEGIN /// @brief Connect a compatible USB device and click on the Update button. + (NSString *)alertSubtitlePressUpdateButton; +/// @brief This operation will clear all Application Data for the '%@' user. ++ (NSString *)alertSubtitlePromptResetSettingsWithArgument1:(id)argument1; + +/// @brief The application can try to fix these errors by relaunching as Root. ++ (NSString *)alertSubtitlePromptStartFailsafeRecovery; + +/// @brief You will lose all data on the selected device. ++ (NSString *)alertSubtitlePromptStartProcess; + +/// @brief All unsaved changes will be lost ++ (NSString *)alertSubtitleRequireRestartAsRoot; + /// @brief You will need to wait until the last file finish the copying. + (NSString *)alertSubtitleStopProcess; +/// @brief Would you like to skip this file, or stop writing? ++ (NSString *)alertSubtitleWriteFileProblemOccurred; + /// @brief The information about this device is outdated or invalid. + (NSString *)alertTitleBsdDeviceInfoIsOutdatedOrInvalid; /// @brief Chosen Device is no longer available. + (NSString *)alertTitleBsdDeviceIsNoLongerAvailable; -/// @brief Cancel -+ (NSString *)buttonTitleCancel; - -/// @brief Schedule the cancellation -+ (NSString *)buttonTitleCancellationSchedule; - -/// @brief Choose -+ (NSString *)buttonTitleChoose; - -/// @brief Dismiss -+ (NSString *)buttonTitleDismiss; - -/// @brief Start -+ (NSString *)buttonTitleStart; - -/// @brief Stop -+ (NSString *)buttonTitleStop; - -/// @brief Stopping -+ (NSString *)buttonTitleStopping; - /// @brief Check the correctness of the entered data. + (NSString *)alertTitleCheckDataCorrectness; /// @brief Can't erase the destination device. + (NSString *)alertTitleDiskEraseFailure; -/// @brief The destination device was successfully erased. -+ (NSString *)progressTitleDiskEraseSuccess; +/// @brief Failed to restart ++ (NSString *)alertTitleFailedToRestart; /// @brief You forgot something... + (NSString *)alertTitleForgotSomething; @@ -75,419 +78,446 @@ NS_ASSUME_NONNULL_BEGIN /// @brief Image writing completed successfully. + (NSString *)alertTitleImageWritingSuccess; -/// @brief Image File or Directory -+ (NSString *)inputviewPlaceholderImageFileOrDirectory; +/// @brief Legacy Boot Support ++ (NSString *)alertTitleLegacyBootSupport; -/// @brief Windows Image -+ (NSString *)labelviewTitleWindowsImage; +/// @brief No writable devices found. ++ (NSString *)alertTitleNoWritableDevices; -/// @brief ❤️ Donate Me ❤️ -+ (NSString *)menuTitleDonateMe; +/// @brief Are you sure you want to start? ++ (NSString *)alertTitlePromptStartProcess; -/// @brief Edit -+ (NSString *)menuTitleEdit; +/// @brief This option requires the application to be relaunched with Root Permissions ++ (NSString *)alertTitleRequireRestartAsRoot; -/// @brief Hide -+ (NSString *)menuTitleHide; +/// @brief Do you want to stop the process? ++ (NSString *)alertTitleStopProcess; -/// @brief About -+ (NSString *)menuTitleItemAbout; +/// @brief A problem occurred while writing the file to disk ++ (NSString *)alertTitleWriteFileProblemOccurred; -/// @brief Copy -+ (NSString *)menuTitleItemCopy; +/// @brief AssertionFailure ++ (NSString *)asLogTypeAssertionError; -/// @brief Cut -+ (NSString *)menuTitleItemCut; +/// @brief Failure ++ (NSString *)asLogTypeFailure; -/// @brief Open Donation Web Page -+ (NSString *)menuTitleItemOpenDonationWebPage; +/// @brief Fatal ++ (NSString *)asLogTypeFatal; -/// @brief Paste -+ (NSString *)menuTitleItemPaste; +/// @brief Log ++ (NSString *)asLogTypeLog; -/// @brief Quit -+ (NSString *)menuTitleItemQuit; +/// @brief Skipped ++ (NSString *)asLogTypeSkipped; -/// @brief Select All -+ (NSString *)menuTitleItemSelectAll; +/// @brief Start ++ (NSString *)asLogTypeStart; -/// @brief Minimize -+ (NSString *)menuTitleMinimize; +/// @brief Success ++ (NSString *)asLogTypeSuccess; -/// @brief Window -+ (NSString *)menuTitleWindow; +/// @brief Warning ++ (NSString *)asLogTypeWarning; -/// @brief No writable devices found. -+ (NSString *)alertTitleNoWritableDevices; +/// @brief The requested socket address is invalid (must be 0-1023 inclusive). ++ (NSString *)authorizationErrorBadAddress; -/// @brief Are you sure you want to start? -+ (NSString *)alertTitlePromptStartProcess; +/// @brief The authorization was canceled by the user. ++ (NSString *)authorizationErrorCanceled; -/// @brief You will lose all data on the selected device. -+ (NSString *)alertSubtitlePromptStartProcess; +/// @brief The authorization was denied. ++ (NSString *)authorizationErrorDenied; -/// @brief Ready for action -+ (NSString *)progressTitleReadyForAction; +/// @brief The Security Server denied externalization of the authorization reference. ++ (NSString *)authorizationErrorExternalizeNotAllowed; -/// @brief Do you want to stop the process? -+ (NSString *)alertTitleStopProcess; +/// @brief The authorization was denied since no user interaction was possible. ++ (NSString *)authorizationErrorInteractionNotAllowed; -/// @brief Target Device -+ (NSString *)labelviewTitleTargetDevice; +/// @brief An unrecognized internal error occurred. ++ (NSString *)authorizationErrorInternal; -/// @brief Update -+ (NSString *)buttonTitleUpdate; +/// @brief The Security Server denied internalization of the authorization reference. ++ (NSString *)authorizationErrorInternalizeNotAllowed; -/// @brief Patch Installer Requirements -+ (NSString *)checkboxviewTitlePatchInstallerRequirements; +/// @brief The provided option flag(s) are invalid for this authorization operation. ++ (NSString *)authorizationErrorInvalidFlags; -/// @brief Remove TPM, Secure Boot and RAM requirements from the installer.\n(Windows 11 only) -+ (NSString *)checkboxviewTooltipPatchInstallerRequirements; +/// @brief The authorizedRights parameter is invalid. ++ (NSString *)authorizationErrorInvalidPointer; -/// @brief Install Legacy BIOS Boot Sector -+ (NSString *)checkboxviewTitleInstallLegacyBootSector; +/// @brief The authorization parameter is invalid. ++ (NSString *)authorizationErrorInvalidRef; -/// @brief Add support for older firmwares that don't support booting from EFI. -+ (NSString *)checkboxviewTooltipInstallLegacyBootSector; +/// @brief The set parameter is invalid. ++ (NSString *)authorizationErrorInvalidSet; -/// @brief Desired filesystem for the destination device.\n(FAT32 is the best choice for compatibility) -+ (NSString *)tooltipFramelayoutFormattingSection; +/// @brief The authorization tag is invalid. ++ (NSString *)authorizationErrorInvalidTag; -/// @brief File System -+ (NSString *)labelviewTitleFilesystem; +/// @brief The attempt to execute the tool failed to return a success or an error code. ++ (NSString *)authorizationErrorToolEnvironmentError; -/// @brief Failed to restart -+ (NSString *)alertTitleFailedToRestart; +/// @brief The tool failed to execute. ++ (NSString *)authorizationErrorToolExecuteFailure; -/// @brief This option requires the application to be relaunched with Root Permissions -+ (NSString *)alertTitleRequireRestartAsRoot; +/// @brief Cancel ++ (NSString *)buttonTitleCancel; -/// @brief All unsaved changes will be lost -+ (NSString *)alertSubtitleRequireRestartAsRoot; +/// @brief Schedule the cancellation ++ (NSString *)buttonTitleCancellationSchedule; + +/// @brief Choose ++ (NSString *)buttonTitleChoose; + +/// @brief Dismiss ++ (NSString *)buttonTitleDismiss; /// @brief Relaunch + (NSString *)buttonTitleRelaunch; -/// @brief Formatting the drive -+ (NSString *)progressTitleFormattingTheDrive; +/// @brief Start ++ (NSString *)buttonTitleStart; -/// @brief Create directory -+ (NSString *)progressTitleCreateDirectory; +/// @brief Stop ++ (NSString *)buttonTitleStop; -/// @brief Write File -+ (NSString *)progressTitleWriteFile; +/// @brief Stopping ++ (NSString *)buttonTitleStopping; -/// @brief Split Image -+ (NSString *)progressTitleSplitImage; +/// @brief Update ++ (NSString *)buttonTitleUpdate; -/// @brief Extract Bootloader -+ (NSString *)progressTitleExtractBootloader; +/// @brief Install Legacy BIOS Boot Sector ++ (NSString *)checkboxviewTitleInstallLegacyBootSector; /// @brief Patch Installer Requirements -+ (NSString *)progressTitlePatchInstallerRequirements; - -/// @brief Install Legacy Bootloader -+ (NSString *)progressTitleInstallLegacyBootloader; ++ (NSString *)checkboxviewTitlePatchInstallerRequirements; -/// @brief (Error message: '%@') -+ (NSString *)logviewRowPartialTitleErrorMessageWithArgument1:(id)argument1; +/// @brief Add support for older firmwares that don't support booting from EFI. ++ (NSString *)checkboxviewTooltipInstallLegacyBootSector; -/// @brief Image was successfully mounted -+ (NSString *)logviewRowTitleImageMountSuccess; +/// @brief Remove TPM, Secure Boot and RAM requirements from the installer.\n(Windows 11 only) ++ (NSString *)checkboxviewTooltipPatchInstallerRequirements; -/// @brief Generated partition name -+ (NSString *)logviewRowTitleGeneratedPartitionName; +/// @brief An invalid argument was passed to the function. ++ (NSString *)dadiskErrorTextBadArgument; -/// @brief Target partition path -+ (NSString *)logviewRowTitleTargetPartitionPath; +/// @brief The disk is busy. ++ (NSString *)dadiskErrorTextBusy; -/// @brief Device %@ (%@ %@) is ready to be erased with the following properties: (partition_name: '%@', partition_scheme: '%@', filesystem: '%@', patch_installer_requirements: '%d', install_legacy_boot: '%d'). -+ (NSString *)logviewRowTitleDiskEraseOperationOptionsWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 argument4:(id)argument4 argument5:(id)argument5 argument6:(id)argument6 argument7:(NSInteger)argument7 argument8:(NSInteger)argument8; +/// @brief The disk is locked and cannot be modified. ++ (NSString *)dadiskErrorTextExclusiveAccess; -/// @brief A problem occurred while writing the file to disk -+ (NSString *)alertTitleWriteFileProblemOccurred; +/// @brief The disk or the volume was not found. ++ (NSString *)dadiskErrorTextNotFound; -/// @brief Would you like to skip this file, or stop writing? -+ (NSString *)alertSubtitleWriteFileProblemOccurred; +/// @brief The disk is not mounted. ++ (NSString *)dadiskErrorTextNotMounted; -/// @brief (Reason: %@) -+ (NSString *)placeholderReasonWithArgument1:(id)argument1; +/// @brief The operation is not permitted. ++ (NSString *)dadiskErrorTextNotPermitted; -/// @brief Stop Writing -+ (NSString *)alertButtonTitleStopWriting; +/// @brief The user does not have the required privileges. ++ (NSString *)dadiskErrorTextNotPrivileged; -/// @brief Skip File -+ (NSString *)alertButtonTitleSkipFile; +/// @brief The disk is not ready. ++ (NSString *)dadiskErrorTextNotReady; -/// @brief Clearing the device picker list. -+ (NSString *)logviewRowTitleClearingDevicePickerList; +/// @brief The disk or the volume is not writable. ++ (NSString *)dadiskErrorTextNotWritable; -/// @brief Found devices -+ (NSString *)logviewRowPartialTitleFoundDevices; +/// @brief There are not enough resources to complete the operation. ++ (NSString *)dadiskErrorTextNoResources; -/// @brief Close -+ (NSString *)menuTitleItemClose; +/// @brief An unspecified error occurred. ++ (NSString *)dadiskErrorTextUnspecified; -/// @brief Can't determine the BSD path for the destination device. -+ (NSString *)errorTextCantDetermineBsdPath; +/// @brief The operation is not supported by the disk. ++ (NSString *)dadiskErrorTextUnsupported; -/// @brief Bootloader MBR file doesn't exist. -+ (NSString *)errorTextBootloaderMbrFileDoesntExist; +/// @brief Can't copy '%@' to the destination device. ++ (NSString *)errorCantCopyFileToDestinationDeviceWithArgument1:(id)argument1; -/// @brief Bootloader Grldr file doesn't exist. -+ (NSString *)errorTextBootloaderGrldrFileDoesntExist; +/// @brief File (directory) '%@' doesn't exist. ++ (NSString *)errorFileOrDirectoryDoesntExistWithArgument1:(id)argument1; -/// @brief Bootloader Menu file doesn't exist. -+ (NSString *)errorTextBootloaderMenuFileDoesntExist; +/// @brief Couldn't allocate memory for buffer. ++ (NSString *)errorTextAllocateMemoryBufferFailure; -/// @brief Can't open the input handle for the MBR file. -+ (NSString *)errorTextBootloaderMbrOpenFileInputHandleFailure; +/// @brief The first object of application arguments list is not a file. ++ (NSString *)errorTextApplicationArgumentsBadStructure; -/// @brief Can't open the output device. -+ (NSString *)errorTextOutputDeviceOpenFailure; - -/// @brief Can't get the available space for the specified path. -+ (NSString *)errorTextGetAvailableSpaceFailure; +/// @brief Application arguments list is empty. ++ (NSString *)errorTextApplicationArgumentsListIsEmpty; -/// @brief Not enough free disk space. -+ (NSString *)errorTextDiskSpaceNotEnough; +/// @brief The bootloader files could not be downloaded. ++ (NSString *)errorTextBootloaderFilesCantBeDownloaded; -/// @brief Can't copy this file to the FAT32 volume due to filesystem limitations. -+ (NSString *)errorTextFileCopyFailureOverFat32SizeLimit; +/// @brief Bootloader Grldr file doesn't exist. ++ (NSString *)errorTextBootloaderGrldrFileDoesntExist; -/// @brief Couldn't open the source file. -+ (NSString *)errorTextOpenSourceFileFailure; +/// @brief Bootloader MBR file doesn't exist. ++ (NSString *)errorTextBootloaderMbrFileDoesntExist; -/// @brief Couldn't open the destination file path. -+ (NSString *)errorTextOpenDestinationPathFailure; +/// @brief Can't open the input handle for the MBR file. ++ (NSString *)errorTextBootloaderMbrOpenFileInputHandleFailure; -/// @brief Couldn't allocate memory for buffer. -+ (NSString *)errorTextAllocateMemoryBufferFailure; +/// @brief Bootloader Menu file doesn't exist. ++ (NSString *)errorTextBootloaderMenuFileDoesntExist; -/// @brief Can't write data to destination path. -+ (NSString *)errorTextWriteDestinationPathDataFailure; +/// @brief Can't cleanup temporary directories ++ (NSString *)errorTextCantCleanupTemporaryDirectories; -/// @brief Splitting Windows Install Images with .esd and .swm extensions is currently not supported. -+ (NSString *)errorTextSplittingEsdSwmNotSupported; +/// @brief Can't create base directories ++ (NSString *)errorTextCantCreateBaseDirectories; -/// @brief Destination path does not exist. -+ (NSString *)errorTextDestinationPathDoesNotExist; +/// @brief Can't create a base directory at path: '%@' [Error: '%@'] ++ (NSString *)errorTextCantCreateBaseDirectoryAtPathWithArgument1:(id)argument1 argument2:(id)argument2; -/// @brief Can't get the available space for the destination disk. -+ (NSString *)errorTextGetAvailableDestinationDiskSpaceFailure; +/// @brief Can't create a blank file for storing a file in a temporary directory: '%@'. ++ (NSString *)errorTextCantCreateTemporaryBlankFileWithArgument1:(id)argument1; -/// @brief Source is too large for the destination disk. -+ (NSString *)errorTextSourceIsTooLargeForTheDestinationDisk; +/// @brief Can't determine the BSD path for the destination device. ++ (NSString *)errorTextCantDetermineBsdPath; -/// @brief Version -+ (NSString *)labelviewTitleVersion; +/// @brief Can't fix permissions for base directories ++ (NSString *)errorTextCantFixPermissionsForBaseDirectories; -/// @brief Additional Information -+ (NSString *)labelviewTitleAdditionalInformation; +/// @brief Can't retrieve the information from the command line error output pipe. ++ (NSString *)errorTextCantGetErrorOutputPipe; -/// @brief An unspecified error occurred. -+ (NSString *)dadiskErrorTextUnspecified; +/// @brief Can't open file handle for temporary file path: '%@'. ++ (NSString *)errorTextCantOpenFilehandleForTempFilePathWithArgument1:(id)argument1; -/// @brief The disk is busy. -+ (NSString *)dadiskErrorTextBusy; +/// @brief An error occurred while reading output from hdiutil. ++ (NSString *)errorTextCantParseHdiutilOutput; -/// @brief An invalid argument was passed to the function. -+ (NSString *)dadiskErrorTextBadArgument; +/// @brief Can't set 777 permissions for directory: '%@' [Error: '%@'] ++ (NSString *)errorTextCantSetAllPermissionsForDirectoryWithArgument1:(id)argument1 argument2:(id)argument2; -/// @brief The disk is locked and cannot be modified. -+ (NSString *)dadiskErrorTextExclusiveAccess; +/// @brief An error occurred while executing the command. ++ (NSString *)errorTextCommandLineExecuteFailure; -/// @brief There are not enough resources to complete the operation. -+ (NSString *)dadiskErrorTextNoResources; +/// @brief Destination path does not exist. ++ (NSString *)errorTextDestinationPathDoesNotExist; -/// @brief The disk or the volume was not found. -+ (NSString *)dadiskErrorTextNotFound; +/// @brief Not enough free disk space. ++ (NSString *)errorTextDiskSpaceNotEnough; -/// @brief The disk is not mounted. -+ (NSString *)dadiskErrorTextNotMounted; +/// @brief Can't copy this file to the FAT32 volume due to filesystem limitations. ++ (NSString *)errorTextFileCopyFailureOverFat32SizeLimit; -/// @brief The operation is not permitted. -+ (NSString *)dadiskErrorTextNotPermitted; +/// @brief This file does not have an .iso extension. ++ (NSString *)errorTextFileTypeIsNotIso; -/// @brief The user does not have the required privileges. -+ (NSString *)dadiskErrorTextNotPrivileged; +/// @brief Can't get the available space for the destination disk. ++ (NSString *)errorTextGetAvailableDestinationDiskSpaceFailure; -/// @brief The disk is not ready. -+ (NSString *)dadiskErrorTextNotReady; +/// @brief Can't get the available space for the specified path. ++ (NSString *)errorTextGetAvailableSpaceFailure; -/// @brief The disk or the volume is not writable. -+ (NSString *)dadiskErrorTextNotWritable; +/// @brief The exit status of hdiutil was not EXIT_SUCCESS. ++ (NSString *)errorTextHdiutilStatusWasNotExitSuccess; -/// @brief The operation is not supported by the disk. -+ (NSString *)dadiskErrorTextUnsupported; +/// @brief HTTP Response has incorrect status status code: %ld. ++ (NSString *)errorTextHttpResponseIncorrectStatusWithArgument1:(long)argument1; -/// @brief Specified BSD name does not exist. Can't erase this volume. -+ (NSString *)errorTextSpecifiedBsdNameDoesntExistCantErase; +/// @brief Can't load the destination device info from mounted volume on this Mac OS X version. ++ (NSString *)errorTextInitWithVolumePathUnsupported; -/// @brief An error occurred while executing the command. -+ (NSString *)errorTextCommandLineExecuteFailure; +/// @brief Couldn't open the destination file path. ++ (NSString *)errorTextOpenDestinationPathFailure; -/// @brief Can't retrieve the information from the command line error output pipe. -+ (NSString *)errorTextCantGetErrorOutputPipe; +/// @brief Couldn't open the source file. ++ (NSString *)errorTextOpenSourceFileFailure; -/// @brief An error occurred while reading output from hdiutil. -+ (NSString *)errorTextCantParseHdiutilOutput; +/// @brief Can't open the output device. ++ (NSString *)errorTextOutputDeviceOpenFailure; /// @brief Can't load \"system-entities\" from parsed plist. + (NSString *)errorTextPlistCantLoadSystemEntities; +/// @brief The number of System Entities in this image is >1. The required Entity could not be determined. Try to specify the path to an already mounted image. ++ (NSString *)errorTextPlistSystemEntitiesCountMoreThanOne; + /// @brief This image does not contain any System Entity. + (NSString *)errorTextPlistSystemEntitiesIsEmpty; -/// @brief The number of System Entities in this image is >1. The required Entity could not be determined. Try to specify the path to an already mounted image. -+ (NSString *)errorTextPlistSystemEntitiesCountMoreThanOne; +/// @brief Source is too large for the destination disk. ++ (NSString *)errorTextSourceIsTooLargeForTheDestinationDisk; -/// @brief The exit status of hdiutil was not EXIT_SUCCESS. -+ (NSString *)errorTextHdiutilStatusWasNotExitSuccess; +/// @brief Specified BSD name does not exist. Can't erase this volume. ++ (NSString *)errorTextSpecifiedBsdNameDoesntExistCantErase; + +/// @brief Splitting Windows Install Images with .esd and .swm extensions is currently not supported. ++ (NSString *)errorTextSplittingEsdSwmNotSupported; /// @brief Can't unmount the destination device + (NSString *)errorTextUnmountDestinationDeviceFailure; -/// @brief Application arguments list is empty. -+ (NSString *)errorTextApplicationArgumentsListIsEmpty; +/// @brief NSURLConnection Response length is unknown. ++ (NSString *)errorTextUrlConnectionUnknownResponseLength; -/// @brief The first object of application arguments list is not a file. -+ (NSString *)errorTextApplicationArgumentsBadStructure; +/// @brief Can't write data to destination path. ++ (NSString *)errorTextWriteDestinationPathDataFailure; -/// @brief The set parameter is invalid. -+ (NSString *)authorizationErrorInvalidSet; +/// @brief Cancel ++ (NSString *)genericCancel; -/// @brief The authorization parameter is invalid. -+ (NSString *)authorizationErrorInvalidRef; +/// @brief Continue ++ (NSString *)genericContinue; -/// @brief The authorization tag is invalid. -+ (NSString *)authorizationErrorInvalidTag; +/// @brief No ++ (NSString *)genericNo; -/// @brief The authorizedRights parameter is invalid. -+ (NSString *)authorizationErrorInvalidPointer; +/// @brief Yes ++ (NSString *)genericYes; -/// @brief The authorization was denied. -+ (NSString *)authorizationErrorDenied; +/// @brief Image File or Directory ++ (NSString *)inputviewPlaceholderImageFileOrDirectory; -/// @brief The authorization was canceled by the user. -+ (NSString *)authorizationErrorCanceled; +/// @brief Additional Information ++ (NSString *)labelviewTitleAdditionalInformation; -/// @brief The authorization was denied since no user interaction was possible. -+ (NSString *)authorizationErrorInteractionNotAllowed; +/// @brief File System ++ (NSString *)labelviewTitleFilesystem; -/// @brief An unrecognized internal error occurred. -+ (NSString *)authorizationErrorInternal; +/// @brief Target Device ++ (NSString *)labelviewTitleTargetDevice; -/// @brief The Security Server denied externalization of the authorization reference. -+ (NSString *)authorizationErrorExternalizeNotAllowed; +/// @brief Version ++ (NSString *)labelviewTitleVersion; -/// @brief The Security Server denied internalization of the authorization reference. -+ (NSString *)authorizationErrorInternalizeNotAllowed; +/// @brief Windows Image ++ (NSString *)labelviewTitleWindowsImage; -/// @brief The provided option flag(s) are invalid for this authorization operation. -+ (NSString *)authorizationErrorInvalidFlags; +/// @brief Create directory at Application Folder path: '%@'. ++ (NSString *)logviewRowCreateDirectoryAtAppFolderPathWithArgument1:(id)argument1; -/// @brief The tool failed to execute. -+ (NSString *)authorizationErrorToolExecuteFailure; +/// @brief Found Legacy Bootloader files. ++ (NSString *)logviewRowFoundLegacyBootloaderFiles; -/// @brief The attempt to execute the tool failed to return a success or an error code. -+ (NSString *)authorizationErrorToolEnvironmentError; +/// @brief Legacy Bootloader files were not found. ++ (NSString *)logviewRowLegacyBootloaderFilesNotFound; -/// @brief The requested socket address is invalid (must be 0-1023 inclusive). -+ (NSString *)authorizationErrorBadAddress; +/// @brief (Error message: '%@') ++ (NSString *)logviewRowPartialTitleErrorMessageWithArgument1:(id)argument1; -/// @brief This file does not have an .iso extension. -+ (NSString *)errorTextFileTypeIsNotIso; +/// @brief Found devices ++ (NSString *)logviewRowPartialTitleFoundDevices; -/// @brief Can't load the destination device info from mounted volume on this Mac OS X version. -+ (NSString *)errorTextInitWithVolumePathUnsupported; +/// @brief Clearing the device picker list. ++ (NSString *)logviewRowTitleClearingDevicePickerList; -/// @brief Can't copy '%@' to the destination device. -+ (NSString *)errorCantCopyFileToDestinationDeviceWithArgument1:(id)argument1; +/// @brief Device %@ (%@ %@) is ready to be erased with the following properties: (partition_name: '%@', partition_scheme: '%@', filesystem: '%@', patch_installer_requirements: '%d', install_legacy_boot: '%d'). ++ (NSString *)logviewRowTitleDiskEraseOperationOptionsWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 argument4:(id)argument4 argument5:(id)argument5 argument6:(id)argument6 argument7:(NSInteger)argument7 argument8:(NSInteger)argument8; -/// @brief File (directory) '%@' doesn't exist. -+ (NSString *)errorFileOrDirectoryDoesntExistWithArgument1:(id)argument1; +/// @brief Generated partition name ++ (NSString *)logviewRowTitleGeneratedPartitionName; -/// @brief Debug -+ (NSString *)menuTitleItemDebug; +/// @brief Image was successfully mounted ++ (NSString *)logviewRowTitleImageMountSuccess; -/// @brief Scan All Whole Disks -+ (NSString *)menuTitleScanAllWholeDisks; +/// @brief Target partition path ++ (NSString *)logviewRowTitleTargetPartitionPath; -/// @brief Can't cleanup temporary directories -+ (NSString *)errorTextCantCleanupTemporaryDirectories; +/// @brief ❤️ Donate Me ❤️ ++ (NSString *)menuTitleDonateMe; -/// @brief Can't create base directories -+ (NSString *)errorTextCantCreateBaseDirectories; +/// @brief Edit ++ (NSString *)menuTitleEdit; -/// @brief Can't fix permissions for base directories -+ (NSString *)errorTextCantFixPermissionsForBaseDirectories; +/// @brief Hide ++ (NSString *)menuTitleHide; -/// @brief The application can try to fix these errors by relaunching as Root. -+ (NSString *)alertSubtitlePromptStartFailsafeRecovery; +/// @brief About ++ (NSString *)menuTitleItemAbout; -/// @brief This operation will clear all Application Data for the '%@' user. -+ (NSString *)alertSubtitlePromptResetSettingsWithArgument1:(id)argument1; +/// @brief Close ++ (NSString *)menuTitleItemClose; -/// @brief Yes -+ (NSString *)genericYes; +/// @brief Copy ++ (NSString *)menuTitleItemCopy; -/// @brief No -+ (NSString *)genericNo; +/// @brief Cut ++ (NSString *)menuTitleItemCut; + +/// @brief Debug ++ (NSString *)menuTitleItemDebug; + +/// @brief Open Donation Web Page ++ (NSString *)menuTitleItemOpenDonationWebPage; + +/// @brief Paste ++ (NSString *)menuTitleItemPaste; + +/// @brief Quit ++ (NSString *)menuTitleItemQuit; + +/// @brief Select All ++ (NSString *)menuTitleItemSelectAll; + +/// @brief Minimize ++ (NSString *)menuTitleMinimize; /// @brief Reset All Settings + (NSString *)menuTitleResetAllSettings; -/// @brief Can't create a blank file for storing a file in a temporary directory: '%@'. -+ (NSString *)errorTextCantCreateTemporaryBlankFileWithArgument1:(id)argument1; +/// @brief Scan All Whole Disks ++ (NSString *)menuTitleScanAllWholeDisks; -/// @brief Can't open file handle for temporary file path: '%@'. -+ (NSString *)errorTextCantOpenFilehandleForTempFilePathWithArgument1:(id)argument1; +/// @brief Window ++ (NSString *)menuTitleWindow; -/// @brief Set File Permissions -+ (NSString *)progressTitleSetFilePermissions; +/// @brief [Error: '%@'] ++ (NSString *)placeholderErrorWithArgument1:(id)argument1; -/// @brief NSURLConnection Response length is unknown. -+ (NSString *)errorTextUrlConnectionUnknownResponseLength; +/// @brief (Reason: %@) ++ (NSString *)placeholderReasonWithArgument1:(id)argument1; -/// @brief HTTP Response has incorrect status status code: %ld. -+ (NSString *)errorTextHttpResponseIncorrectStatusWithArgument1:(long)argument1; +/// @brief Create directory ++ (NSString *)progressTitleCreateDirectory; -/// @brief Can't create a base directory at path: '%@' [Error: '%@'] -+ (NSString *)errorTextCantCreateBaseDirectoryAtPathWithArgument1:(id)argument1 argument2:(id)argument2; +/// @brief The destination device was successfully erased. ++ (NSString *)progressTitleDiskEraseSuccess; -/// @brief Can't set 777 permissions for directory: '%@' [Error: '%@'] -+ (NSString *)errorTextCantSetAllPermissionsForDirectoryWithArgument1:(id)argument1 argument2:(id)argument2; +/// @brief Extract Bootloader ++ (NSString *)progressTitleExtractBootloader; -/// @brief Legacy Boot Support -+ (NSString *)alertTitleLegacyBootSupport; +/// @brief Formatting the drive ++ (NSString *)progressTitleFormattingTheDrive; -/// @brief To enable legacy boot, WinDiskWriter needs to download grub4dos bootloader files.\nGrub4dos is distributed under the GNU General Public License version 2.0. -+ (NSString *)alertSubtitleLegacyBootSupport; +/// @brief Install Legacy Bootloader ++ (NSString *)progressTitleInstallLegacyBootloader; -/// @brief Continue -+ (NSString *)genericContinue; +/// @brief Patch Installer Requirements ++ (NSString *)progressTitlePatchInstallerRequirements; -/// @brief Cancel -+ (NSString *)genericCancel; +/// @brief Ready for action ++ (NSString *)progressTitleReadyForAction; -/// @brief Create directory at Application Folder path: '%@'. -+ (NSString *)logviewRowCreateDirectoryAtAppFolderPathWithArgument1:(id)argument1; +/// @brief Set File Permissions ++ (NSString *)progressTitleSetFilePermissions; -/// @brief [Error: '%@'] -+ (NSString *)placeholderErrorWithArgument1:(id)argument1; +/// @brief Split Image ++ (NSString *)progressTitleSplitImage; -/// @brief %@ -> [URL: '%@', Expected Content Length: '%@'] -+ (NSString *)sdmMessageDownloadDidReceiveResponseWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3; +/// @brief Write File ++ (NSString *)progressTitleWriteFile; + +/// @brief %@ -> [Downloaded: '%@', Expected File Size: '%@'] ++ (NSString *)sdmMessageDidFinishLoadingWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3; -/// @brief %@ -> [Chunk Size: '%@', Total Bytes Downloaded: '%@', Chunk Number: '%lld'] +/// @brief %@ -> [Chunk Size: '%@', Downloaded: '%@', Chunk Number: '%lld'] + (NSString *)sdmMessageDownloadDidReceiveDataWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 argument4:(SInt64)argument4; -/// @brief %@ -> [Total Bytes Downloaded: '%@', Expected File Size: '%@'] -+ (NSString *)sdmMessageDidFinishLoadingWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3; +/// @brief %@ -> [URL: '%@', Expected Content Length: '%@'] ++ (NSString *)sdmMessageDownloadDidReceiveResponseWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3; -/// @brief The bootloader files could not be downloaded. -+ (NSString *)errorTextBootloaderFilesCantBeDownloaded; +/// @brief Desired filesystem for the destination device.\n(FAT32 is the best choice for compatibility) ++ (NSString *)tooltipFramelayoutFormattingSection; @end diff --git a/WinDiskWriter/LocalizedStrings/LocalizedStrings.m b/WinDiskWriter/LocalizedStrings/LocalizedStrings.m index 07d7e3d..1c064c4 100644 --- a/WinDiskWriter/LocalizedStrings/LocalizedStrings.m +++ b/WinDiskWriter/LocalizedStrings/LocalizedStrings.m @@ -10,10 +10,22 @@ @implementation LocalizedStrings ++ (NSString *)alertButtonTitleSkipFile { + return NSLocalizedString(@"ALERT_BUTTON_TITLE_SKIP_FILE", NULL); +} + ++ (NSString *)alertButtonTitleStopWriting { + return NSLocalizedString(@"ALERT_BUTTON_TITLE_STOP_WRITING", NULL); +} + + (NSString *)alertSubtitleImageWritingSuccess { return NSLocalizedString(@"ALERT_SUBTITLE_IMAGE_WRITING_SUCCESS", NULL); } ++ (NSString *)alertSubtitleLegacyBootSupport { + return NSLocalizedString(@"ALERT_SUBTITLE_LEGACY_BOOT_SUPPORT", NULL); +} + + (NSString *)alertSubtitlePathDoesNotExist { return NSLocalizedString(@"ALERT_SUBTITLE_PATH_DOES_NOT_EXIST", NULL); } @@ -26,44 +38,37 @@ + (NSString *)alertSubtitlePressUpdateButton { return NSLocalizedString(@"ALERT_SUBTITLE_PRESS_UPDATE_BUTTON", NULL); } -+ (NSString *)alertSubtitleStopProcess { - return NSLocalizedString(@"ALERT_SUBTITLE_STOP_PROCESS", NULL); -} - -+ (NSString *)alertTitleBsdDeviceInfoIsOutdatedOrInvalid { - return NSLocalizedString(@"ALERT_TITLE_BSD_DEVICE_INFO_IS_OUTDATED_OR_INVALID", NULL); -} - -+ (NSString *)alertTitleBsdDeviceIsNoLongerAvailable { - return NSLocalizedString(@"ALERT_TITLE_BSD_DEVICE_IS_NO_LONGER_AVAILABLE", NULL); ++ (NSString *)alertSubtitlePromptResetSettingsWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"ALERT_SUBTITLE_PROMPT_RESET_SETTINGS", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)buttonTitleCancel { - return NSLocalizedString(@"BUTTON_TITLE_CANCEL", NULL); ++ (NSString *)alertSubtitlePromptStartFailsafeRecovery { + return NSLocalizedString(@"ALERT_SUBTITLE_PROMPT_START_FAILSAFE_RECOVERY", NULL); } -+ (NSString *)buttonTitleCancellationSchedule { - return NSLocalizedString(@"BUTTON_TITLE_CANCELLATION_SCHEDULE", NULL); ++ (NSString *)alertSubtitlePromptStartProcess { + return NSLocalizedString(@"ALERT_SUBTITLE_PROMPT_START_PROCESS", NULL); } -+ (NSString *)buttonTitleChoose { - return NSLocalizedString(@"BUTTON_TITLE_CHOOSE", NULL); ++ (NSString *)alertSubtitleRequireRestartAsRoot { + return NSLocalizedString(@"ALERT_SUBTITLE_REQUIRE_RESTART_AS_ROOT", NULL); } -+ (NSString *)buttonTitleDismiss { - return NSLocalizedString(@"BUTTON_TITLE_DISMISS", NULL); ++ (NSString *)alertSubtitleStopProcess { + return NSLocalizedString(@"ALERT_SUBTITLE_STOP_PROCESS", NULL); } -+ (NSString *)buttonTitleStart { - return NSLocalizedString(@"BUTTON_TITLE_START", NULL); ++ (NSString *)alertSubtitleWriteFileProblemOccurred { + return NSLocalizedString(@"ALERT_SUBTITLE_WRITE_FILE_PROBLEM_OCCURRED", NULL); } -+ (NSString *)buttonTitleStop { - return NSLocalizedString(@"BUTTON_TITLE_STOP", NULL); ++ (NSString *)alertTitleBsdDeviceInfoIsOutdatedOrInvalid { + return NSLocalizedString(@"ALERT_TITLE_BSD_DEVICE_INFO_IS_OUTDATED_OR_INVALID", NULL); } -+ (NSString *)buttonTitleStopping { - return NSLocalizedString(@"BUTTON_TITLE_STOPPING", NULL); ++ (NSString *)alertTitleBsdDeviceIsNoLongerAvailable { + return NSLocalizedString(@"ALERT_TITLE_BSD_DEVICE_IS_NO_LONGER_AVAILABLE", NULL); } + (NSString *)alertTitleCheckDataCorrectness { @@ -74,8 +79,8 @@ + (NSString *)alertTitleDiskEraseFailure { return NSLocalizedString(@"ALERT_TITLE_DISK_ERASE_FAILURE", NULL); } -+ (NSString *)progressTitleDiskEraseSuccess { - return NSLocalizedString(@"PROGRESS_TITLE_DISK_ERASE_SUCCESS", NULL); ++ (NSString *)alertTitleFailedToRestart { + return NSLocalizedString(@"ALERT_TITLE_FAILED_TO_RESTART", NULL); } + (NSString *)alertTitleForgotSomething { @@ -94,557 +99,592 @@ + (NSString *)alertTitleImageWritingSuccess { return NSLocalizedString(@"ALERT_TITLE_IMAGE_WRITING_SUCCESS", NULL); } -+ (NSString *)inputviewPlaceholderImageFileOrDirectory { - return NSLocalizedString(@"INPUTVIEW_PLACEHOLDER_IMAGE_FILE_OR_DIRECTORY", NULL); ++ (NSString *)alertTitleLegacyBootSupport { + return NSLocalizedString(@"ALERT_TITLE_LEGACY_BOOT_SUPPORT", NULL); } -+ (NSString *)labelviewTitleWindowsImage { - return NSLocalizedString(@"LABELVIEW_TITLE_WINDOWS_IMAGE", NULL); ++ (NSString *)alertTitleNoWritableDevices { + return NSLocalizedString(@"ALERT_TITLE_NO_WRITABLE_DEVICES", NULL); } -+ (NSString *)menuTitleDonateMe { - return NSLocalizedString(@"MENU_TITLE_DONATE_ME", NULL); ++ (NSString *)alertTitlePromptStartProcess { + return NSLocalizedString(@"ALERT_TITLE_PROMPT_START_PROCESS", NULL); } -+ (NSString *)menuTitleEdit { - return NSLocalizedString(@"MENU_TITLE_EDIT", NULL); ++ (NSString *)alertTitleRequireRestartAsRoot { + return NSLocalizedString(@"ALERT_TITLE_REQUIRE_RESTART_AS_ROOT", NULL); } -+ (NSString *)menuTitleHide { - return NSLocalizedString(@"MENU_TITLE_HIDE", NULL); ++ (NSString *)alertTitleStopProcess { + return NSLocalizedString(@"ALERT_TITLE_STOP_PROCESS", NULL); } -+ (NSString *)menuTitleItemAbout { - return NSLocalizedString(@"MENU_TITLE_ITEM_ABOUT", NULL); ++ (NSString *)alertTitleWriteFileProblemOccurred { + return NSLocalizedString(@"ALERT_TITLE_WRITE_FILE_PROBLEM_OCCURRED", NULL); } -+ (NSString *)menuTitleItemCopy { - return NSLocalizedString(@"MENU_TITLE_ITEM_COPY", NULL); ++ (NSString *)asLogTypeAssertionError { + return NSLocalizedString(@"AS_LOG_TYPE_ASSERTION_ERROR", NULL); } -+ (NSString *)menuTitleItemCut { - return NSLocalizedString(@"MENU_TITLE_ITEM_CUT", NULL); ++ (NSString *)asLogTypeFailure { + return NSLocalizedString(@"AS_LOG_TYPE_FAILURE", NULL); } -+ (NSString *)menuTitleItemOpenDonationWebPage { - return NSLocalizedString(@"MENU_TITLE_ITEM_OPEN_DONATION_WEB_PAGE", NULL); ++ (NSString *)asLogTypeFatal { + return NSLocalizedString(@"AS_LOG_TYPE_FATAL", NULL); } -+ (NSString *)menuTitleItemPaste { - return NSLocalizedString(@"MENU_TITLE_ITEM_PASTE", NULL); ++ (NSString *)asLogTypeLog { + return NSLocalizedString(@"AS_LOG_TYPE_LOG", NULL); } -+ (NSString *)menuTitleItemQuit { - return NSLocalizedString(@"MENU_TITLE_ITEM_QUIT", NULL); ++ (NSString *)asLogTypeSkipped { + return NSLocalizedString(@"AS_LOG_TYPE_SKIPPED", NULL); } -+ (NSString *)menuTitleItemSelectAll { - return NSLocalizedString(@"MENU_TITLE_ITEM_SELECT_ALL", NULL); ++ (NSString *)asLogTypeStart { + return NSLocalizedString(@"AS_LOG_TYPE_START", NULL); } -+ (NSString *)menuTitleMinimize { - return NSLocalizedString(@"MENU_TITLE_MINIMIZE", NULL); ++ (NSString *)asLogTypeSuccess { + return NSLocalizedString(@"AS_LOG_TYPE_SUCCESS", NULL); } -+ (NSString *)menuTitleWindow { - return NSLocalizedString(@"MENU_TITLE_WINDOW", NULL); ++ (NSString *)asLogTypeWarning { + return NSLocalizedString(@"AS_LOG_TYPE_WARNING", NULL); } -+ (NSString *)alertTitleNoWritableDevices { - return NSLocalizedString(@"ALERT_TITLE_NO_WRITABLE_DEVICES", NULL); ++ (NSString *)authorizationErrorBadAddress { + return NSLocalizedString(@"AUTHORIZATION_ERROR_BAD_ADDRESS", NULL); } -+ (NSString *)alertTitlePromptStartProcess { - return NSLocalizedString(@"ALERT_TITLE_PROMPT_START_PROCESS", NULL); ++ (NSString *)authorizationErrorCanceled { + return NSLocalizedString(@"AUTHORIZATION_ERROR_CANCELED", NULL); } -+ (NSString *)alertSubtitlePromptStartProcess { - return NSLocalizedString(@"ALERT_SUBTITLE_PROMPT_START_PROCESS", NULL); ++ (NSString *)authorizationErrorDenied { + return NSLocalizedString(@"AUTHORIZATION_ERROR_DENIED", NULL); } -+ (NSString *)progressTitleReadyForAction { - return NSLocalizedString(@"PROGRESS_TITLE_READY_FOR_ACTION", NULL); ++ (NSString *)authorizationErrorExternalizeNotAllowed { + return NSLocalizedString(@"AUTHORIZATION_ERROR_EXTERNALIZE_NOT_ALLOWED", NULL); } -+ (NSString *)alertTitleStopProcess { - return NSLocalizedString(@"ALERT_TITLE_STOP_PROCESS", NULL); ++ (NSString *)authorizationErrorInteractionNotAllowed { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INTERACTION_NOT_ALLOWED", NULL); } -+ (NSString *)labelviewTitleTargetDevice { - return NSLocalizedString(@"LABELVIEW_TITLE_TARGET_DEVICE", NULL); ++ (NSString *)authorizationErrorInternal { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INTERNAL", NULL); } -+ (NSString *)buttonTitleUpdate { - return NSLocalizedString(@"BUTTON_TITLE_UPDATE", NULL); ++ (NSString *)authorizationErrorInternalizeNotAllowed { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INTERNALIZE_NOT_ALLOWED", NULL); } -+ (NSString *)checkboxviewTitlePatchInstallerRequirements { - return NSLocalizedString(@"CHECKBOXVIEW_TITLE_PATCH_INSTALLER_REQUIREMENTS", NULL); ++ (NSString *)authorizationErrorInvalidFlags { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_FLAGS", NULL); } -+ (NSString *)checkboxviewTooltipPatchInstallerRequirements { - return NSLocalizedString(@"CHECKBOXVIEW_TOOLTIP_PATCH_INSTALLER_REQUIREMENTS", NULL); ++ (NSString *)authorizationErrorInvalidPointer { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_POINTER", NULL); } -+ (NSString *)checkboxviewTitleInstallLegacyBootSector { - return NSLocalizedString(@"CHECKBOXVIEW_TITLE_INSTALL_LEGACY_BOOT_SECTOR", NULL); ++ (NSString *)authorizationErrorInvalidRef { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_REF", NULL); } -+ (NSString *)checkboxviewTooltipInstallLegacyBootSector { - return NSLocalizedString(@"CHECKBOXVIEW_TOOLTIP_INSTALL_LEGACY_BOOT_SECTOR", NULL); ++ (NSString *)authorizationErrorInvalidSet { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_SET", NULL); } -+ (NSString *)tooltipFramelayoutFormattingSection { - return NSLocalizedString(@"TOOLTIP_FRAMELAYOUT_FORMATTING_SECTION", NULL); ++ (NSString *)authorizationErrorInvalidTag { + return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_TAG", NULL); } -+ (NSString *)labelviewTitleFilesystem { - return NSLocalizedString(@"LABELVIEW_TITLE_FILESYSTEM", NULL); ++ (NSString *)authorizationErrorToolEnvironmentError { + return NSLocalizedString(@"AUTHORIZATION_ERROR_TOOL_ENVIRONMENT_ERROR", NULL); } -+ (NSString *)alertTitleFailedToRestart { - return NSLocalizedString(@"ALERT_TITLE_FAILED_TO_RESTART", NULL); ++ (NSString *)authorizationErrorToolExecuteFailure { + return NSLocalizedString(@"AUTHORIZATION_ERROR_TOOL_EXECUTE_FAILURE", NULL); } -+ (NSString *)alertTitleRequireRestartAsRoot { - return NSLocalizedString(@"ALERT_TITLE_REQUIRE_RESTART_AS_ROOT", NULL); ++ (NSString *)buttonTitleCancel { + return NSLocalizedString(@"BUTTON_TITLE_CANCEL", NULL); } -+ (NSString *)alertSubtitleRequireRestartAsRoot { - return NSLocalizedString(@"ALERT_SUBTITLE_REQUIRE_RESTART_AS_ROOT", NULL); ++ (NSString *)buttonTitleCancellationSchedule { + return NSLocalizedString(@"BUTTON_TITLE_CANCELLATION_SCHEDULE", NULL); } -+ (NSString *)buttonTitleRelaunch { - return NSLocalizedString(@"BUTTON_TITLE_RELAUNCH", NULL); ++ (NSString *)buttonTitleChoose { + return NSLocalizedString(@"BUTTON_TITLE_CHOOSE", NULL); } -+ (NSString *)progressTitleFormattingTheDrive { - return NSLocalizedString(@"PROGRESS_TITLE_FORMATTING_THE_DRIVE", NULL); ++ (NSString *)buttonTitleDismiss { + return NSLocalizedString(@"BUTTON_TITLE_DISMISS", NULL); } -+ (NSString *)progressTitleCreateDirectory { - return NSLocalizedString(@"PROGRESS_TITLE_CREATE_DIRECTORY", NULL); ++ (NSString *)buttonTitleRelaunch { + return NSLocalizedString(@"BUTTON_TITLE_RELAUNCH", NULL); } -+ (NSString *)progressTitleWriteFile { - return NSLocalizedString(@"PROGRESS_TITLE_WRITE_FILE", NULL); ++ (NSString *)buttonTitleStart { + return NSLocalizedString(@"BUTTON_TITLE_START", NULL); } -+ (NSString *)progressTitleSplitImage { - return NSLocalizedString(@"PROGRESS_TITLE_SPLIT_IMAGE", NULL); ++ (NSString *)buttonTitleStop { + return NSLocalizedString(@"BUTTON_TITLE_STOP", NULL); } -+ (NSString *)progressTitleExtractBootloader { - return NSLocalizedString(@"PROGRESS_TITLE_EXTRACT_BOOTLOADER", NULL); ++ (NSString *)buttonTitleStopping { + return NSLocalizedString(@"BUTTON_TITLE_STOPPING", NULL); } -+ (NSString *)progressTitlePatchInstallerRequirements { - return NSLocalizedString(@"PROGRESS_TITLE_PATCH_INSTALLER_REQUIREMENTS", NULL); ++ (NSString *)buttonTitleUpdate { + return NSLocalizedString(@"BUTTON_TITLE_UPDATE", NULL); } -+ (NSString *)progressTitleInstallLegacyBootloader { - return NSLocalizedString(@"PROGRESS_TITLE_INSTALL_LEGACY_BOOTLOADER", NULL); ++ (NSString *)checkboxviewTitleInstallLegacyBootSector { + return NSLocalizedString(@"CHECKBOXVIEW_TITLE_INSTALL_LEGACY_BOOT_SECTOR", NULL); } -+ (NSString *)logviewRowPartialTitleErrorMessageWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"LOGVIEW_ROW_PARTIAL_TITLE_ERROR_MESSAGE", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)checkboxviewTitlePatchInstallerRequirements { + return NSLocalizedString(@"CHECKBOXVIEW_TITLE_PATCH_INSTALLER_REQUIREMENTS", NULL); } -+ (NSString *)logviewRowTitleImageMountSuccess { - return NSLocalizedString(@"LOGVIEW_ROW_TITLE_IMAGE_MOUNT_SUCCESS", NULL); ++ (NSString *)checkboxviewTooltipInstallLegacyBootSector { + return NSLocalizedString(@"CHECKBOXVIEW_TOOLTIP_INSTALL_LEGACY_BOOT_SECTOR", NULL); } -+ (NSString *)logviewRowTitleGeneratedPartitionName { - return NSLocalizedString(@"LOGVIEW_ROW_TITLE_GENERATED_PARTITION_NAME", NULL); ++ (NSString *)checkboxviewTooltipPatchInstallerRequirements { + return NSLocalizedString(@"CHECKBOXVIEW_TOOLTIP_PATCH_INSTALLER_REQUIREMENTS", NULL); } -+ (NSString *)logviewRowTitleTargetPartitionPath { - return NSLocalizedString(@"LOGVIEW_ROW_TITLE_TARGET_PARTITION_PATH", NULL); ++ (NSString *)dadiskErrorTextBadArgument { + return NSLocalizedString(@"DADISK_ERROR_TEXT_BAD_ARGUMENT", NULL); } -+ (NSString *)logviewRowTitleDiskEraseOperationOptionsWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 argument4:(id)argument4 argument5:(id)argument5 argument6:(id)argument6 argument7:(NSInteger)argument7 argument8:(NSInteger)argument8 { - NSString *unformattedString = NSLocalizedString(@"LOGVIEW_ROW_TITLE_DISK_ERASE_OPERATION_OPTIONS", NULL); - return [NSString stringWithFormat: unformattedString, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8]; ++ (NSString *)dadiskErrorTextBusy { + return NSLocalizedString(@"DADISK_ERROR_TEXT_BUSY", NULL); } -+ (NSString *)alertTitleWriteFileProblemOccurred { - return NSLocalizedString(@"ALERT_TITLE_WRITE_FILE_PROBLEM_OCCURRED", NULL); ++ (NSString *)dadiskErrorTextExclusiveAccess { + return NSLocalizedString(@"DADISK_ERROR_TEXT_EXCLUSIVE_ACCESS", NULL); } -+ (NSString *)alertSubtitleWriteFileProblemOccurred { - return NSLocalizedString(@"ALERT_SUBTITLE_WRITE_FILE_PROBLEM_OCCURRED", NULL); ++ (NSString *)dadiskErrorTextNotFound { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_FOUND", NULL); } -+ (NSString *)placeholderReasonWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"PLACEHOLDER_REASON", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)dadiskErrorTextNotMounted { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_MOUNTED", NULL); } -+ (NSString *)alertButtonTitleStopWriting { - return NSLocalizedString(@"ALERT_BUTTON_TITLE_STOP_WRITING", NULL); ++ (NSString *)dadiskErrorTextNotPermitted { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_PERMITTED", NULL); } -+ (NSString *)alertButtonTitleSkipFile { - return NSLocalizedString(@"ALERT_BUTTON_TITLE_SKIP_FILE", NULL); ++ (NSString *)dadiskErrorTextNotPrivileged { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_PRIVILEGED", NULL); } -+ (NSString *)logviewRowTitleClearingDevicePickerList { - return NSLocalizedString(@"LOGVIEW_ROW_TITLE_CLEARING_DEVICE_PICKER_LIST", NULL); ++ (NSString *)dadiskErrorTextNotReady { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_READY", NULL); } -+ (NSString *)logviewRowPartialTitleFoundDevices { - return NSLocalizedString(@"LOGVIEW_ROW_PARTIAL_TITLE_FOUND_DEVICES", NULL); ++ (NSString *)dadiskErrorTextNotWritable { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_WRITABLE", NULL); } -+ (NSString *)menuTitleItemClose { - return NSLocalizedString(@"MENU_TITLE_ITEM_CLOSE", NULL); ++ (NSString *)dadiskErrorTextNoResources { + return NSLocalizedString(@"DADISK_ERROR_TEXT_NO_RESOURCES", NULL); } -+ (NSString *)errorTextCantDetermineBsdPath { - return NSLocalizedString(@"ERROR_TEXT_CANT_DETERMINE_BSD_PATH", NULL); ++ (NSString *)dadiskErrorTextUnspecified { + return NSLocalizedString(@"DADISK_ERROR_TEXT_UNSPECIFIED", NULL); } -+ (NSString *)errorTextBootloaderMbrFileDoesntExist { - return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_MBR_FILE_DOESNT_EXIST", NULL); ++ (NSString *)dadiskErrorTextUnsupported { + return NSLocalizedString(@"DADISK_ERROR_TEXT_UNSUPPORTED", NULL); } -+ (NSString *)errorTextBootloaderGrldrFileDoesntExist { - return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_GRLDR_FILE_DOESNT_EXIST", NULL); ++ (NSString *)errorCantCopyFileToDestinationDeviceWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"ERROR_CANT_COPY_FILE_TO_DESTINATION_DEVICE", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)errorTextBootloaderMenuFileDoesntExist { - return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_MENU_FILE_DOESNT_EXIST", NULL); ++ (NSString *)errorFileOrDirectoryDoesntExistWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"ERROR_FILE_OR_DIRECTORY_DOESNT_EXIST", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)errorTextBootloaderMbrOpenFileInputHandleFailure { - return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_MBR_OPEN_FILE_INPUT_HANDLE_FAILURE", NULL); ++ (NSString *)errorTextAllocateMemoryBufferFailure { + return NSLocalizedString(@"ERROR_TEXT_ALLOCATE_MEMORY_BUFFER_FAILURE", NULL); } -+ (NSString *)errorTextOutputDeviceOpenFailure { - return NSLocalizedString(@"ERROR_TEXT_OUTPUT_DEVICE_OPEN_FAILURE", NULL); ++ (NSString *)errorTextApplicationArgumentsBadStructure { + return NSLocalizedString(@"ERROR_TEXT_APPLICATION_ARGUMENTS_BAD_STRUCTURE", NULL); } -+ (NSString *)errorTextGetAvailableSpaceFailure { - return NSLocalizedString(@"ERROR_TEXT_GET_AVAILABLE_SPACE_FAILURE", NULL); ++ (NSString *)errorTextApplicationArgumentsListIsEmpty { + return NSLocalizedString(@"ERROR_TEXT_APPLICATION_ARGUMENTS_LIST_IS_EMPTY", NULL); } -+ (NSString *)errorTextDiskSpaceNotEnough { - return NSLocalizedString(@"ERROR_TEXT_DISK_SPACE_NOT_ENOUGH", NULL); ++ (NSString *)errorTextBootloaderFilesCantBeDownloaded { + return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_FILES_CANT_BE_DOWNLOADED", NULL); } -+ (NSString *)errorTextFileCopyFailureOverFat32SizeLimit { - return NSLocalizedString(@"ERROR_TEXT_FILE_COPY_FAILURE_OVER_FAT32_SIZE_LIMIT", NULL); ++ (NSString *)errorTextBootloaderGrldrFileDoesntExist { + return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_GRLDR_FILE_DOESNT_EXIST", NULL); } -+ (NSString *)errorTextOpenSourceFileFailure { - return NSLocalizedString(@"ERROR_TEXT_OPEN_SOURCE_FILE_FAILURE", NULL); ++ (NSString *)errorTextBootloaderMbrFileDoesntExist { + return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_MBR_FILE_DOESNT_EXIST", NULL); } -+ (NSString *)errorTextOpenDestinationPathFailure { - return NSLocalizedString(@"ERROR_TEXT_OPEN_DESTINATION_PATH_FAILURE", NULL); ++ (NSString *)errorTextBootloaderMbrOpenFileInputHandleFailure { + return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_MBR_OPEN_FILE_INPUT_HANDLE_FAILURE", NULL); } -+ (NSString *)errorTextAllocateMemoryBufferFailure { - return NSLocalizedString(@"ERROR_TEXT_ALLOCATE_MEMORY_BUFFER_FAILURE", NULL); ++ (NSString *)errorTextBootloaderMenuFileDoesntExist { + return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_MENU_FILE_DOESNT_EXIST", NULL); } -+ (NSString *)errorTextWriteDestinationPathDataFailure { - return NSLocalizedString(@"ERROR_TEXT_WRITE_DESTINATION_PATH_DATA_FAILURE", NULL); ++ (NSString *)errorTextCantCleanupTemporaryDirectories { + return NSLocalizedString(@"ERROR_TEXT_CANT_CLEANUP_TEMPORARY_DIRECTORIES", NULL); } -+ (NSString *)errorTextSplittingEsdSwmNotSupported { - return NSLocalizedString(@"ERROR_TEXT_SPLITTING_ESD_SWM_NOT_SUPPORTED", NULL); ++ (NSString *)errorTextCantCreateBaseDirectories { + return NSLocalizedString(@"ERROR_TEXT_CANT_CREATE_BASE_DIRECTORIES", NULL); } -+ (NSString *)errorTextDestinationPathDoesNotExist { - return NSLocalizedString(@"ERROR_TEXT_DESTINATION_PATH_DOES_NOT_EXIST", NULL); ++ (NSString *)errorTextCantCreateBaseDirectoryAtPathWithArgument1:(id)argument1 argument2:(id)argument2 { + NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_CREATE_BASE_DIRECTORY_AT_PATH", NULL); + return [NSString stringWithFormat: unformattedString, argument1, argument2]; } -+ (NSString *)errorTextGetAvailableDestinationDiskSpaceFailure { - return NSLocalizedString(@"ERROR_TEXT_GET_AVAILABLE_DESTINATION_DISK_SPACE_FAILURE", NULL); ++ (NSString *)errorTextCantCreateTemporaryBlankFileWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_CREATE_TEMPORARY_BLANK_FILE", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)errorTextSourceIsTooLargeForTheDestinationDisk { - return NSLocalizedString(@"ERROR_TEXT_SOURCE_IS_TOO_LARGE_FOR_THE_DESTINATION_DISK", NULL); ++ (NSString *)errorTextCantDetermineBsdPath { + return NSLocalizedString(@"ERROR_TEXT_CANT_DETERMINE_BSD_PATH", NULL); } -+ (NSString *)labelviewTitleVersion { - return NSLocalizedString(@"LABELVIEW_TITLE_VERSION", NULL); ++ (NSString *)errorTextCantFixPermissionsForBaseDirectories { + return NSLocalizedString(@"ERROR_TEXT_CANT_FIX_PERMISSIONS_FOR_BASE_DIRECTORIES", NULL); } -+ (NSString *)labelviewTitleAdditionalInformation { - return NSLocalizedString(@"LABELVIEW_TITLE_ADDITIONAL_INFORMATION", NULL); ++ (NSString *)errorTextCantGetErrorOutputPipe { + return NSLocalizedString(@"ERROR_TEXT_CANT_GET_ERROR_OUTPUT_PIPE", NULL); } -+ (NSString *)dadiskErrorTextUnspecified { - return NSLocalizedString(@"DADISK_ERROR_TEXT_UNSPECIFIED", NULL); ++ (NSString *)errorTextCantOpenFilehandleForTempFilePathWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_OPEN_FILEHANDLE_FOR_TEMP_FILE_PATH", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)dadiskErrorTextBusy { - return NSLocalizedString(@"DADISK_ERROR_TEXT_BUSY", NULL); ++ (NSString *)errorTextCantParseHdiutilOutput { + return NSLocalizedString(@"ERROR_TEXT_CANT_PARSE_HDIUTIL_OUTPUT", NULL); } -+ (NSString *)dadiskErrorTextBadArgument { - return NSLocalizedString(@"DADISK_ERROR_TEXT_BAD_ARGUMENT", NULL); ++ (NSString *)errorTextCantSetAllPermissionsForDirectoryWithArgument1:(id)argument1 argument2:(id)argument2 { + NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_SET_ALL_PERMISSIONS_FOR_DIRECTORY", NULL); + return [NSString stringWithFormat: unformattedString, argument1, argument2]; } -+ (NSString *)dadiskErrorTextExclusiveAccess { - return NSLocalizedString(@"DADISK_ERROR_TEXT_EXCLUSIVE_ACCESS", NULL); ++ (NSString *)errorTextCommandLineExecuteFailure { + return NSLocalizedString(@"ERROR_TEXT_COMMAND_LINE_EXECUTE_FAILURE", NULL); } -+ (NSString *)dadiskErrorTextNoResources { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NO_RESOURCES", NULL); ++ (NSString *)errorTextDestinationPathDoesNotExist { + return NSLocalizedString(@"ERROR_TEXT_DESTINATION_PATH_DOES_NOT_EXIST", NULL); } -+ (NSString *)dadiskErrorTextNotFound { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_FOUND", NULL); ++ (NSString *)errorTextDiskSpaceNotEnough { + return NSLocalizedString(@"ERROR_TEXT_DISK_SPACE_NOT_ENOUGH", NULL); } -+ (NSString *)dadiskErrorTextNotMounted { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_MOUNTED", NULL); ++ (NSString *)errorTextFileCopyFailureOverFat32SizeLimit { + return NSLocalizedString(@"ERROR_TEXT_FILE_COPY_FAILURE_OVER_FAT32_SIZE_LIMIT", NULL); } -+ (NSString *)dadiskErrorTextNotPermitted { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_PERMITTED", NULL); ++ (NSString *)errorTextFileTypeIsNotIso { + return NSLocalizedString(@"ERROR_TEXT_FILE_TYPE_IS_NOT_ISO", NULL); } -+ (NSString *)dadiskErrorTextNotPrivileged { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_PRIVILEGED", NULL); ++ (NSString *)errorTextGetAvailableDestinationDiskSpaceFailure { + return NSLocalizedString(@"ERROR_TEXT_GET_AVAILABLE_DESTINATION_DISK_SPACE_FAILURE", NULL); } -+ (NSString *)dadiskErrorTextNotReady { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_READY", NULL); ++ (NSString *)errorTextGetAvailableSpaceFailure { + return NSLocalizedString(@"ERROR_TEXT_GET_AVAILABLE_SPACE_FAILURE", NULL); } -+ (NSString *)dadiskErrorTextNotWritable { - return NSLocalizedString(@"DADISK_ERROR_TEXT_NOT_WRITABLE", NULL); ++ (NSString *)errorTextHdiutilStatusWasNotExitSuccess { + return NSLocalizedString(@"ERROR_TEXT_HDIUTIL_STATUS_WAS_NOT_EXIT_SUCCESS", NULL); } -+ (NSString *)dadiskErrorTextUnsupported { - return NSLocalizedString(@"DADISK_ERROR_TEXT_UNSUPPORTED", NULL); ++ (NSString *)errorTextHttpResponseIncorrectStatusWithArgument1:(long)argument1 { + NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_HTTP_RESPONSE_INCORRECT_STATUS", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)errorTextSpecifiedBsdNameDoesntExistCantErase { - return NSLocalizedString(@"ERROR_TEXT_SPECIFIED_BSD_NAME_DOESNT_EXIST_CANT_ERASE", NULL); ++ (NSString *)errorTextInitWithVolumePathUnsupported { + return NSLocalizedString(@"ERROR_TEXT_INIT_WITH_VOLUME_PATH_UNSUPPORTED", NULL); } -+ (NSString *)errorTextCommandLineExecuteFailure { - return NSLocalizedString(@"ERROR_TEXT_COMMAND_LINE_EXECUTE_FAILURE", NULL); ++ (NSString *)errorTextOpenDestinationPathFailure { + return NSLocalizedString(@"ERROR_TEXT_OPEN_DESTINATION_PATH_FAILURE", NULL); } -+ (NSString *)errorTextCantGetErrorOutputPipe { - return NSLocalizedString(@"ERROR_TEXT_CANT_GET_ERROR_OUTPUT_PIPE", NULL); ++ (NSString *)errorTextOpenSourceFileFailure { + return NSLocalizedString(@"ERROR_TEXT_OPEN_SOURCE_FILE_FAILURE", NULL); } -+ (NSString *)errorTextCantParseHdiutilOutput { - return NSLocalizedString(@"ERROR_TEXT_CANT_PARSE_HDIUTIL_OUTPUT", NULL); ++ (NSString *)errorTextOutputDeviceOpenFailure { + return NSLocalizedString(@"ERROR_TEXT_OUTPUT_DEVICE_OPEN_FAILURE", NULL); } + (NSString *)errorTextPlistCantLoadSystemEntities { return NSLocalizedString(@"ERROR_TEXT_PLIST_CANT_LOAD_SYSTEM_ENTITIES", NULL); } ++ (NSString *)errorTextPlistSystemEntitiesCountMoreThanOne { + return NSLocalizedString(@"ERROR_TEXT_PLIST_SYSTEM_ENTITIES_COUNT_MORE_THAN_ONE", NULL); +} + + (NSString *)errorTextPlistSystemEntitiesIsEmpty { return NSLocalizedString(@"ERROR_TEXT_PLIST_SYSTEM_ENTITIES_IS_EMPTY", NULL); } -+ (NSString *)errorTextPlistSystemEntitiesCountMoreThanOne { - return NSLocalizedString(@"ERROR_TEXT_PLIST_SYSTEM_ENTITIES_COUNT_MORE_THAN_ONE", NULL); ++ (NSString *)errorTextSourceIsTooLargeForTheDestinationDisk { + return NSLocalizedString(@"ERROR_TEXT_SOURCE_IS_TOO_LARGE_FOR_THE_DESTINATION_DISK", NULL); } -+ (NSString *)errorTextHdiutilStatusWasNotExitSuccess { - return NSLocalizedString(@"ERROR_TEXT_HDIUTIL_STATUS_WAS_NOT_EXIT_SUCCESS", NULL); ++ (NSString *)errorTextSpecifiedBsdNameDoesntExistCantErase { + return NSLocalizedString(@"ERROR_TEXT_SPECIFIED_BSD_NAME_DOESNT_EXIST_CANT_ERASE", NULL); +} + ++ (NSString *)errorTextSplittingEsdSwmNotSupported { + return NSLocalizedString(@"ERROR_TEXT_SPLITTING_ESD_SWM_NOT_SUPPORTED", NULL); } + (NSString *)errorTextUnmountDestinationDeviceFailure { return NSLocalizedString(@"ERROR_TEXT_UNMOUNT_DESTINATION_DEVICE_FAILURE", NULL); } -+ (NSString *)errorTextApplicationArgumentsListIsEmpty { - return NSLocalizedString(@"ERROR_TEXT_APPLICATION_ARGUMENTS_LIST_IS_EMPTY", NULL); ++ (NSString *)errorTextUrlConnectionUnknownResponseLength { + return NSLocalizedString(@"ERROR_TEXT_URL_CONNECTION_UNKNOWN_RESPONSE_LENGTH", NULL); } -+ (NSString *)errorTextApplicationArgumentsBadStructure { - return NSLocalizedString(@"ERROR_TEXT_APPLICATION_ARGUMENTS_BAD_STRUCTURE", NULL); ++ (NSString *)errorTextWriteDestinationPathDataFailure { + return NSLocalizedString(@"ERROR_TEXT_WRITE_DESTINATION_PATH_DATA_FAILURE", NULL); } -+ (NSString *)authorizationErrorInvalidSet { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_SET", NULL); ++ (NSString *)genericCancel { + return NSLocalizedString(@"GENERIC_CANCEL", NULL); } -+ (NSString *)authorizationErrorInvalidRef { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_REF", NULL); ++ (NSString *)genericContinue { + return NSLocalizedString(@"GENERIC_CONTINUE", NULL); } -+ (NSString *)authorizationErrorInvalidTag { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_TAG", NULL); ++ (NSString *)genericNo { + return NSLocalizedString(@"GENERIC_NO", NULL); } -+ (NSString *)authorizationErrorInvalidPointer { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_POINTER", NULL); ++ (NSString *)genericYes { + return NSLocalizedString(@"GENERIC_YES", NULL); } -+ (NSString *)authorizationErrorDenied { - return NSLocalizedString(@"AUTHORIZATION_ERROR_DENIED", NULL); ++ (NSString *)inputviewPlaceholderImageFileOrDirectory { + return NSLocalizedString(@"INPUTVIEW_PLACEHOLDER_IMAGE_FILE_OR_DIRECTORY", NULL); } -+ (NSString *)authorizationErrorCanceled { - return NSLocalizedString(@"AUTHORIZATION_ERROR_CANCELED", NULL); ++ (NSString *)labelviewTitleAdditionalInformation { + return NSLocalizedString(@"LABELVIEW_TITLE_ADDITIONAL_INFORMATION", NULL); } -+ (NSString *)authorizationErrorInteractionNotAllowed { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INTERACTION_NOT_ALLOWED", NULL); ++ (NSString *)labelviewTitleFilesystem { + return NSLocalizedString(@"LABELVIEW_TITLE_FILESYSTEM", NULL); } -+ (NSString *)authorizationErrorInternal { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INTERNAL", NULL); ++ (NSString *)labelviewTitleTargetDevice { + return NSLocalizedString(@"LABELVIEW_TITLE_TARGET_DEVICE", NULL); } -+ (NSString *)authorizationErrorExternalizeNotAllowed { - return NSLocalizedString(@"AUTHORIZATION_ERROR_EXTERNALIZE_NOT_ALLOWED", NULL); ++ (NSString *)labelviewTitleVersion { + return NSLocalizedString(@"LABELVIEW_TITLE_VERSION", NULL); } -+ (NSString *)authorizationErrorInternalizeNotAllowed { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INTERNALIZE_NOT_ALLOWED", NULL); ++ (NSString *)labelviewTitleWindowsImage { + return NSLocalizedString(@"LABELVIEW_TITLE_WINDOWS_IMAGE", NULL); } -+ (NSString *)authorizationErrorInvalidFlags { - return NSLocalizedString(@"AUTHORIZATION_ERROR_INVALID_FLAGS", NULL); ++ (NSString *)logviewRowCreateDirectoryAtAppFolderPathWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"LOGVIEW_ROW_CREATE_DIRECTORY_AT_APP_FOLDER_PATH", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)authorizationErrorToolExecuteFailure { - return NSLocalizedString(@"AUTHORIZATION_ERROR_TOOL_EXECUTE_FAILURE", NULL); ++ (NSString *)logviewRowFoundLegacyBootloaderFiles { + return NSLocalizedString(@"LOGVIEW_ROW_FOUND_LEGACY_BOOTLOADER_FILES", NULL); } -+ (NSString *)authorizationErrorToolEnvironmentError { - return NSLocalizedString(@"AUTHORIZATION_ERROR_TOOL_ENVIRONMENT_ERROR", NULL); ++ (NSString *)logviewRowLegacyBootloaderFilesNotFound { + return NSLocalizedString(@"LOGVIEW_ROW_LEGACY_BOOTLOADER_FILES_NOT_FOUND", NULL); } -+ (NSString *)authorizationErrorBadAddress { - return NSLocalizedString(@"AUTHORIZATION_ERROR_BAD_ADDRESS", NULL); ++ (NSString *)logviewRowPartialTitleErrorMessageWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"LOGVIEW_ROW_PARTIAL_TITLE_ERROR_MESSAGE", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)errorTextFileTypeIsNotIso { - return NSLocalizedString(@"ERROR_TEXT_FILE_TYPE_IS_NOT_ISO", NULL); ++ (NSString *)logviewRowPartialTitleFoundDevices { + return NSLocalizedString(@"LOGVIEW_ROW_PARTIAL_TITLE_FOUND_DEVICES", NULL); } -+ (NSString *)errorTextInitWithVolumePathUnsupported { - return NSLocalizedString(@"ERROR_TEXT_INIT_WITH_VOLUME_PATH_UNSUPPORTED", NULL); ++ (NSString *)logviewRowTitleClearingDevicePickerList { + return NSLocalizedString(@"LOGVIEW_ROW_TITLE_CLEARING_DEVICE_PICKER_LIST", NULL); } -+ (NSString *)errorCantCopyFileToDestinationDeviceWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"ERROR_CANT_COPY_FILE_TO_DESTINATION_DEVICE", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)logviewRowTitleDiskEraseOperationOptionsWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 argument4:(id)argument4 argument5:(id)argument5 argument6:(id)argument6 argument7:(NSInteger)argument7 argument8:(NSInteger)argument8 { + NSString *unformattedString = NSLocalizedString(@"LOGVIEW_ROW_TITLE_DISK_ERASE_OPERATION_OPTIONS", NULL); + return [NSString stringWithFormat: unformattedString, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8]; } -+ (NSString *)errorFileOrDirectoryDoesntExistWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"ERROR_FILE_OR_DIRECTORY_DOESNT_EXIST", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)logviewRowTitleGeneratedPartitionName { + return NSLocalizedString(@"LOGVIEW_ROW_TITLE_GENERATED_PARTITION_NAME", NULL); } -+ (NSString *)menuTitleItemDebug { - return NSLocalizedString(@"MENU_TITLE_ITEM_DEBUG", NULL); ++ (NSString *)logviewRowTitleImageMountSuccess { + return NSLocalizedString(@"LOGVIEW_ROW_TITLE_IMAGE_MOUNT_SUCCESS", NULL); } -+ (NSString *)menuTitleScanAllWholeDisks { - return NSLocalizedString(@"MENU_TITLE_SCAN_ALL_WHOLE_DISKS", NULL); ++ (NSString *)logviewRowTitleTargetPartitionPath { + return NSLocalizedString(@"LOGVIEW_ROW_TITLE_TARGET_PARTITION_PATH", NULL); } -+ (NSString *)errorTextCantCleanupTemporaryDirectories { - return NSLocalizedString(@"ERROR_TEXT_CANT_CLEANUP_TEMPORARY_DIRECTORIES", NULL); ++ (NSString *)menuTitleDonateMe { + return NSLocalizedString(@"MENU_TITLE_DONATE_ME", NULL); } -+ (NSString *)errorTextCantCreateBaseDirectories { - return NSLocalizedString(@"ERROR_TEXT_CANT_CREATE_BASE_DIRECTORIES", NULL); ++ (NSString *)menuTitleEdit { + return NSLocalizedString(@"MENU_TITLE_EDIT", NULL); } -+ (NSString *)errorTextCantFixPermissionsForBaseDirectories { - return NSLocalizedString(@"ERROR_TEXT_CANT_FIX_PERMISSIONS_FOR_BASE_DIRECTORIES", NULL); ++ (NSString *)menuTitleHide { + return NSLocalizedString(@"MENU_TITLE_HIDE", NULL); } -+ (NSString *)alertSubtitlePromptStartFailsafeRecovery { - return NSLocalizedString(@"ALERT_SUBTITLE_PROMPT_START_FAILSAFE_RECOVERY", NULL); ++ (NSString *)menuTitleItemAbout { + return NSLocalizedString(@"MENU_TITLE_ITEM_ABOUT", NULL); } -+ (NSString *)alertSubtitlePromptResetSettingsWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"ALERT_SUBTITLE_PROMPT_RESET_SETTINGS", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)menuTitleItemClose { + return NSLocalizedString(@"MENU_TITLE_ITEM_CLOSE", NULL); } -+ (NSString *)genericYes { - return NSLocalizedString(@"GENERIC_YES", NULL); ++ (NSString *)menuTitleItemCopy { + return NSLocalizedString(@"MENU_TITLE_ITEM_COPY", NULL); } -+ (NSString *)genericNo { - return NSLocalizedString(@"GENERIC_NO", NULL); ++ (NSString *)menuTitleItemCut { + return NSLocalizedString(@"MENU_TITLE_ITEM_CUT", NULL); +} + ++ (NSString *)menuTitleItemDebug { + return NSLocalizedString(@"MENU_TITLE_ITEM_DEBUG", NULL); +} + ++ (NSString *)menuTitleItemOpenDonationWebPage { + return NSLocalizedString(@"MENU_TITLE_ITEM_OPEN_DONATION_WEB_PAGE", NULL); +} + ++ (NSString *)menuTitleItemPaste { + return NSLocalizedString(@"MENU_TITLE_ITEM_PASTE", NULL); +} + ++ (NSString *)menuTitleItemQuit { + return NSLocalizedString(@"MENU_TITLE_ITEM_QUIT", NULL); +} + ++ (NSString *)menuTitleItemSelectAll { + return NSLocalizedString(@"MENU_TITLE_ITEM_SELECT_ALL", NULL); +} + ++ (NSString *)menuTitleMinimize { + return NSLocalizedString(@"MENU_TITLE_MINIMIZE", NULL); } + (NSString *)menuTitleResetAllSettings { return NSLocalizedString(@"MENU_TITLE_RESET_ALL_SETTINGS", NULL); } -+ (NSString *)errorTextCantCreateTemporaryBlankFileWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_CREATE_TEMPORARY_BLANK_FILE", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)menuTitleScanAllWholeDisks { + return NSLocalizedString(@"MENU_TITLE_SCAN_ALL_WHOLE_DISKS", NULL); } -+ (NSString *)errorTextCantOpenFilehandleForTempFilePathWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_OPEN_FILEHANDLE_FOR_TEMP_FILE_PATH", NULL); ++ (NSString *)menuTitleWindow { + return NSLocalizedString(@"MENU_TITLE_WINDOW", NULL); +} + ++ (NSString *)placeholderErrorWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"PLACEHOLDER_ERROR", NULL); return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)progressTitleSetFilePermissions { - return NSLocalizedString(@"PROGRESS_TITLE_SET_FILE_PERMISSIONS", NULL); ++ (NSString *)placeholderReasonWithArgument1:(id)argument1 { + NSString *unformattedString = NSLocalizedString(@"PLACEHOLDER_REASON", NULL); + return [NSString stringWithFormat: unformattedString, argument1]; } -+ (NSString *)errorTextUrlConnectionUnknownResponseLength { - return NSLocalizedString(@"ERROR_TEXT_URL_CONNECTION_UNKNOWN_RESPONSE_LENGTH", NULL); ++ (NSString *)progressTitleCreateDirectory { + return NSLocalizedString(@"PROGRESS_TITLE_CREATE_DIRECTORY", NULL); } -+ (NSString *)errorTextHttpResponseIncorrectStatusWithArgument1:(long)argument1 { - NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_HTTP_RESPONSE_INCORRECT_STATUS", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)progressTitleDiskEraseSuccess { + return NSLocalizedString(@"PROGRESS_TITLE_DISK_ERASE_SUCCESS", NULL); } -+ (NSString *)errorTextCantCreateBaseDirectoryAtPathWithArgument1:(id)argument1 argument2:(id)argument2 { - NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_CREATE_BASE_DIRECTORY_AT_PATH", NULL); - return [NSString stringWithFormat: unformattedString, argument1, argument2]; ++ (NSString *)progressTitleExtractBootloader { + return NSLocalizedString(@"PROGRESS_TITLE_EXTRACT_BOOTLOADER", NULL); } -+ (NSString *)errorTextCantSetAllPermissionsForDirectoryWithArgument1:(id)argument1 argument2:(id)argument2 { - NSString *unformattedString = NSLocalizedString(@"ERROR_TEXT_CANT_SET_ALL_PERMISSIONS_FOR_DIRECTORY", NULL); - return [NSString stringWithFormat: unformattedString, argument1, argument2]; ++ (NSString *)progressTitleFormattingTheDrive { + return NSLocalizedString(@"PROGRESS_TITLE_FORMATTING_THE_DRIVE", NULL); } -+ (NSString *)alertTitleLegacyBootSupport { - return NSLocalizedString(@"ALERT_TITLE_LEGACY_BOOT_SUPPORT", NULL); ++ (NSString *)progressTitleInstallLegacyBootloader { + return NSLocalizedString(@"PROGRESS_TITLE_INSTALL_LEGACY_BOOTLOADER", NULL); } -+ (NSString *)alertSubtitleLegacyBootSupport { - return NSLocalizedString(@"ALERT_SUBTITLE_LEGACY_BOOT_SUPPORT", NULL); ++ (NSString *)progressTitlePatchInstallerRequirements { + return NSLocalizedString(@"PROGRESS_TITLE_PATCH_INSTALLER_REQUIREMENTS", NULL); } -+ (NSString *)genericContinue { - return NSLocalizedString(@"GENERIC_CONTINUE", NULL); ++ (NSString *)progressTitleReadyForAction { + return NSLocalizedString(@"PROGRESS_TITLE_READY_FOR_ACTION", NULL); } -+ (NSString *)genericCancel { - return NSLocalizedString(@"GENERIC_CANCEL", NULL); ++ (NSString *)progressTitleSetFilePermissions { + return NSLocalizedString(@"PROGRESS_TITLE_SET_FILE_PERMISSIONS", NULL); } -+ (NSString *)logviewRowCreateDirectoryAtAppFolderPathWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"LOGVIEW_ROW_CREATE_DIRECTORY_AT_APP_FOLDER_PATH", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)progressTitleSplitImage { + return NSLocalizedString(@"PROGRESS_TITLE_SPLIT_IMAGE", NULL); } -+ (NSString *)placeholderErrorWithArgument1:(id)argument1 { - NSString *unformattedString = NSLocalizedString(@"PLACEHOLDER_ERROR", NULL); - return [NSString stringWithFormat: unformattedString, argument1]; ++ (NSString *)progressTitleWriteFile { + return NSLocalizedString(@"PROGRESS_TITLE_WRITE_FILE", NULL); } -+ (NSString *)sdmMessageDownloadDidReceiveResponseWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 { - NSString *unformattedString = NSLocalizedString(@"SDM_MESSAGE_DOWNLOAD_DID_RECEIVE_RESPONSE", NULL); ++ (NSString *)sdmMessageDidFinishLoadingWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 { + NSString *unformattedString = NSLocalizedString(@"SDM_MESSAGE_DID_FINISH_LOADING", NULL); return [NSString stringWithFormat: unformattedString, argument1, argument2, argument3]; } @@ -653,13 +693,13 @@ + (NSString *)sdmMessageDownloadDidReceiveDataWithArgument1:(id)argument1 argume return [NSString stringWithFormat: unformattedString, argument1, argument2, argument3, argument4]; } -+ (NSString *)sdmMessageDidFinishLoadingWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 { - NSString *unformattedString = NSLocalizedString(@"SDM_MESSAGE_DID_FINISH_LOADING", NULL); ++ (NSString *)sdmMessageDownloadDidReceiveResponseWithArgument1:(id)argument1 argument2:(id)argument2 argument3:(id)argument3 { + NSString *unformattedString = NSLocalizedString(@"SDM_MESSAGE_DOWNLOAD_DID_RECEIVE_RESPONSE", NULL); return [NSString stringWithFormat: unformattedString, argument1, argument2, argument3]; } -+ (NSString *)errorTextBootloaderFilesCantBeDownloaded { - return NSLocalizedString(@"ERROR_TEXT_BOOTLOADER_FILES_CANT_BE_DOWNLOADED", NULL); ++ (NSString *)tooltipFramelayoutFormattingSection { + return NSLocalizedString(@"TOOLTIP_FRAMELAYOUT_FORMATTING_SECTION", NULL); } @end diff --git a/WinDiskWriter/LocalizedStrings/en.lproj/Localizable.strings b/WinDiskWriter/LocalizedStrings/en.lproj/Localizable.strings index 5e122d7..a39e064 100644 --- a/WinDiskWriter/LocalizedStrings/en.lproj/Localizable.strings +++ b/WinDiskWriter/LocalizedStrings/en.lproj/Localizable.strings @@ -84,6 +84,30 @@ "ALERT_TITLE_WRITE_FILE_PROBLEM_OCCURRED" = "A problem occurred while writing the file to disk"; +"AS_LOG_TYPE_ASSERTION_ERROR" = "AssertionFailure"; + + +"AS_LOG_TYPE_FAILURE" = "Failure"; + + +"AS_LOG_TYPE_FATAL" = "Fatal"; + + +"AS_LOG_TYPE_LOG" = "Log"; + + +"AS_LOG_TYPE_SKIPPED" = "Skipped"; + + +"AS_LOG_TYPE_START" = "Start"; + + +"AS_LOG_TYPE_SUCCESS" = "Success"; + + +"AS_LOG_TYPE_WARNING" = "Warning"; + + "AUTHORIZATION_ERROR_BAD_ADDRESS" = "The requested socket address is invalid (must be 0-1023 inclusive)."; @@ -360,6 +384,12 @@ "LOGVIEW_ROW_CREATE_DIRECTORY_AT_APP_FOLDER_PATH" = "Create directory at Application Folder path: '%@'."; +"LOGVIEW_ROW_FOUND_LEGACY_BOOTLOADER_FILES" = "Found Legacy Bootloader files."; + + +"LOGVIEW_ROW_LEGACY_BOOTLOADER_FILES_NOT_FOUND" = "Legacy Bootloader files were not found."; + + "LOGVIEW_ROW_PARTIAL_TITLE_ERROR_MESSAGE" = "(Error message: '%@')"; diff --git a/WinDiskWriter/LocalizedStrings/ru.lproj/Localizable.strings b/WinDiskWriter/LocalizedStrings/ru.lproj/Localizable.strings index 0ae2db9..c924d82 100644 --- a/WinDiskWriter/LocalizedStrings/ru.lproj/Localizable.strings +++ b/WinDiskWriter/LocalizedStrings/ru.lproj/Localizable.strings @@ -84,6 +84,30 @@ "ALERT_TITLE_WRITE_FILE_PROBLEM_OCCURRED" = "Произошла проблема во время записи файла на диск"; +"AS_LOG_TYPE_ASSERTION_ERROR" = "Нарушение условия"; + + +"AS_LOG_TYPE_FAILURE" = "Ошибка"; + + +"AS_LOG_TYPE_FATAL" = "Фатальная ошибка"; + + +"AS_LOG_TYPE_LOG" = "Инфо"; + + +"AS_LOG_TYPE_SKIPPED" = "Пропущено"; + + +"AS_LOG_TYPE_START" = "Старт"; + + +"AS_LOG_TYPE_SUCCESS" = "Успешно"; + + +"AS_LOG_TYPE_WARNING" = "Предупреждение"; + + "AUTHORIZATION_ERROR_BAD_ADDRESS" = "Запрошенный адрес сокета не является валидным (должен быть в диапазоне 0-1023 включительно)."; @@ -360,6 +384,12 @@ "LOGVIEW_ROW_CREATE_DIRECTORY_AT_APP_FOLDER_PATH" = "Создание директории в директории приложения: '%@'."; +"LOGVIEW_ROW_FOUND_LEGACY_BOOTLOADER_FILES" = "Найдены файлы загрузчика Legacy BIOS."; + + +"LOGVIEW_ROW_LEGACY_BOOTLOADER_FILES_NOT_FOUND" = "Файла загрузчика Legacy BIOS не были найдены."; + + "LOGVIEW_ROW_PARTIAL_TITLE_ERROR_MESSAGE" = "(Сообщение об ошибке: '%@')"; diff --git a/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.h b/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.h index 8c6d953..a565c52 100644 --- a/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.h +++ b/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.h @@ -11,8 +11,6 @@ NS_ASSUME_NONNULL_BEGIN -typedef NSString *ASLogType NS_TYPED_ENUM; - @interface AdvancedTextView : NSScrollView @property (nonatomic, strong, readonly) VibrantTextView *textViewInstance; @@ -23,8 +21,6 @@ typedef NSString *ASLogType NS_TYPED_ENUM; - (void)appendTimestampedLine: (NSString *)message; -- (void)appendTimestampedLine: (NSString *)message - logType: (ASLogType)logType; - (void)clear; @end diff --git a/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.m b/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.m index 10f7a4d..b830f5d 100644 --- a/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.m +++ b/WinDiskWriter/Views/AdvancedTextView/AdvancedTextView.m @@ -71,14 +71,6 @@ - (BOOL)allowsVibrancy { return YES; } -- (void)appendTimestampedLine: (NSString *)message - logType: (ASLogType)logType { - NSString *timeString = [dateFormatter stringFromDate: NSDate.date]; - NSString *timestampedString = [NSString stringWithFormat:@"[(%@) %@] %@", logType, timeString, message]; - - [self appendLine: timestampedString]; -} - - (void)appendTimestampedLine: (NSString *)message { NSString *timeString = [dateFormatter stringFromDate: NSDate.date]; diff --git a/WinDiskWriter/Views/LogView/LogView.h b/WinDiskWriter/Views/LogView/LogView.h index 0a7bdb0..dd6f67e 100644 --- a/WinDiskWriter/Views/LogView/LogView.h +++ b/WinDiskWriter/Views/LogView/LogView.h @@ -10,17 +10,17 @@ NS_ASSUME_NONNULL_BEGIN -typedef NSString *ASLogType NS_TYPED_ENUM; - -extern ASLogType const ASLogTypeStart; -extern ASLogType const ASLogTypeSuccess; -extern ASLogType const ASLogTypeFailure; -extern ASLogType const ASLogTypeSkipped; - -extern ASLogType const ASLogTypeLog; -extern ASLogType const ASLogTypeWarning; -extern ASLogType const ASLogTypeFatal; -extern ASLogType const ASLogTypeAssertionError; +typedef NS_ENUM(NSUInteger, ASLogType) { + ASLogTypeStart, + ASLogTypeSuccess, + ASLogTypeFailure, + ASLogTypeSkipped, + + ASLogTypeLog, + ASLogTypeWarning, + ASLogTypeFatal, + ASLogTypeAssertionError +}; @interface LogView : NSScrollView diff --git a/WinDiskWriter/Views/LogView/LogView.m b/WinDiskWriter/Views/LogView/LogView.m index c5c7021..e3a91f8 100644 --- a/WinDiskWriter/Views/LogView/LogView.m +++ b/WinDiskWriter/Views/LogView/LogView.m @@ -10,24 +10,51 @@ #import "NSColor+Common.h" #import "VibrantTableView.h" #import "NSMutableAttributedString+Common.h" +#import "LocalizedStrings.h" #import "ContaineredTableView.h" #import "MiddleAlignedCell.h" -ASLogType const ASLogTypeStart = @"Start"; -ASLogType const ASLogTypeSuccess = @"Success"; -ASLogType const ASLogTypeFailure = @"Failure"; -ASLogType const ASLogTypeSkipped = @"Skipped"; - -ASLogType const ASLogTypeLog = @"Log"; -ASLogType const ASLogTypeWarning = @"Warning"; -ASLogType const ASLogTypeFatal = @"Fatal"; -ASLogType const ASLogTypeAssertionError = @"AssertionFailure"; - +/* +ASLogType ASLogTypeStart = @"Start"; +ASLogType ASLogTypeSuccess = @"Success"; +ASLogType ASLogTypeFailure = @"Failure"; +ASLogType ASLogTypeSkipped = @"Skipped"; + +ASLogType ASLogTypeLog = @"Log"; +ASLogType ASLogTypeWarning = @"Warning"; +ASLogType ASLogTypeFatal = @"Fatal"; +ASLogType ASLogTypeAssertionError = @"AssertionFailure"; +*/ + @implementation LogView { NSDateFormatter *dateFormatter; NSTextField *dummyTextField; } ++ (NSString *)logTypeStringForKey: (ASLogType)logType { + switch (logType) { + case ASLogTypeStart: + return [LocalizedStrings asLogTypeStart]; + case ASLogTypeSuccess: + return [LocalizedStrings asLogTypeSuccess]; + case ASLogTypeFailure: + return [LocalizedStrings asLogTypeFailure]; + case ASLogTypeSkipped: + return [LocalizedStrings asLogTypeSkipped]; + case ASLogTypeLog: + return [LocalizedStrings asLogTypeLog]; + case ASLogTypeWarning: + return [LocalizedStrings asLogTypeWarning]; + case ASLogTypeFatal: + return [LocalizedStrings asLogTypeFatal]; + case ASLogTypeAssertionError: + return [LocalizedStrings asLogTypeAssertionError]; + } + + // Fallback value + return [LocalizedStrings asLogTypeLog]; +} + - (instancetype)init { self = [super init]; @@ -106,14 +133,14 @@ - (void)appendRow:(NSString *)string { - (void)appendTimestampedRow: (NSString *)string logType: (ASLogType)logType { - NSString *timestampedString = [NSString stringWithFormat: @"[(%@) %@] %@", logType, [self timeString], string]; + NSString *timestampedString = [NSString stringWithFormat: @"[(%@) %@] %@", [LogView logTypeStringForKey: logType], [self timeString], string]; [self appendRow: timestampedString]; } - (void)appendRow: (NSString *)string logType: (ASLogType)logType { - NSString *logTypedString = [NSString stringWithFormat: @"[%@] %@", logType, string]; + NSString *logTypedString = [NSString stringWithFormat: @"[%@] %@", [LogView logTypeStringForKey: logType], string]; [self appendRow:logTypedString]; } diff --git a/WinDiskWriter/Windows/MainWindow/MainWindow.m b/WinDiskWriter/Windows/MainWindow/MainWindow.m index b617abd..f3fbc88 100644 --- a/WinDiskWriter/Windows/MainWindow/MainWindow.m +++ b/WinDiskWriter/Windows/MainWindow/MainWindow.m @@ -866,9 +866,9 @@ - (void)writeAction { if (installLegacyBoot) { BOOL bootloaderLegacyFilesDownloaded = [self downloadLegacyBootloaderFiles]; if (bootloaderLegacyFilesDownloaded) { - [self->logsView appendRow:@"Found Legacy Bootloader files." logType:ASLogTypeSuccess]; + [self->logsView appendRow:[LocalizedStrings logviewRowFoundLegacyBootloaderFiles] logType:ASLogTypeSuccess]; } else { - [self->logsView appendRow:@"Legacy Bootloader files were not found." logType:ASLogTypeFatal]; + [self->logsView appendRow:[LocalizedStrings logviewRowLegacyBootloaderFilesNotFound] logType:ASLogTypeFatal]; WriteExitForce(); }