From 67a73aedf14121bd0e7b64d4181ac8cfc0ddc555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 12 Mar 2010 09:47:35 +0100 Subject: [PATCH] Fix handling of comments. --- scripts/php2gettext.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/php2gettext.sh b/scripts/php2gettext.sh index 3cc795bfa..4363f5594 100755 --- a/scripts/php2gettext.sh +++ b/scripts/php2gettext.sh @@ -19,6 +19,7 @@ for lang in lang/*.inc.php ; do sed " s/' ;/';/; /to translate/D; + /^\/\//D; /\$allow_recoding/D; s/\$byteUnits *= *array('\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)');/\$str_B = '\1';\n\$str_KiB = '\2';\n\$str_MiB = '\3';\n\$str_GiB = '\4';\n\$str_TiB = '\5';\n\$str_PiB = '\6';\n\$str_EiB = '\7';/; s/\$day_of_week *= *array('\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)', *'\(.*\)');/\$str_Sun = '\1';\n\$str_Mon = '\2';\n\$str_Tue = '\3';\n\$str_Wed = '\4';\n\$str_Thu = '\5';\n\$str_Fri = '\6';\n\$str_Sat = '\7';\n/;