Print Page | Close Window

[solved] some localization wrong in Version 18.2.0

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=23507
Printed Date: 23 April 2024 at 10:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] some localization wrong in Version 18.2.0
Posted By: Jebo
Subject: [solved] some localization wrong in Version 18.2.0
Date 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]



Replies:
Posted By: olebed
Date 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


Posted By: olebed
Date 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"));
.........


Posted By: Jebo
Date Posted: 29 November 2017 at 6:40am
Thank you. Will wait for next update.


-------------
[Sig removed by Admin: Signature can't exceed 40GB]



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net