File indexing completed on 2024-12-01 03:37:08

0001 #! /usr/bin/env bash
0002 find data/ -name "*.json" | while read FILE; do cat $FILE | sed -n 's/"name"\s*:\s*"\(.*\)",*$/\1/p' | sed -n 's/\s*//p'  >> strings.txt; done
0003 find data/ -name "*.json" | while read FILE; do cat $FILE | sed -n 's/"userMessage"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
0004 sort -u strings.txt | while read STR; do printf "i18nc(\"technical term, do you have a musician friend?\", \"$STR\")\n" >> rc.cpp; done
0005 $XGETTEXT `find . -name \*.cpp -o -name \*.qml` -o $podir/minuet.pot
0006 rm -f strings.txt