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

Putting the application resources and RB resources in one dll

edited June 2007 in General
Using Delphi 7 and 10.06 Enterprise

I have a project and I need to create several different language dlls using
the Delphi 7 Project/Languages/Add option. I need to translate the Report
Builder Print Preview window and Printer Selection dialogs as these will be
visible to the end user. Is it possible to add certain element of Report
Builder to my project so that when the resource dll is created the RB
strings and dialogs will be held in this dll ? One of the languages I need
to support is Russian. I downloaded the translation for this from your
website but although the site says that "Instructions on how to install
these translations are included in the download", there are no instructions.

Ian Munro

Comments

  • edited June 2007
    Hi Ian,

    It is possible to compile one language resource into your main application.
    If you would like to provide other translations in your product, you will
    need to deploy the language .dll along with your application. Take a look
    at the ReadMe.doc file located in the \RBuilder\Languages directory and in
    the Developer's Guide for language deployment instructions.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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

    By using the Language Translation application and following the "Deploy"
    section of the RB Developer's guide I have been able to run my app with
    Russian translations. My question now is that I need to create several
    "custom" languages that RB doesn't ship with. I would rather each dll end in
    a more appropriate extension (eg: ".rus" for Russian). At the moment it has
    to be ".cst" so that the report control will pick it up when its language
    property is set to "lgCustom". Is there a way to modify RB so that it can
    use dlls with different names ?



  • edited June 2007
    Hi Ian,

    ReportBuilder only supports adding one custom translation to a reporting
    application. Which languages would you like to have included in your app?
    This is something we will consider enhancing for a later release.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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

    I need Russian and Hungarian.

    I'm quite happy to play around with the RB source to give me the required
    functionality. Are you able to point me to the Delphi units that I would
    need to look at ?

    Ian


  • edited June 2007
    Hi Ian,

    This may be possible however it will be difficult to add more languages to
    RB without altering the interface section of some source files. This will
    prevent the use of RAP.

    As a staring point take a look at the TppLanguageType enumerated type
    located in the ppTypes.pas file. Then see the ppGetLangLocaleID routine
    inside the ppUtils.pas file.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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

    I can probably live with problem of having different languages all
    ending with ".cst" as I now have a more pressing problem. My application has
    a resource dll for its strings and forms. This dll is loaded using the
    Windows LoadLibraryEx function. The problem I now have is that do this seems
    to remove the links between Report Builder and its resources. Is there a
    command I can call to reinstate the settings that RB needs after I load my
    apps resource dll ?

    Ian

    NB: With reference to a previous mail I can now reproduce the scenario were
    RB hangs in Windows Server 2003. I will investigate this further.


  • edited June 2007
    Hi Ian,

    -----------------------------------------------
    Tech Tip: ReportBuilder and
    Delphi's Translation Tools
    -----------------------------------------------

    To use the Delphi Language Translation support with ReportBuilder you need
    to add the ReportBuilder .dfm files that are used by your application to the
    language resource DLL.

    When you run the Resource DLL Wizard there is a screen that gives you the
    opportunity to add .DFM files.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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