Index: trunk/extensions/Translate/CreateMessageIndex.php |
— | — | @@ -13,8 +13,11 @@ |
14 | 14 | $messages = $g->getDefinitions(); |
15 | 15 | $id = $g->getId(); |
16 | 16 | |
17 | | - |
18 | | - echo "Working with $id\n"; |
| 17 | + if ( is_array( $messages ) ) { |
| 18 | + echo "Working with $id\n"; |
| 19 | + } else { |
| 20 | + echo "Something wrong with $id... skipping\n"; |
| 21 | + } |
19 | 22 | foreach ( $messages as $key => $data ) { |
20 | 23 | # Force all keys to lower case, because the case doesn't matter and it is |
21 | 24 | # easier to do comparing when the case of first letter is unknown, because |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -2123,6 +2123,15 @@ |
2124 | 2124 | public function setLabel( $label ) { |
2125 | 2125 | $this->label = $label; |
2126 | 2126 | } |
| 2127 | + |
| 2128 | + /** |
| 2129 | + * Sets meta status for this group. |
| 2130 | + * |
| 2131 | + * @param $value Boolean value |
| 2132 | + */ |
| 2133 | + public function setMeta( $value ) { |
| 2134 | + $this->meta = (bool) $value; |
| 2135 | + } |
2127 | 2136 | } |
2128 | 2137 | |
2129 | 2138 | class MessageGroups { |