Skip to content

Instantly share code, notes, and snippets.

@rtanglao
Created May 6, 2011 23:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtanglao/959987 to your computer and use it in GitHub Desktop.
Save rtanglao/959987 to your computer and use it in GitHub Desktop.
how to find msgstrs that are nil
cd /Users/rolandtanglao/Documents/MOZILLA_MESSAGING/KITSUNE/LOCALE_CHECKOUT/trunk/locales
for i in *; do echo -n $i >>no.of.nil.msgstrs.txt;grep -H "msgstr \"\"" "$i"/LC_MESSAGES/messages.po | wc -l >> no.of.nil.msgstrs.txt; done ;cat no.of.nil.msgstrs.txt | sort -r --key=2 >sorted.by.number.of.nil.strs
README.txt 0
ak 774
ar 502
as 774
ast 774
bg 188
bn_BD 774
bn_IN 774
bs 106
ca 236
compendia 0
compile-mo.sh 0
cs 12
da 418
de 18
el 549
en_US 7
eo 774
es 12
et 497
eu 52
fa 345
fi 146
fix-duplicates.sh 0
fr 19
fur 774
fy_NL 9
ga 182
ga_IE 182
gd 774
gl 605
gu_IN 631
he 468
hi_IN 774
hr 23
hu 8
hy_AM 774
id 111
is 89
it 34
ja 7
kk 774
kn 774
ko 5
lt 687
merge-po.sh 0
mk 773
mn 773
mr 774
ms 750
my 774
nb_NO 22
nl 12
no 490
oc 774
pa_IN 529
pl 1
pt_BR 15
pt_PT 774
rm 11
ro 615
ru 3
rw 773
si 638
sk 339
sl 9
sq 4
sr_CYRL 741
sr_LATN 774
sv_SE 774
ta_LK 774
te 774
templates 0
th 41
thunderbirdize.stderr.out 0
tr 11
uk 34
vi 10
zh_CN 3
zh_TW 3
te 774
ta_LK 774
sv_SE 774
sr_LATN 774
pt_PT 774
oc 774
my 774
mr 774
kn 774
kk 774
hy_AM 774
hi_IN 774
gd 774
fur 774
eo 774
bn_IN 774
bn_BD 774
ast 774
as 774
ak 774
rw 773
mn 773
mk 773
ms 750
sr_CYRL 741
lt 687
si 638
gu_IN 631
ro 615
gl 605
el 549
pa_IN 529
ar 502
et 497
no 490
he 468
da 418
fa 345
sk 339
ca 236
bg 188
ga_IE 182
ga 182
fi 146
id 111
bs 106
is 89
eu 52
th 41
uk 34
it 34
hr 23
nb_NO 22
fr 19
de 18
pt_BR 15
nl 12
es 12
cs 12
tr 11
rm 11
vi 10
sl 9
fy_NL 9
hu 8
ja 7
en_US 7
ko 5
sq 4
zh_TW 3
zh_CN 3
ru 3
pl 1
thunderbirdize.stderr.out 0
templates 0
sorted.by.number.of.nil.strs 0
merge-po.sh 0
fix-duplicates.sh 0
compile-mo.sh 0
compendia 0
README.txt 0
@rtanglao
Copy link
Author

rtanglao commented May 6, 2011

anything that has 774 null msgstrs has NOT been localized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment