[fpc-devel] fpcdoc slovak translation

Michael Van Canneyt michael at freepascal.org
Wed May 28 10:35:36 CEST 2008



On Wed, 28 May 2008, Dusan Halicky wrote:

> 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\"

Good suggestion. I will implement these options tonight.

Michael.



More information about the fpc-devel mailing list