Permalink
Browse files

Remove <Unknown> from localization author line

  • Loading branch information...
1 parent 041c93c commit bd7b8a62d1bcce64945c1e93e58915e6cd6b7147 @alecpl alecpl committed May 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/importgettext.sh
@@ -56,7 +56,8 @@ $%s = array();
EOF;
- $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $texts['_translator'], $varname);
+ $author = preg_replace('/\s*<Unknown>/i', '', $texts['_translator']);
+ $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $author, $varname);
foreach ($texts as $label => $value) {
if (is_array($value)) { var_dump($outfn, $label, $value); exit; }

0 comments on commit bd7b8a6

Please sign in to comment.