(file) Return to po2tbl.sed CVS log (file) (dir) Up to [RizwankCVS] / testProject / intl

 1 rizwank 1.1 1 {
 2               i\
 3             /* Automatically generated by po2tbl.sed from @PACKAGE NAME@.pot.  */\
 4             \
 5             #if HAVE_CONFIG_H\
 6             # include <config.h>\
 7             #endif\
 8             \
 9             #include "libgettext.h"
10             \
11             const struct _msg_ent _msg_tbl[] = {
12               h
13               s/.*/0/
14               x
15             }
16             /^msgid/ {
17               s/msgid[ 	]*\(".*"\)/  {\1/
18               tb
19               :b
20               N
21               s/\(.*\)"\(\n\)"\(.*"\)/\1\2\3/
22 rizwank 1.1   ta
23               s/\(.*\)\n.*/\1/
24               bc
25               :a
26               s/\(.*\)\(\n.*\)/\1\\\2/
27               P
28               s/.*\n\(.*\)/\1/
29               tb
30               :c
31               x
32               td
33               :d
34               s/9\(_*\)$/_\1/
35               td
36               s/^\(_*\)$/0\1/
37               s/8\(_*\)$/9\1/
38               s/7\(_*\)$/8\1/
39               s/6\(_*\)$/7\1/
40               s/5\(_*\)$/6\1/
41               s/4\(_*\)$/5\1/
42               s/3\(_*\)$/4\1/
43 rizwank 1.1   s/2\(_*\)$/3\1/
44               s/1\(_*\)$/2\1/
45               s/0\(_*\)$/1\1/
46               s/_/0/g
47               x
48               G
49               s/\(.*\)\n\([0-9]*\)/\1, \2},/
50               s/\(.*\)"$/\1/
51               p
52             }
53             $ {
54               i\
55             };\
56             
57               g
58               s/0*\(.*\)/int _msg_tbl_length = \1;/p
59             }
60             d

Rizwan Kassim
Powered by
ViewCVS 0.9.2