Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-05

fpcdoc slovak translation

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dusan Halicky

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.

Reply by email

Michael Van Canneyt
to Dusan Halicky
Dusan Halicky wrote 23 lines
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.

Reply by email