Bug 205709 Translation table is missed when report design is flattened
It happens when a report design with a localization property file and some library (otherwise it's not flattened!) is executed. Such report document has no transaltion table and then can not be localized. The problem is in org.eclipse.birt.report.model.util.ReportDesignSerializer#visitReportDesign which does not copy the translation table from ReportDesignSerializer#sourceDesign to ReportDesignSerializer#targetDesign.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/writer/DocumentUtilTest.java
assertEquals( "label 1.0", labelHandle.getProperty( "version" ) );
		
		LabelHandle labelHandle1 = (LabelHandle) designHandle.getBody( )
				.get( 1 );
		assertEquals( "2.0", labelHandle1.getProperty( "version" ) );
	}
	/**
	 * Writes the document to the internal output stream.
	 * 
	 * @throws Exception
	 */
	private void serializeDocument( ) throws Exception
	{
		os = new ByteArrayOutputStream( );
		ReportDesignSerializer visitor = new ReportDesignSerializer( );
		designHandle.getModule( ).apply( visitor );
		design = visitor.getTarget( );
		designHandle = (ReportDesignHandle) design.getHandle( design );
		designHandle.serialize( os );
	}
	/**
	 * Writes the document to the internal output stream.
	 * 
	 * @throws Exception
	 */
	private void serializeNonLineBreakDocument( ) throws Exception
	{
		os = new ByteArrayOutputStream( );
		DocumentUtil.serialize( designHandle, os );
	}