- Timestamp:
- 07/02/09 13:38:44 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/java_source/src/nu/fw/jeti/util/Preferences.java
r1064 r1070 104 104 { 105 105 /** 106 * @ author(s) : Alexandre Correia - alexandrecorreia@celepar.pr.gov.br107 * @ brief : Adicionado as traduções para os items do menu ( presença )106 * @Author(s) : Alexandre Correia - alexandrecorreia@celepar.pr.gov.br 107 * @description : Adicionado as traducoes para os items do menu ( presenca ) 108 108 */ 109 109 110 110 List tempList = new ArrayList(10); 111 tempList.add( "Disponível");112 tempList.add( "Livre p/ Chat");111 tempList.add(I18N.gettext("initMessages.Available")); 112 tempList.add(I18N.gettext("initMessages.Free_for_Chat")); 113 113 mapMessages.put("chat", tempList); 114 114 mapMessages.put("available", tempList); 115 115 tempList = new ArrayList(10); 116 tempList.add( "Em reunião");117 tempList.add( "Ocupado");118 tempList.add( "Trabalhando");116 tempList.add(I18N.gettext("initMessages.In_a_meeting")); 117 tempList.add(I18N.gettext("initMessages.Busy")); 118 tempList.add(I18N.gettext("initMessages.Working")); 119 119 mapMessages.put("dnd", tempList); 120 120 tempList = new ArrayList(10); 121 tempList.add( "No telefone");122 tempList.add( "Volto Logo");121 tempList.add(I18N.gettext("initMessages.On_the_phone")); 122 tempList.add(I18N.gettext("initMessages.Be_right_back")); 123 123 mapMessages.put("away", tempList); 124 124 tempList = new ArrayList(10); 125 tempList.add( "Férias");126 tempList.add( "Em casa");127 tempList.add( "Ausente");125 tempList.add(I18N.gettext("initMessages.On_vacation")); 126 tempList.add(I18N.gettext("initMessages.Gone_home")); 127 tempList.add(I18N.gettext("initMessages.Extend_Away")); 128 128 mapMessages.put("xa", tempList); 129 129 … … 145 145 { 146 146 mapMessages.putAll(jetiExtension.getMessages()); 147 //removed save message version check because it gives problems when148 //the server has removed the messages so there is no version149 // if(jetiExtension.getXmlVersion()==null)150 // {//on extension not found set save to true to try to overwrite151 // save = true;152 // }153 // else154 // {155 // try156 // {157 // //save if loaded xml version <= own xmlversion (backwards compatible)158 // save = (Integer.parseInt(jetiExtension.getXmlVersion().substring(1)) <= Integer.parseInt(JetiPrivateExtension.XML_VERSION.substring(1)));159 // }160 // catch (Exception e)161 // {162 // } //exception not saven163 // }164 147 } 165 148 … … 172 155 { 173 156 mapMessages.put(convertPresenceKey(key), value); 174 //if(save)backend.savePreferences(map,mapMessages);175 157 } 176 158
Note: See TracChangeset
for help on using the changeset viewer.