Update calendar.cpp

Make the compiler happy when building with localization disabled.