(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.57 and 1.58

version 1.57, 2008/07/02 08:39:20 version 1.58, 2008/08/12 17:35:08
Line 227 
Line 227 
     int32_t msgLen = 0;     int32_t msgLen = 0;
  
     const UChar* msg = ures_getStringByKey(     const UChar* msg = ures_getStringByKey(
         resbundl, (const char*)parms.msg_id.getCString(), &msgLen, &status);          resbundl, parms.msg_id, &msgLen, &status);
  
     if (U_FAILURE(status))     if (U_FAILURE(status))
     {     {
Line 415 
Line 415 
 String MessageLoader::getMessage(MessageLoaderParms& parms) String MessageLoader::getMessage(MessageLoaderParms& parms)
 { {
     PEG_METHOD_ENTER(TRC_L10N, "MessageLoader::getMessage");     PEG_METHOD_ENTER(TRC_L10N, "MessageLoader::getMessage");
     PEG_TRACE_STRING(TRC_L10N, Tracer::LEVEL4, "Message ID = " + parms.msg_id);      PEG_TRACE((TRC_L10N, Tracer::LEVEL4, "Message ID = %s", parms.msg_id));
  
     String msg;     String msg;
  
Line 761 
Line 761 
 } }
  
 MessageLoaderParms::MessageLoaderParms( MessageLoaderParms::MessageLoaderParms(
     const String& id,      const char* id,
     const String& msg,      const char* msg,
     const Formatter::Arg& arg0_,     const Formatter::Arg& arg0_,
     const Formatter::Arg& arg1_,     const Formatter::Arg& arg1_,
     const Formatter::Arg& arg2_,     const Formatter::Arg& arg2_,
Line 790 
Line 790 
 } }
  
 MessageLoaderParms::MessageLoaderParms( MessageLoaderParms::MessageLoaderParms(
     const String& id,      const char* id,
       const char* msg)
   {
       msg_id = id;
       default_msg = msg;
       _init();
   }
   
   MessageLoaderParms::MessageLoaderParms(
       const char* id,
     const String& msg)     const String& msg)
 { {
     msg_id = id;     msg_id = id;
Line 799 
Line 808 
 } }
  
 MessageLoaderParms::MessageLoaderParms( MessageLoaderParms::MessageLoaderParms(
     const String& id,      const char* id,
     const String& msg,      const char* msg,
     const Formatter::Arg& arg0_)     const Formatter::Arg& arg0_)
 { {
     msg_id = id;     msg_id = id;
Line 810 
Line 819 
 } }
  
 MessageLoaderParms::MessageLoaderParms( MessageLoaderParms::MessageLoaderParms(
     const String& id,      const char* id,
     const String& msg,      const char* msg,
     const Formatter::Arg& arg0_,     const Formatter::Arg& arg0_,
     const Formatter::Arg& arg1_)     const Formatter::Arg& arg1_)
 { {
Line 823 
Line 832 
 } }
  
 MessageLoaderParms::MessageLoaderParms( MessageLoaderParms::MessageLoaderParms(
     const String& id,      const char* id,
     const String& msg,      const char* msg,
     const Formatter::Arg& arg0_,     const Formatter::Arg& arg0_,
     const Formatter::Arg& arg1_,     const Formatter::Arg& arg1_,
     const Formatter::Arg& arg2_)     const Formatter::Arg& arg2_)
Line 838 
Line 847 
 } }
  
 MessageLoaderParms::MessageLoaderParms( MessageLoaderParms::MessageLoaderParms(
     const String& id,      const char* id,
     const String& msg,      const char* msg,
     const Formatter::Arg& arg0_,     const Formatter::Arg& arg0_,
     const Formatter::Arg& arg1_,     const Formatter::Arg& arg1_,
     const Formatter::Arg& arg2_,     const Formatter::Arg& arg2_,
Line 854 
Line 863 
     arg3 = arg3_;     arg3 = arg3_;
 } }
  
 MessageLoaderParms::MessageLoaderParms(  
     const char* id,  
     const char* msg)  
 {  
     msg_id = id;  
     default_msg = msg;  
     _init();  
 }  
   
 MessageLoaderParms::MessageLoaderParms(  
     const char* id,  
     const char* msg,  
     const String& arg0_)  
 {  
     msg_id = id;  
     default_msg = msg;  
     _init();  
     arg0 = arg0_;  
 }  
   
 MessageLoaderParms::MessageLoaderParms(  
     const char* id,  
     const char* msg,  
     const String& arg0_,  
     const String& arg1_)  
 {  
     msg_id = id;  
     default_msg = msg;  
     _init();  
     arg0 = arg0_;  
     arg1 = arg1_;  
 }  
   
 void MessageLoaderParms::_init() void MessageLoaderParms::_init()
 { {
     useProcessLocale = false;     useProcessLocale = false;
Line 916 
Line 892 
     processLoc = (useProcessLocale) ? "true" : "false";     processLoc = (useProcessLocale) ? "true" : "false";
     threadLoc = (useThreadLocale) ? "true" : "false";     threadLoc = (useThreadLocale) ? "true" : "false";
  
     s.append("msg_id = " + msg_id + "\n");      s.append("msg_id = ");
       s.append(msg_id);
       s.append("\n");
     s.append("default_msg = " + default_msg + "\n");     s.append("default_msg = " + default_msg + "\n");
     s.append("msg_src_path = " + msg_src_path + "\n");     s.append("msg_src_path = " + msg_src_path + "\n");
     s.append("acceptlanguages = " +     s.append("acceptlanguages = " +


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2