Changeset 149 for trunk/savebmp.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/savebmp.cpp

    r137 r149  
    580580        lang = getenv("LANG");
    581581        bUniCodeFont = FALSE;
    582         if (!strnicmp(lang, "ru", 2)) {
     582        if (pset->GetLangID() == RU) {
    583583            hmq = WinQueryWindowULong( hwnd, QWL_HMQ);
    584584            WinSetCp(hmq, 866);
    585585            //bUniCodeFont = TRUE;
    586586        }
    587         else if (pset->GetLangID() == CZ || !strnicmp(lang, "pl", 2)) {
     587        else if (pset->GetLangID() == CZ || pset->GetLangID() == PL) {
    588588            hmq = WinQueryWindowULong( hwnd, QWL_HMQ);
    589589            WinSetCp(hmq, 852);
    590             bUniCodeFont = TRUE;
     590            //bUniCodeFont = TRUE;
    591591        }
    592592        else {
Note: See TracChangeset for help on using the changeset viewer.