Index: trunk/extensions/Translate/ffs/PhpVariables.php |
— | — | @@ -169,8 +169,9 @@ |
170 | 170 | |
171 | 171 | # Authors first |
172 | 172 | $matches = array(); |
173 | | - preg_match_all( '/^ * @author\s*(.*)\s*$/m', $data, $matches ); |
| 173 | + preg_match_all( '/^ \* @author\s+(.+)$/m', $data, $matches ); |
174 | 174 | $authors = $matches[1]; |
| 175 | + var_dump( $matches ); |
175 | 176 | |
176 | 177 | # Then messages |
177 | 178 | $matches = array(); |
— | — | @@ -211,6 +212,7 @@ |
212 | 213 | $key = stripcslashes( $key ); |
213 | 214 | |
214 | 215 | $value = $item->translation(); |
| 216 | + if ( $value === null ) continue; |
215 | 217 | $value = str_replace( TRANSLATE_FUZZY, '', $value ); |
216 | 218 | $value = addcslashes( $value, "'" ); |
217 | 219 | |