[fpc-devel] fpcdoc slovak translation

Dusan Halicky dusan.halicky at gmail.com
Wed May 28 10:34:06 CEST 2008

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',

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dglobals.sk.po
Type: application/octet-stream
Size: 3436 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20080528/3b463313/attachment.obj>

More information about the fpc-devel mailing list