Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove <Unknown> from localization author line

  • Loading branch information...
commit bd7b8a62d1bcce64945c1e93e58915e6cd6b7147 1 parent 041c93c
@alecpl alecpl authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  bin/importgettext.sh
View
3  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; }
Please sign in to comment.
Something went wrong with that request. Please try again.