diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-22 12:39:23 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-22 12:39:23 +0200 |
commit | bd7b8a62d1bcce64945c1e93e58915e6cd6b7147 (patch) | |
tree | e08cc3d6bf7ea67fcca3be7a2ef9fb4bde48a94e | |
parent | 041c93ce0bc00cb6417ce2e4bdce2ed84d37f50a (diff) |
Remove <Unknown> from localization author line
-rwxr-xr-x | bin/importgettext.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/importgettext.sh b/bin/importgettext.sh index a63ac0054..9ffb71d04 100755 --- a/bin/importgettext.sh +++ b/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; } |