summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-22 12:39:23 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-23 20:04:58 +0200
commit6e7299422217fe543c113ffb1fc9cdbe24d95d31 (patch)
tree9c23851728ed13781bd2c6e3ca63e4d75f0d3cab /bin
parent550bf0d14b5ab70beb088611cd2fc1d239c104e3 (diff)
Remove <Unknown> from localization author line
Conflicts: bin/importgettext.sh
Diffstat (limited to 'bin')
-rwxr-xr-xbin/importgettext.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/importgettext.sh b/bin/importgettext.sh
index d29a318bd..cda1f6e48 100755
--- a/bin/importgettext.sh
+++ b/bin/importgettext.sh
@@ -54,14 +54,14 @@ foreach ($out as $outfn => $texts) {
+-----------------------------------------------------------------------+
| Author: %-62s|
+-----------------------------------------------------------------------+
- @version %s$
*/
$%s = array();
EOF;
- $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $texts['_translator'], '$Id', $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; }