Index: gp-includes/formats/format_mo.php
===================================================================
--- gp-includes/formats/format_mo.php	(revision 0)
+++ gp-includes/formats/format_mo.php	(revision 0)
@@ -0,0 +1,47 @@
+<?php
+
+class GP_Format_MO {
+	
+	var $extension = 'mo';
+	
+	function print_exported_file( $project, $locale, $translation_set, $entries ) {
+		$mo = new MO();
+		// TODO: add more meta data in the project: language team, report URL
+		// TODO: last updated for a translation set
+		$mo->set_header( 'PO-Revision-Date', gmdate( 'Y-m-d H:i:s+0000' ) );
+		$mo->set_header( 'MIME-Version', '1.0' );
+		$mo->set_header( 'Content-Type', 'text/plain; charset=UTF-8' );
+		$mo->set_header( 'Content-Transfer-Encoding', '8bit' );
+		$mo->set_header( 'Plural-Forms', "nplurals=$locale->nplurals; plural=$locale->plural_expression;" );
+		$mo->set_header( 'X-Generator', 'GlotPress/' . gp_get_option('version') );
+
+		// force export only current translations
+		$filters['status'] = 'current';
+
+		foreach( $entries as $entry ) {
+			$mo->add_entry( $entry );
+		}
+		$mo->set_header( 'Project-Id-Version', $project->name );
+
+		$temp_file = tempnam( sys_get_temp_dir(), 'GlotPress-MO' );
+
+		$mo->export_to_file( $temp_file );
+
+		echo file_get_contents( $temp_file );
+
+		unlink( $temp_file );
+	}
+	
+	function read_translations_from_file( $file_name, $project = null ) {
+		$mo = new MO();
+		$result = $mo->import_from_file( $file_name );
+		return $result ? $mo : $result;
+	}
+	
+	function read_originals_from_file( $file_name ) {
+		return $this->read_translations_from_file( $file_name );
+	}
+
+}
+
+GP::$formats['mo'] = new GP_Format_MO;
\ No newline at end of file

Property changes on: gp-includes\formats\format_mo.php
___________________________________________________________________
Added: svn:eol-style
   + native

Index: gp-includes/formats/format_po.php
===================================================================
--- gp-includes/formats/format_po.php	(revision 528)
+++ gp-includes/formats/format_po.php	(working copy)
@@ -19,6 +19,12 @@
 		$filters['status'] = 'current';
 
 		foreach( $entries as $entry ) {
+			if ( false !== $fuzzy_pos = array_search( 'fuzzy', $entry->flags ) )
+				unset( $entry->flags[$fuzzy_pos] );
+
+			if ( $entry->translation_status == 'fuzzy' )
+				$entry->flags[] = 'fuzzy';
+
 			$po->add_entry( $entry );
 		}
 		$po->set_header( 'Project-Id-Version', $project->name );

