Ignore:
Timestamp:
05/30/09 17:10:16 (3 years ago)
Author:
octorian
Message:

Merge of 1.1 changes from r445 (Manual language selection, initial Vietnamese translation (very rough), QP decoding fix, and Unicode normalizer integration with mappings for Vietnamese)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/LogicMail.java

    r405 r446  
    3636 
    3737import net.rim.blackberry.api.homescreen.HomeScreen; 
     38import net.rim.device.api.i18n.Locale; 
    3839import net.rim.device.api.notification.NotificationsConstants; 
    3940import net.rim.device.api.notification.NotificationsManager; 
     
    8485                // Load the configuration 
    8586                MailSettings.getInstance().loadSettings(); 
    86          
     87            // Set the language, if configured 
     88            String languageCode = 
     89                MailSettings.getInstance().getGlobalConfig().getLanguageCode(); 
     90            if(languageCode != null) { 
     91                try { 
     92                    Locale.setDefault(Locale.get(languageCode)); 
     93                } catch (Exception e) { } 
     94            } 
     95         
    8796                // Log application startup information 
    8897                if(EventLogger.getMinimumLevel() >= EventLogger.INFORMATION) { 
Note: See TracChangeset for help on using the changeset viewer.