/[schmitzm]/trunk/src/skrueger/i8n/Translation.java
ViewVC logotype

Diff of /trunk/src/skrueger/i8n/Translation.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 237 by alfonx, Mon Jul 27 11:56:14 2009 UTC revision 243 by alfonx, Tue Jul 28 12:40:08 2009 UTC
# Line 100  public class Translation extends HashMap Line 100  public class Translation extends HashMap
100    
101                  Translation.activeLang = newLang;                  Translation.activeLang = newLang;
102    
103                  fireChangeEvents();                  fireLocaleChangeEvents();
104    
105                  log.info("skrueger.i8n.Translation switched ActiveLang to " + newLang);                  log.info("skrueger.i8n.Translation switched ActiveLang to " + newLang);
106          }          }
# Line 264  public class Translation extends HashMap Line 264  public class Translation extends HashMap
264           * Informs all registered {@link PropertyChangeListener}s about a change of           * Informs all registered {@link PropertyChangeListener}s about a change of
265           * the the {@link Locale}.           * the the {@link Locale}.
266           */           */
267          public static void fireChangeEvents() {          public static void fireLocaleChangeEvents() {
268                  PropertyChangeEvent pce = new PropertyChangeEvent(new Translation(                  PropertyChangeEvent pce = new PropertyChangeEvent(new Translation(
269                                  new ArrayList<String>(), "fakeSource"), LOCALECHANGE_PROPERTY,                                  new ArrayList<String>(), "fakeSource"), LOCALECHANGE_PROPERTY,
270                                  null, getActiveLang());                                  null, getActiveLang());

Legend:
Removed from v.237  
changed lines
  Added in v.243

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26