}
// ------------------------------------------------------------------
private void setI18n()
{
DrawSWFConfig config = DrawSWFConfig.getInstance();
if( config.getProperty("pluginpath") == null )
{
String path = System.getProperty("user.home")+ File.separator + ".drawswf"+File.separator+"plugin";
config.setProperty("pluginpath", path);
try
{
File dir = new File(path);
if( ! dir.exists() )
{
dir.mkdirs();
}
config.save();
}
catch( FileNotFoundException e )
{
e.printStackTrace();
}
catch(IOException e)
{
e.printStackTrace();
}
}
Locale locale = new Locale(config.getProperty("language") );
international_ = ResourceBundle.getBundle("DrawSWFBundle", locale );
}