From 8bc22701fbef17c24de6f2f8af282da08eba5766 Mon Sep 17 00:00:00 2001 From: koem Date: Sat, 9 Feb 2013 18:14:29 +1300 Subject: Icons for OC - new icons for opencaching - changed some icons because of copyright - english strings for opencaching attributes - german strings for opencaching attributes - new script to show (missing) strings for attributes - new script to edit svg files from thenounproject.com - new script to generate enums - ocicons.html: list of all OC icons --- main/project/attributes/listEnStrings.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 main/project/attributes/listEnStrings.sh (limited to 'main/project/attributes/listEnStrings.sh') diff --git a/main/project/attributes/listEnStrings.sh b/main/project/attributes/listEnStrings.sh new file mode 100755 index 0000000..1fae240 --- /dev/null +++ b/main/project/attributes/listEnStrings.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +require () { + hash $1 2>&- || { echo >&2 "I require $1 but it's not installed. Aborting."; exit 1; } +} + +require sed +require cut + +stringfile="../../res/values/strings.xml" + +cat iconlist.txt | grep -v "^#" | while read l; do + name=`echo $l | cut -d "|" -f 1 | sed "s/ *//g"` + att=attribute_${name}_ + for yn in yes no; do + line="`grep ${att}${yn} $stringfile`" + if [ -z "$line" ]; then + echo " " + else + echo "$line" + fi + done +done -- cgit v1.1