From 3c36697b2d1572f963a8e6d34e648efa004029cc Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Fri, 25 Dec 2015 19:28:31 -0600 Subject: Fix a bunch of messages * Find and rename/remove duplicate string variable names * Add missing string variables to en language file * Fix display of some strings missing @ in front of variable name * Fix several %s --> {1} * Be consistent in usage of cancelled vs. canceled (both spellings acceptable) Tip for finding strings missing from language files: 1) Find all messages: egrep -hr "gui_msg.+=" > /tmp/msgs.txt 2) Regex replace to trim them down WHAT: ^\s+gui_msg(?:[^"]+)"([a-zA-Z0-9_]+)=([^"]+).+ WITH: $1 Note that $2 can be used to retain the message 3) Find missing strings: for i in $(cat /tmp/msgs.txt); do if ! grep -q $i gui/theme/common/languages/en.xml; then echo $i; fi done Change-Id: Ic193162e4b5468bf027472928a370be39840ea1d --- gui/theme/common/languages/en.xml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'gui/theme/common/languages') diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml index 47c7e76cc..8e2fba8b9 100755 --- a/gui/theme/common/languages/en.xml +++ b/gui/theme/common/languages/en.xml @@ -90,7 +90,7 @@ Add more Zips Clear Zip Queue Install Zip %tw_zip_index% of %tw_zip_queue_count% - Installing Zip: %tw_file% + Installing Zip: %tw_file% Failed Successful Installation Failed @@ -219,7 +219,6 @@ Set Backup Name Progress: Backup Complete - Backup Cancelled Restore Select Backup Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB) @@ -238,7 +237,7 @@ Backup made on %tw_restore_file_date% Select Partitions to Restore: Enable MD5 Verification of Backup Files - Restore Complete + Restore Complete Swipe to Restore Restore Rename Backup @@ -250,7 +249,6 @@ Rename Confirm Mount - Select Partitions to Mount: Mount system partition read-only Mount System RO @@ -263,7 +261,6 @@ Be sure to safely remove your device from your computer before unmounting! Unmount - Reboot Menu System Power Off Recovery @@ -479,7 +476,6 @@ No SELinux support (no libselinux). MTP Enabled MTP Crashed, not starting MTP on boot. - Rebooting... Successfully decrypted with default password. Unable to decrypt with default password. You may need to perform a Format Data. Generating MD5 @@ -488,7 +484,6 @@ * MD5 Created. * MD5 Error! * Error computing MD5. - * MD5 Created. (Current Date) (Auto Generate) Unable to locate '{1}' partition for backup calculations. @@ -497,7 +492,7 @@ * Total size of all data: {1}MB * Available space: {1}MB Unable to locate storage device. - Not enough free space on storage. + Not enough free space on storage. [BACKUP STARTED] * Backup Folder: {1} Failed to make backup folder. @@ -518,7 +513,7 @@ Restoring {1} partitions... Total restore size is {1}MB Updating System Details - [RESTORE COMPLETED IN {1} SECONDS] + [RESTORE COMPLETED IN {1} SECONDS] Error opening: '{1}' ({2}) Unable to locate partition by backup name: '{1}' @@ -536,7 +531,7 @@ Unable to mount storage Failed to decrypt data. No crypto support was compiled into this build. - Data successfully decrypted, new block device: '{1}' + Data successfully decrypted, new block device: '{1}' Done. Partitioning SD Card... Unable to locate device to partition. @@ -568,17 +563,18 @@ Failed to mount '{1}' ({2}) - Failed to unmount '{1}' ({2}) + Failed to unmount '{1}' ({2}) Cannot resize {1}. Repairing {1} before resizing. Unable to resize {1}. No md5 file found for '{1}'. Please unselect Enable MD5 verification to restore. MD5 failed to match on '{1}'. - Restoring + Failed to decrypt tar file '{1}' You may need to reboot recovery to be able to use /data again. Unable to format to remove encryption. Formatting {1} using {2}... Unable to wipe {1}. + Partition {1} cannot be wiped. Removing all files under '{1}' Wiping data without wiping /data/media ... Backing up {1}... @@ -586,11 +582,11 @@ Backup file size for '{1}' is 0 bytes. WARNING: This /data backup was made with {1} file system! The backup may not boot unless you change back to {1}. Restoring {1}... - Restoring + Restoring Unable to recreate {1} folder. Size of image is larger than target device Flashing {1}... - Backup folder set to '{1}' + Backup folder set to '{1}' Unable to locate backup '{1}' Setting restore options: '{1}': MD5 check skip is on @@ -616,7 +612,7 @@ Compression is on MD5 Generation is off Backup Failed - Backup complete! + Backup Failed. Cleaning Backup Folder. Running Recovery Commands Recovery Commands Complete Running OpenRecoveryScript @@ -648,7 +644,7 @@ Attempting to decrypt data partition via command line. Failed to load base packages. Simulating actions... - Backup Canceled. + Backup Cancelled Configuring TWRP... Unable to configure TWRP with this kernel. Copied recovery log to {1}. @@ -663,7 +659,6 @@ (Current Date) Backup name is too long. Backup name '{1}' contains invalid character: '{1}' - A backup with this name already exists. This device does not have a real SD Card! Aborting! Cancelling ADB sideload... Error changing file system. -- cgit v1.2.3