Changeset 149 for trunk/settings.cpp


Ignore:
Timestamp:
Dec 24, 2021, 10:25:17 PM (4 years ago)
Author:
Gregg Young
Message:

Get Russian translation working. Fix it so a for example Spanish translation could be used on a Russian system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/settings.cpp

    r148 r149  
    342342                            MPFROM2SHORT (BKA_MAJOR | BKA_AUTOPAGESIZE,
    343343                                          BKA_LAST));
    344             if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) {
     344            //if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) {
    345345                UniChar     target[300];
    346346                CHAR       ucLangStr[300];
     
    378378                if (uconv_object1207)
    379379                    UniFreeUconvObject(uconv_object1207);
    380             }
     380            //}
    381381            else
    382382                WinSendMsg (hwndNB, BKM_SETTABTEXT,
     
    468468    {
    469469    case WM_INITDLG:
     470        {
    470471#ifdef _DOLOGDEBUG_
    471472        LogDebug( "DialogProcedure: start WM_INITDLG" );
     
    477478        CHAR ucFont[FACESIZE];
    478479
    479         if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) {
     480        //if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) {
    480481           UniChar     target[300];
    481482           CHAR       ucLangStr[300];
    482483           UconvObject     uconv_object866 = NULL;
    483            UconvObject     uconv_object860 = NULL;
    484484           UconvObject     uconv_object852 = NULL;
    485485           UconvObject     uconv_object1207 = NULL;
    486486           UconvObject     uconv_object850 = NULL;
    487487           HAB hab;
    488            CHAR ucFont[FACESIZE];
     488           //CHAR ucFont[FACESIZE];
    489489
    490490           UniCreateUconvObject((UniChar *)L"IBM-852", &uconv_object852);
     
    541541           HMQ hmq = WinQueryWindowULong( hwnd, QWL_HMQ);
    542542           WinSetCp(hmq, 1207);
    543            strcpy(ucFont, "9.Times New Roman MT 30");
    544            WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
    545         }
    546         else if (g_installer) {
    547         strcpy(ucFont, "9.WarpSans");
    548         WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
    549         }
     543           if (pset->GetLangID() == CZ || pset->GetLangID() == RU || pset->GetLangID() == PL) {
     544               strcpy(ucFont, "9.Times New Roman MT 30");
     545               WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
     546           }
     547        //}
     548           else if (g_installer) {
     549               strcpy(ucFont, "9.WarpSans");
     550               WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont);
     551           }
    550552        return MRESULT (FALSE);
    551 
     553        }
    552554    case WM_COMMAND:
    553555        switch (SHORT1FROMMP (mp1))
Note: See TracChangeset for help on using the changeset viewer.