Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Default language

edited November 2003 in General
Hi,

How I can use Brazilian-portuguese as default language (lgDefault) ?

Currently I'm setting ppReport.DefaultLanguage to 'lgPortugueseBrazil' and
using the respectives language DLLs (*.ptb) but this sucks. There are
another, automatic way ?

RB 7.02, D6.0 RTL 3.

Fabio Lindner

Comments

  • edited November 2003
    Hi Fabio,

    Note that all this information is located in the
    \RBuilder\Languages\ReadMe.doc file.
    Changing the Default Language
    You can change the default language used by ReportBuilder by copying the
    appropriate language files from the RBuilder\Languages directory to the
    RBuilder\Lib and Windows\System directories respectively. For the DLL files
    make sure you change the extension to .dft. The following copy commands
    issued at the MS-DOS prompt (from within the RBuilder\Languages\sve
    directory) will change the default language to Swedish:

    copy rbPrint.res c:\progra~1\borland\delphi5\ rbuild~1\lib

    copy rbIDE.res c:\progra~1\borland\delphi5\ rbuild~1\lib

    copy rbDADE.res c:\progra~1\borland\delphi5\ rbuild~1\lib

    copy rbRAP.res c:\progra~1\borland\delphi5\ rbuild~1\lib

    copy rbPrint.sve c:\windows\system\rbPrint.dft

    copy rbIDE.sve c:\windows\system\rbIDE.dft

    copy rbDADE.sve c:\windows\system\rbDADE.dft

    copy rbRAP.sve c:\windows\system\rbRAP.dft

    Note: If you are using Windows NT you will need to copy the 'dft' files to
    WinNT\System32.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    Hello, Nico.

    files

    I know that, I already did it and it works only when I run my app with Win2k
    or WinXP.
    I can't make it work with Win98 using the doc.

    Check-list:

    1. Compile language dlls. [ok]
    2. Rename *.ptb to *.dft. [ok]
    3. Copy them to c:\window\system. [ok]
    4. Run preview with RB* packages. [failed - default to english]
    5. Run preview without any packages. [ok] <==== note this !

    I'm trying to understand what's wrong.

    Any other ideas ?

    TIA

    ---
    Fabio Lindner
  • edited November 2003
    Hi Fabio,

    Running ReportBuilder with or without packages should not make a difference
    which language is set. The only reason the preview would go back to the
    default would be that it cannot find the correct files needed to make the
    translation. Make sure all needed files are located in the correct place
    (ie. \Windows\System\... and \RBuilder\Lib\...). Also, it is possible to
    set the default language to something other than english during the
    installation process. This will replace the default language resource files
    in the \Lib\.. directory with the resource files of a different language.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.