rem: switch ( type ) { case KMail::ContentsTypeCalendar: return i18n( "Calendar" ); case KMail::ContentsTypeTask: return i18n( "Tasks" ); case KMail::ContentsTypeJournal: return i18n( "Journal" ); case KMail::ContentsTypeNote: return i18n( "Notes" ); case KMail::ContentsTypeContact: return i18n( "Contacts" ); default: kdWarning( 5006 ) << "localizedDefaultFolderName requested for unknown type: " << type; break; } return "";
add: return i18n( s_folderContentsType[type].translatedName );
context: static QString localizedDefaultFolderName( KMail::FolderContentsType type ){  switch ( type ) {    case KMail::ContentsTypeCalendar:      return i18n( "Calendar" );   case KMail::ContentsTypeTask:      return i18n( "Tasks" );   case KMail::ContentsTypeJournal:      return i18n( "Journal" );   case KMail::ContentsTypeNote:      return i18n( "Notes" );   case KMail::ContentsTypeContact:      return i18n( "Contacts" );   default:      kdWarning( 5006 ) << "localizedDefaultFolderName requested for unknown type: " << type;      break;  }  return "";}