summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-22 12:39:23 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-22 12:39:23 +0200
commitbd7b8a62d1bcce64945c1e93e58915e6cd6b7147 (patch)
treee08cc3d6bf7ea67fcca3be7a2ef9fb4bde48a94e
parent041c93ce0bc00cb6417ce2e4bdce2ed84d37f50a (diff)
Remove <Unknown> from localization author line
-rwxr-xr-xbin/importgettext.sh3
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; }