Hallo Fred,

vous ecrit au Tue, 15 Nov 2022 23:51:22 +0000:

[.mo files not loading on Windows]
> Yes it only happends on Windows.

EVEN compiled with "-dmse_dynpo -dusemo"? That's interesting, up to
even disconcerting.

> I have done more test on a Windows 10 machine and the array is not
> filled when a MO file is used. Imho, the problem is that the MO files
> are not recognized as they are on Windows. Sadly I have zero skin in
> PO to MO conversion.

Hmmm - this might well be the case. The FreePascal documentation for
their "fcl" says:

"17.2 Overview

 The gettext unit can be used to hook into the resource string mechanism
 of Free Pascal to provide translations of the resource strings, based
                                                                 ^^^^^
 on the GNU gettext mechanism. The unit provides a class (TMOFile (520))
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 to read the .mo files with localizations for various languages. ..."

Thus, it probabely requires installing some means to access this "GNU
gettext mechanism", like the "Cygnus" (AFAIR) toolkit for Windows,
where it should at least be installable on.
Not available on plain Windows, as it seems.

As an aside question, what are the lines 252 to 254 in "conflang.pas",

 {$ifndef windows}
  inttostr(gridlistfont.rowcount) + ' ' +
 {$endif}

used for? The statement part inserts a text representation of a grid
"rowcount", probabely the current row number, into the stringgrid named
"gridlistfont", but only NOT on Windows, where it only inserts the
value of "lang_settings[Ord(se_fontname)]", whatever this is. Why is
the number omitted for Windows? There seems to be no reason.

> But the good news is that using PO files, all works perfectly.

That's nice indeed, and if the above mentioned suspicion (unavailable
on plain Windows) applies, probabely all that's possible there.

> So, no problem, at the moment I will do this:
...
>  {$if (defined(windows)) or (not defined(usemo))}

Ok, that's a work around, as unsatisfying as it may be...

> Have a good night.

Thanks, same to you.

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to