In the attachement, there is slovak translation "dglobals.sk.po" for FPDOC tool. In order to use it on windows, I need to do also following changes (agains FPC 2.2.0):
in "dw_html.pp", line 604:
El['content'] := 'text/html; charset=iso-8859-1';
changed to:
El['content'] := 'text/html; charset=utf-8';To prevent requirement of intl/dglobals.sk.mo in current directory when using fpdoc, I have to change following:
in "dglobals.pp", line 1209:
mo := TMOFile.Create(Format('intl/dglobals.%s.mo', [Lang]));
Changed to:
mo := TMOFile.Create(GetEnvironmentVariable('FPDOC_INTL_PATH')+Format('intl/dglobals.%s.mo',
[Lang]));and I set environment variable FPDOC_INTL_PATH to C:\FPC\ where "dglobals.sk.mo" is in "C:\FPC\intl\dglobals.sk.mo" - but this is just simplest workaround, probably some extra switches will be nicer, e.g.:
fpdoc --html-charset="utf-8" --mo-path="C:\FPC\"
or something like that. Thanks.
