From e7d230da28700baa2318cc88586fa91aee6a5797 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 16 Jun 2011 17:42:17 +0000 Subject: [PATCH] dropspan: This is a quick&dirty script to remove HTML from the language files. It will be deleted from SVN again once this job is done. grep '<' en.lang will print a TODO list ;-) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1072 a1433add-5e2c-0410-b055-b7f2511e0802 --- languages/dropspan | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 languages/dropspan diff --git a/languages/dropspan b/languages/dropspan new file mode 100755 index 00000000..3eaeffb1 --- /dev/null +++ b/languages/dropspan @@ -0,0 +1,23 @@ +#!/bin/bash + +# This is a quick&dirty script to remove HTML from the language files. +# It will be deleted from SVN again once this job is done. +# grep '<' en.lang +# will print a TODO list ;-) + +test -z "$1" && { + echo 'Call this script with the $PALANG variable name as parameter!' + echo 'Example for $PALANG['pAdminEdit_domain_result_error']: ' + echo " $0 pAdminEdit_domain_result_error" + exit 1 +} + +echo before: +grep "'$1'" en.lang + +for file in *.lang ; do sed -i "/'$1'/"' s,,,' $file; done +for file in *.lang ; do sed -i "/'$1'/"' s,,,' $file; done + +echo after: +grep "'$1'" en.lang +