Rev 252 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 252 | Rev 255 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | end |
74 | end |
75 | } |
75 | } |
76 | #p @category |
76 | #p @category |
77 | @categorys.uniq! |
77 | @categorys.uniq! |
78 | @categorys.sort! |
78 | @categorys.sort! |
- | 79 | mod_cats=@categorys.map {|e| "STRINGID_"+e } |
|
79 | all_tabs << ["{\"" + @categorys.join("\",\"") + "\"}"] |
80 | all_tabs << ["{" + mod_cats.join(",") + "}"] |
80 | puts "[\"" + @categorys.join("\",\"") + "\"]" |
81 | puts "[\"" + @categorys.join("\",\"") + "\"]" |
Line 81... | Line 82... | ||
81 | 82 | ||
82 | 83 | ||
Line 108... | Line 109... | ||
108 | 109 | ||
Line 109... | Line 110... | ||
109 | 110 | ||
110 | } |
111 | } |
111 | 112 | ||
112 | puts "// -- start generated code --" |
113 | puts "// -- start generated code --" |
113 | puts "public final static String[][] all_tab_names={"+all_tabs.join(",")+"};" |
114 | puts "public final static int[][] all_tab_stringids={"+all_tabs.join(",")+"};" |