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/landscape.xml | 6 +++--- gui/theme/common/languages/en.xml | 29 ++++++++++++----------------- gui/theme/common/portrait.xml | 6 +++--- gui/theme/common/watch.xml | 10 +++++----- 4 files changed, 23 insertions(+), 28 deletions(-) (limited to 'gui/theme/common') diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index 57fef4040..ebee0a8eb 100755 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -2321,7 +2321,7 @@ tw_back=restore_select - tw_complete_text1={@restore_completed=Restore Complete} + tw_complete_text1={@restore_complete=Restore Complete} tw_show_reboot=1 action_complete @@ -2437,7 +2437,7 @@ - {usb_storage_hdr=USB Storage} + {@usb_storage_hdr=USB Storage} @@ -2505,7 +2505,7 @@ - {@reboot_hdr=Reboot Menu} + {@reboot_hdr=Reboot}