|
|
1.1 ! root 1: /* ! 2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. ! 3: ! 4: Governed by the TrueCrypt License 2.4 the full text of which is contained ! 5: in the file License.txt included in TrueCrypt binary and source code ! 6: distribution packages. ! 7: */ ! 8: ! 9: #include "System.h" ! 10: #include "Resources.h" ! 11: #include "LanguageStrings.h" ! 12: #include "Xml.h" ! 13: ! 14: namespace TrueCrypt ! 15: { ! 16: LanguageStrings::LanguageStrings () ! 17: { ! 18: } ! 19: ! 20: LanguageStrings::~LanguageStrings () ! 21: { ! 22: } ! 23: ! 24: wxString LanguageStrings::operator[] (const string &key) const ! 25: { ! 26: if (Map.count (key) > 0) ! 27: return wxString (Map.find (key)->second); ! 28: ! 29: return wxString (L"?") + StringConverter::ToWide (key) + L"?"; ! 30: } ! 31: ! 32: wstring LanguageStrings::Get (const string &key) const ! 33: { ! 34: return wstring (LangString[key]); ! 35: } ! 36: ! 37: void LanguageStrings::Init () ! 38: { ! 39: foreach (XmlNode node, XmlParser (Resources::GetLanguageXml()).GetNodes (L"string")) ! 40: { ! 41: wxString text = node.InnerText; ! 42: text.Replace (L"\\n", L"\n"); ! 43: Map[StringConverter::ToSingle (wstring (node.Attributes[L"key"]))] = text; ! 44: } ! 45: ! 46: Map["EXCEPTION_OCCURRED"] = _("Exception occurred"); ! 47: Map["MOUNT"] = _("Mount"); ! 48: Map["MOUNT_POINT"] = _("Mount Directory"); ! 49: Map["NO"] = _("No"); ! 50: Map["NO_VOLUMES_MOUNTED"] = _("No volumes mounted."); ! 51: Map["OPEN_NEW_VOLUME"] = _("Specify a New TrueCrypt Volume"); ! 52: Map["PARAMETER_INCORRECT"] = _("Parameter incorrrect"); ! 53: Map["SELECT_KEYFILES"] = _("Select Keyfiles"); ! 54: Map["START_TC"] = _("Start TrueCrypt"); ! 55: Map["VOLUME_ALREADY_MOUNTED"] = _("The volume \"{0}\" is already mounted."); ! 56: Map["UNKNOWN_OPTION"] = _("Unknown option"); ! 57: Map["VOLUME_LOCATION"] = _("Volume Location"); ! 58: Map["VOLUME_LOCATION_WIZARD_PAGE_INFO"] = _("You can create file-hosted volumes or encrypt entire hard disk partitions, floppy disks, USB memory sticks, and other storage devices. Click 'Select File...' to specify the name and path of the file to be created to host the new volume, or click 'Select Device...' to choose a partition or device to encrypt.\n\nWarning: If you encrypt a partition or a device, all data currently stored on the partition or the device will be erased."); ! 59: Map["VOLUME_CREATION_WIZARD"] = _("TrueCrypt Volume Creation Wizard"); ! 60: Map["VOLUME_CREATION_INTRO"] = _("\nThis wizard will help you to create a new TrueCrypt volume.\n\nImportant: Collection of random data has begun. The data will be used in generating the master key, the secondary key (XTS mode), and salt, for the new volume. The collected data include your mouse movements within this window, keystrokes, and other data obtained from the system. The data should be as random as possible, so the more randomly and the longer you move the mouse, the better."); ! 61: Map["YES"] = _("Yes"); ! 62: Map["VOLUME_HOST_IN_USE"] = _("WARNING: The host file/device \"{0}\" is already in use!\n\nIgnoring this can cause undesired results including system instability. All applications that might be using the host file/device should be closed before mounting the volume.\n\nContinue with mounting?"); ! 63: Map["VIRTUAL_DEVICE"] = _("Virtual Device"); ! 64: Map["FEATURE_CURRENTLY_UNSUPPORTED_ON_PLATFORM"] = _("The selected feature is currently not supported on your platform."); ! 65: Map["CONFIRM_BACKGROUND_TASK_DISABLED"] = _("WARNING: If the TrueCrypt Background Task is disabled, the following functions, depending on the platform, will be disabled whenever you exit TrueCrypt:\n\n1) Auto-dismount (e.g., upon log off, time-out, etc.)\n2) Notifications (e.g., when damage to hidden volume is prevented)\n3) Tray icon\n\nNote: You may shut down the Background Task anytime by right-clicking the TrueCrypt tray icon and selecting 'Exit'.\n\nAre you sure you want to disable the TrueCrypt Background Task?"); ! 66: Map["CONFIRM_EXIT"] = _("WARNING: If TrueCrypt exits now, the following functions, depending on the platform, will be disabled:\n\n1) Auto-dismount (e.g., upon log off, time-out, etc.)\n2) Notifications (e.g., when damage to hidden volume is prevented)\n3) Tray icon\n\nNote: If you do not wish TrueCrypt to continue running in background after you close its window, disable the Background Task in the Preferences.\n\nAre you sure you want TrueCrypt to exit?"); ! 67: Map["DAMAGE_TO_HIDDEN_VOLUME_PREVENTED"] = _("WARNING: Data were attempted to be saved to the hidden volume area of the volume \"{0}\"!\n\nTrueCrypt prevented these data from being saved in order to protect the hidden volume. This may have caused filesystem corruption on the outer volume and the operating system may have reported a write error (\"Delayed Write Failed\", \"The parameter is incorrect\", etc.). The entire volume (both the outer and the hidden part) will be write-protected until it is dismounted.\n\nWe strongly recommend that you restart the operating system now."); ! 68: Map["ENTER_PASSWORD"] = _("Enter password"); ! 69: Map["ENTER_PASSWORD_FOR"] = _("Enter password for \"{0}\""); ! 70: Map["ENTER_TC_VOL_PASSWORD"] = _("Enter TrueCrypt Volume Password"); ! 71: Map["SELECT_KEYFILE_PATH"] = _("Select Keyfile Search Path"); ! 72: Map["HIDVOL_PROT_WARN_AFTER_MOUNT"] = _("The hidden volume is now protected against damage until the outer volume is dismounted.\n\nWARNING: If any data is attempted to be saved to the hidden volume area, TrueCrypt will start write-protecting the entire volume (both the outer and the hidden part) until it is dismounted. This may cause filesystem corruption on the outer volume. Any data being saved to the hidden volume area will NOT be saved and will be lost! The operating system may report this as a write error (\"Delayed Write Failed\", \"The parameter is incorrect\", etc.)."); ! 73: Map["HIDVOL_PROT_WARN_AFTER_MOUNT_PLURAL"] = _("Each of the hidden volumes within the newly mounted volumes is now protected against damage until dismounted.\n\nWARNING: If any data is attempted to be saved to protected hidden volume area of any of these volumes, TrueCrypt will start write-protecting the entire volume (both the outer and the hidden part) until it is dismounted. This may cause filesystem corruption on the outer volume. Any data being saved to protected hidden volume areas will NOT be saved and will be lost! The operating system may report this as a write error (\"Delayed Write Failed\", \"The parameter is incorrect\", etc.)."); ! 74: Map["MOUNTED_VOLUMES_AUTO_DISMOUNTED"] = _("TrueCrypt volumes have been auto-dismounted.\n\nNote: You can disable or configure auto-dismount in the Preferences (select Settings -> Preferences)."); ! 75: Map["MORE_INFO_ABOUT"] = _("More information on {0}"); ! 76: Map["IDPM_PROPERTIES"] = _("&Properties..."); ! 77: Map["TWO_LAYER_CASCADE_HELP"] = _("Two ciphers in a cascade operating in XTS mode. Each block is first encrypted with {0} ({1}-bit key) and then with {2} ({3}-bit key). Each cipher uses its own key. All keys are mutually independent."); ! 78: Map["THREE_LAYER_CASCADE_HELP"] = _("Three ciphers in a cascade operating in XTS mode. Each block is first encrypted with {0} ({1}-bit key), then with {2} ({3}-bit key), and finally with {4} ({5}-bit key). Each cipher uses its own key. All keys are mutually independent."); ! 79: Map["CHECKING_FS"] = _("Checking the file system on the TrueCrypt volume mounted as {0}..."); ! 80: Map["REPAIRING_FS"] = _("Attempting to repair the file system on the TrueCrypt volume mounted as {0}..."); ! 81: Map["TESTS_PASSED"] = _("Self-tests of all algorithms passed."); ! 82: Map["UNMOUNT_LOCK_FAILED"] = _("Volume \"{0}\" contains files or folders being used by applications or system.\n\nForce dismount?"); ! 83: Map["VOLUME_SIZE_HELP"] = _("Please specify the size of the container to create.\n\nIf you create a dynamic (sparse-file) container, this parameter will specify its maximum size.\n\nNote that the minimum possible size of a FAT volume is 19 KB. The minimum possible size of an NTFS volume is 2573 KB."); ! 84: } ! 85: ! 86: LanguageStrings LangString; ! 87: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.