(file) Return to MessageLoader.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/MessageLoader.cpp between version 1.56 and 1.57

version 1.56, 2008/06/19 17:57:01 version 1.57, 2008/07/02 08:39:20
Line 252 
Line 252 
     UErrorCode status = U_ZERO_ERROR;     UErrorCode status = U_ZERO_ERROR;
     parms._resbundl = ures_open((const char*)resbundl_path_ICU, NULL, &status);     parms._resbundl = ures_open((const char*)resbundl_path_ICU, NULL, &status);
  
     if (status == U_USING_FALLBACK_WARNING)  
     {  
         const char* rbLocale = ures_getLocale(  
             reinterpret_cast<UResourceBundle*>(parms._resbundl), &status);  
         PEG_TRACE((TRC_L10N, Tracer::LEVEL4,  
             "Requested default locale, fallback locale \"%s\" returned. "  
                 "Reverting back to root bundle.", rbLocale));  
   
         ures_close(reinterpret_cast<UResourceBundle*>(parms._resbundl));  
         parms._resbundl = NO_ICU_MAGIC;  
   
         UErrorCode status = U_ZERO_ERROR;  
         parms._resbundl =  
             ures_open((const char*)resbundl_path_ICU, "", &status);  
     }  
   
     if (U_SUCCESS(status))     if (U_SUCCESS(status))
     {     {
         const char* rbLocale = ures_getLocale(         const char* rbLocale = ures_getLocale(


Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2