scripts/unocommandsl10n.sh | 12 ------------ 1 file changed, 12 deletions(-)
New commits: commit 4f0d5d7a2431bf5e132bdcd85285c10c0fd21322 Author: Andras Timar <andras.ti...@collabora.com> Date: Fri Dec 8 10:41:36 2017 +0100 l10n: remove obsolete unocommandsl10n.sh Change-Id: I4e9945407aff4a4fa1444079f8ecec1782a71c9c Reviewed-on: https://gerrit.libreoffice.org/46079 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> diff --git a/scripts/unocommandsl10n.sh b/scripts/unocommandsl10n.sh deleted file mode 100755 index 397d5be5..00000000 --- a/scripts/unocommandsl10n.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -LODIR=/home/timar/cp-5.1 -LEAFLETDIR=/home/timar/online - -for lang in `ls -1 $LODIR/translations/source`; do -echo -ne "{" > $lang.json -for unocommand in `grep -Pzo "(?s)^(\s*)\N*whitelist: .*?{.*?^\1}" $LEAFLETDIR/loleaflet/src/control/Control.ContextMenu.js | grep -Po "'.*?'" | tr -d "'" | sed -e "s/^/.uno:/"`;do grep -A4 $unocommand $LODIR/translations/source/$lang/officecfg/registry/data/org/openoffice/Office/UI.po | grep -P "msgid|msgstr" | tr -d "~" | sed -e "s/msgid //" -e "s/msgstr //";done | paste -d" " - - | sort | uniq | sed -e 's/" "/": "/' -e 's/$/, /' | grep -v '""' | tr -d "\n" | sed -e "s/, $//" >> $lang.json -echo -ne "}" >> $lang.json -done - - _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits