public static void copyDirectory(File sourceDirectory, File targetDirectory, String locale) throws Exception
	{
		if(!targetDirectory.exists())
		{
			targetDirectory.mkdirs();
		}
		File[] sourceFiles = sourceDirectory.listFiles();
		for(File sourceFile : sourceFiles)
		{
			File targetFile = new File(targetDirectory.getAbsolutePath() + File.separator + sourceFile.getName());
			if(sourceFile.isFile())
			{
				if(sourceFile.getName().equals("omap.yaml"))
					FileOperate.saveFile(targetFile, StringOperate.translateOmap(FileOperate.splitOmapFile(sourceFile), locale));
				else if( !sourceFile.getName().equals("omap-configuration.yaml") && sourceFile.getName().endsWith(".yaml"))
					FileOperate.saveFile(targetFile, StringOperate.tranlateYaml(FileOperate.initConfig("config\\config.txt"), FileOperate.splitYamlFile(sourceFile),locale));
				else if( sourceFile.getName().endsWith(".rb"))
					FileOperate.saveFile(targetFile, StringOperate.translateRuby(FileOperate.splitRubyFile(sourceFile), locale));
				else if( sourceFile.getName().equals(".project"))
					FileOperate.saveFile(targetFile, StringOperate.updateProject(FileOperate.splitProjectFile(sourceFile),locale));
				else
					copyFile(sourceFile,targetFile);
			}
			else if(sourceFile.isDirectory())
				copyDirectory(sourceFile,targetFile,locale);
		}
	}