Revision 41531 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/MapControlLibrary.java

View differences:

MapControlLibrary.java
27 27
 */
28 28
package org.gvsig.fmap.mapcontrol;
29 29

  
30
import java.util.Locale;
31 30

  
32 31
import org.gvsig.fmap.IconThemeHelper;
33 32
import org.gvsig.fmap.mapcontext.MapContextLibrary;
34 33
import org.gvsig.fmap.mapcontrol.swing.dynfield.factory.GeometryDynFieldComponentFactory;
35
import org.gvsig.i18n.Messages;
34
import org.gvsig.tools.ToolsLocator;
35
import org.gvsig.tools.i18n.I18nManager;
36 36
import org.gvsig.tools.library.AbstractLibrary;
37 37
import org.gvsig.tools.library.LibraryException;
38 38
import org.gvsig.tools.service.spi.ServiceManager;
......
53 53

  
54 54
	@Override
55 55
	protected void doInitialize() throws LibraryException {
56
		if (!Messages.hasLocales()) {
57
			Messages.addLocale(Locale.getDefault());
58
		}
59
		Messages.addResourceFamily(
56
		I18nManager i18nManager = ToolsLocator.getI18nManager();
57
		i18nManager.addResourceFamily(
60 58
				"org.gvsig.fmap.mapcontrol.i18n.text",
61 59
				MapControlLibrary.class.getClassLoader(),
62
				MapControlLibrary.class.getClass().getName());
60
				MapControlLibrary.class.getClass().getName()
61
                );
63 62
	}
64 63
	
65 64
	@Override

Also available in: Unified diff