Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - [solved] some localization wrong in Version 18.2.0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] some localization wrong in Version 18.2.0

 Post Reply Post Reply
Author
Message
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (1) Thanks(1)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Topic: [solved] some localization wrong in Version 18.2.0
    Posted: 27 November 2017 at 12:42pm
*BUG* in WeekView without "MuliColumn-Mode".

WeekView with MuliColumn-Mode looks like this (correct):





But WeekView without MuliColumn-Mode looks like this (only english language):



So the Localation is wrong in Version 18.2.0 Ouch
[Sig removed by Admin: Signature can't exceed 40GB]
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2017 at 11:33pm
Hello Jebo,

Thank you for information. Localization was added in "MuliColumn-Mode" case for v17.3, but not in other places.

Problem was in one of PartDraw  method of CXTPCalendarOffice2013Theme
void CXTPCalendarOffice2013Theme::PartDraw(CWeekViewPart* pViewPart, CDC* pDC, CXTPCalendarWeekView* pWeekView)
{
......
            //CString strDate = dtDay.Format(_T("%A, %B %d"));
            
            CString strDayName = CXTPCalendarUtils::GetLocaleString(
                XTPToUIntChecked(LOCALE_SDAYNAME1 + ((dtDay.GetDayOfWeek() - 2 + 7) % 7)), 100);
            
            CString strMonthName = CXTPCalendarUtils::GetLocaleString(
                XTPToUIntChecked(LOCALE_SMONTHNAME1 + (dtDay.GetMonth() - 1)), 100);    
                
            CString strDate = strDayName + _T(", ") + strMonthName + dtDay.Format(_T(" %d"));
            PartDrawDayHeader(pViewPart, pDC, rcDay, nDayHeaderHeight, strDate, bIsCurrent, bIsSelected);
        }
    }
}

The fix will be available in next release.

Regards,
 Oleksandr Lebed
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2017 at 1:31am
void CXTPCalendarOffice2013Theme::DrawMultiDayArrowL(CDC* pDC, int nLeft, CRect& rcText, COleDateTime& dtDate, CFont& font)
{
.......
    CString strMonthName = CXTPCalendarUtils::GetLocaleString(
        XTPToUIntChecked(LOCALE_SABBREVMONTHNAME1 + (dtDate.GetMonth() - 1)), 100);

    CString strFrom;
    strFrom.LoadString(XTP_IDS_CALENDAR_FROM);
    strFrom += _T(" ");
    strFrom += strMonthName + dtDate.Format(_T(" %d"));
.......


void CXTPCalendarOffice2013Theme::DrawMultiDayArrowR(CDC* pDC, int nRight, CRect& rcText, COleDateTime& dtDate, CFont& font)
{
.......
    CString strMonthName = CXTPCalendarUtils::GetLocaleString(
        XTPToUIntChecked(LOCALE_SABBREVMONTHNAME1 + (dtDate.GetMonth() - 1)), 100);

    CString strTo;
    strTo.LoadString(XTP_IDS_CALENDAR_TO);
    strTo += _T(" ");
    strTo += strMonthName + dtDate.Format(_T(" %d"));
.........
Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2017 at 6:40am
Thank you. Will wait for next update.
[Sig removed by Admin: Signature can't exceed 40GB]
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.