| | |
| | | } |
| | | else if (is_file($fn)) { |
| | | include($fn); |
| | | $texts = array_merge($texts, (array)$labels); |
| | | $texts = array_merge($texts, (array)$labels, (array)$messages); |
| | | } |
| | | |
| | | $GLOBALS['en_US'] = $texts; |
| | |
| | | } |
| | | |
| | | include($fn); |
| | | $texts = $labels ? $labels : $messages; |
| | | $texts = array_merge($labels, $messages); |
| | | |
| | | // write header |
| | | $header = <<<EOF |
| | |
| | | "Content-Transfer-Encoding: 8bit\\n" |
| | | EOF; |
| | | |
| | | $out = sprintf($header, $srcname, $product, $is_pot ? "POT-Creation-Date" : "PO-Revision-Date", date('c'), $lang); |
| | | $out = sprintf($header, $srcname, $product, $is_pot ? "POT-Creation-Date" : "PO-Revision-Date", date('c'), $shortlang ? $shortlang : $lang); |
| | | $out .= "\n"; |
| | | |
| | | $messages = array(); |
| | |
| | | return rtrim($out); |
| | | } |
| | | |
| | | ?> |
| | | ?> |