From 041c93ce0bc00cb6417ce2e4bdce2ed84d37f50a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 22 May 2012 12:31:37 +0200 Subject: Removed $Id$ --- bin/importgettext.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'bin/importgettext.sh') diff --git a/bin/importgettext.sh b/bin/importgettext.sh index aab61013b..a63ac0054 100755 --- a/bin/importgettext.sh +++ b/bin/importgettext.sh @@ -1,7 +1,6 @@ #!/usr/bin/env php | +-----------------------------------------------------------------------+ - - $Id$ - */ define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); @@ -39,7 +35,7 @@ else if (is_file($srcdir)) { foreach ($out as $outfn => $texts) { $lang = preg_match('!/([a-z]{2}(_[A-Z]{2})?)[./]!', $outfn, $m) ? $m[1] : ''; $varname = strpos($outfn, 'messages.inc') !== false ? 'messages' : 'labels'; - + $header = << $texts) { +-----------------------------------------------------------------------+ | Author: %-62s| +-----------------------------------------------------------------------+ - @version %s$ */ $%s = array(); EOF; - $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $texts['_translator'], '$Id', $varname); + $output = sprintf($header, $lang, $varname.'.inc', date('Y'), $texts['_translator'], $varname); foreach ($texts as $label => $value) { if (is_array($value)) { var_dump($outfn, $label, $value); exit; } @@ -131,7 +126,7 @@ function import_file($fn) $out[$file][$label] = $msgstr; } } - + $msgid = null; $msgstr = ''; $dests = array(); @@ -167,7 +162,7 @@ function import_file($fn) $out[$file]['_translator'] = $translator; } } - + return $language ? $out : array(); } -- cgit v1.2.3