3
# this script tries to find all "bad" code like
4
# tr("the file ") + your_file + tr(" could not be loaded!")
5
# you should replace it by:
6
# tr("the file %1 could not be loaded!").arg(your_file)
8
# this script is not perfect. it misses some "bad" things, and
9
# finds some "good" things.
12
find . -iname '*.cpp' -print0 | xargs -0 grep -E 'tr *\("[^"]*" *\) *\+';
13
find . -iname '*.cpp' -print0 | xargs -0 grep -E '\+ *tr *\("[^"]*" *\)';