~ubuntu-branches/ubuntu/wily/muse/wily-proposed

« back to all changes in this revision

Viewing changes to find_translation_concatenation.sh

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-12-03 17:12:54 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20111203171254-28b1j4lpb46r5jtl
Tags: 2.0~rc1-1
* New upstream RC release.
* Refresh patches, remove those patches not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
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)
 
7
#
 
8
# this script is not perfect. it misses some "bad" things, and
 
9
# finds some "good" things.
 
10
 
 
11
{
 
12
find . -iname '*.cpp' -print0 | xargs -0 grep -E 'tr *\("[^"]*" *\) *\+';
 
13
find . -iname '*.cpp' -print0 | xargs -0 grep -E '\+ *tr *\("[^"]*" *\)';
 
14
} | sort | uniq
 
15
 
 
16