Bug 148525 Display text is not found from library resource file
Steps to reproduce: 1.New a library, add a resource file "a.properties" 2.Add a label with text"abc", add a localization "k1=actuate" 3.New a report, extend the label 4.Preview the report Expected result: Report shows "actuate" in preview Actual result: Report shows "actuate" in layout, but "abc" in preview
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
/**
	 * handle the template result.
	 * 
	 * @param foreignContent
	 */
	protected void processTemplateContent( IForeignContent foreignContent )
	{
		assert IForeignContent.TEMPLATE_TYPE.equals( foreignContent
				.getRawType( ) );
		if ( foreignContent.getGenerateBy( ) instanceof TextItemDesign )
		{
			TextItemDesign design = (TextItemDesign) foreignContent
					.getGenerateBy( );
			String text = localize( design.getTextKey( ), design.getText( ) );
			String textType = design.getTextType( );
			TextTemplate template = parseTemplate( text );
			HashMap values = new HashMap( );
			if ( foreignContent.getRawValue( ) instanceof HashMap )
			{
				values = (HashMap) foreignContent.getRawValue( );
			}
			String result = executeTemplate( template, values );
			String rawType = ForeignContent.getTextRawType( textType, result );
			assert IForeignContent.HTML_TYPE.equals( rawType );
			foreignContent.setRawType( IForeignContent.HTML_TYPE );
			foreignContent.setRawValue( result );
		}
	}
	protected String getOutputFormat()
	{