summaryrefslogtreecommitdiffstats
path: root/svtools/source/control/calendar.cxx
diff options
context:
space:
mode:
authorMarcel Metz <mmetz@adrian-broher.net>2012-01-11 10:14:13 +0100
committerDavid Tardon <dtardon@redhat.com>2012-01-16 12:51:33 +0100
commita18123fb97e7c69a7fac6724aaa3a8e2440dae98 (patch)
tree36546217f7fe0f20c6f07e306d0ad68a880ac82e /svtools/source/control/calendar.cxx
parentReplaced DBG_ERRORFILE with SAL_INFO. (diff)
downloadcore-a18123fb97e7c69a7fac6724aaa3a8e2440dae98.tar.gz
core-a18123fb97e7c69a7fac6724aaa3a8e2440dae98.zip
Replaced DBG_ERRORFILE with SAL_INFO.
Diffstat (limited to 'svtools/source/control/calendar.cxx')
-rw-r--r--svtools/source/control/calendar.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 20dce27f1469..0cf3041ad2bd 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -27,6 +27,7 @@
************************************************************************/
+#include <rtl/oustringostreaminserter.hxx>
#include <rtl/strbuf.hxx>
#include <vcl/svapp.hxx>
#include <tools/table.hxx>
@@ -214,17 +215,13 @@ void Calendar::ImplInit( WinBits nWinStyle )
Application::GetAppLocaleDataWrapper().getLocale());
if (maCalendarWrapper.getUniqueID() != aGregorian)
{
-#ifdef DBG_UTIL
- rtl::OStringBuffer aMsg( "Calendar::ImplInit: No ``gregorian'' calendar available for locale ``");
- lang::Locale aLoc( Application::GetAppLocaleDataWrapper().getLocale());
- aMsg.append(rtl::OUStringToOString(aLoc.Language,
- RTL_TEXTENCODING_UTF8));
- aMsg.append('-');
- aMsg.append(rtl::OUStringToOString(aLoc.Country,
- RTL_TEXTENCODING_UTF8));
- aMsg.append("'' and other calendars aren't supported. Using en-US fallback.");
- DBG_ERRORFILE(aMsg.getStr());
+#ifdef SAL_LOG_INFO
+ lang::Locale aLoc( Application::GetAppLocaleDataWrapper().getLocale() );
#endif
+ SAL_INFO( "svtools", "Calendar::ImplInit: No ``gregorian'' calendar available for locale ``"
+ << aLoc.Language << "-" << aLoc.Country
+ << "'' and other calendars aren't supported. Using en-US fallback." );
+
/* If we ever wanted to support other calendars than Gregorian a lot of
* rewrite would be necessary to internally replace use of class Date
* with proper class CalendarWrapper methods, get rid of fixed 12
@@ -330,7 +327,7 @@ DayOfWeek Calendar::ImplGetWeekStart() const
eDay = SATURDAY;
break;
default:
- DBG_ERRORFILE("Calendar::ImplGetWeekStart: broken i18n Gregorian calendar (getFirstDayOfWeek())");
+ SAL_INFO( "svtools", "Calendar::ImplGetWeekStart: broken i18n Gregorian calendar (getFirstDayOfWeek())");
eDay = SUNDAY;
}
return eDay;