Ignore:
Timestamp:
06/30/09 18:05:35 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #474 - Arquivos modificados para a tradução do Applet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/java_source/src/nu/fw/jeti/util/Preferences.java

    r1014 r1064  
    6565        { 
    6666                Preferences.backend = backend; 
    67  
    6867                InputStream data = null; 
    6968 
     
    7776                        addPreferences(parser, data, defaults); 
    7877                } 
    79                 catch(IOException ex) 
    80                 { 
    81                         // Do Nothing 
    82                         //javax.swing.JOptionPane.showMessageDialog(null,  
    83                         //              "Comentar esta linha em Preferences.java\n" + "\nERRO : \n" + ex.getMessage() + "\n" + ex + "\n" ); 
    84                 } 
     78                catch(IOException ex){} 
    8579 
    8680                // Initialize presence messages if none have been specified 
     
    9185        } 
    9286 
    93     private void addPreferences(SAXParser parser, InputStream data,Map store) { 
    94         try { 
     87    private void addPreferences(SAXParser parser, InputStream data,Map store) 
     88    { 
     89        try 
     90        { 
    9591            parser.parse(data,new PreferencesHandler(store)); 
    96         } catch (SAXException ex) { 
     92        } 
     93        catch (SAXException ex) 
     94        { 
    9795            ex.printStackTrace(); 
    98         } catch (IOException ex) { 
     96        } 
     97        catch (IOException ex) 
     98        { 
    9999            ex.printStackTrace(); 
    100100        } 
     
    109109                 
    110110                List tempList = new ArrayList(10); 
    111                 tempList.add("Disponível"); 
    112                 tempList.add("Livre p/ Chat"); 
    113                 mapMessages.put("chat", tempList); 
    114                 mapMessages.put("available", tempList); 
    115                 tempList = new ArrayList(10); 
    116                 tempList.add("Em reunião"); 
    117                 tempList.add("Ocupado"); 
    118                 tempList.add("Trabalhando"); 
    119                 mapMessages.put("dnd", tempList); 
    120                 tempList = new ArrayList(10); 
    121                 tempList.add("No telefone"); 
    122                 tempList.add("Volto Logo"); 
    123                 mapMessages.put("away", tempList); 
    124                 tempList = new ArrayList(10); 
    125                 tempList.add("Férias"); 
    126                 tempList.add("Em casa"); 
    127                 tempList.add("Ausente"); 
    128                 mapMessages.put("xa", tempList); 
     111                        tempList.add("Disponível"); 
     112                        tempList.add("Livre p/ Chat"); 
     113                        mapMessages.put("chat", tempList); 
     114                        mapMessages.put("available", tempList); 
     115                        tempList = new ArrayList(10); 
     116                        tempList.add("Em reunião"); 
     117                        tempList.add("Ocupado"); 
     118                        tempList.add("Trabalhando"); 
     119                        mapMessages.put("dnd", tempList); 
     120                        tempList = new ArrayList(10); 
     121                        tempList.add("No telefone"); 
     122                        tempList.add("Volto Logo"); 
     123                        mapMessages.put("away", tempList); 
     124                        tempList = new ArrayList(10); 
     125                        tempList.add("Férias"); 
     126                        tempList.add("Em casa"); 
     127                        tempList.add("Ausente"); 
     128                        mapMessages.put("xa", tempList); 
     129                 
    129130                return mapMessages; 
    130131        } 
Note: See TracChangeset for help on using the changeset viewer.