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

Change language

edited July 2009 in General
How can I change the report-builder language at run time?
Is it possible to include the needed resources for more than one language
into the exe-file?
Txs PMM

Comments

  • edited July 2009
    Hi Peter,

    Yes, take a look at the language section of the Developer's Guide on how to
    install and deploy separate languages. There is also good information in
    the ReadMe.doc file located in the \RBuilder\Languages\... directory.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2009
    Hallo Nico,
    I've seen that, but that covers mostly how to get and deploy new
    translation. I don't need that. I'm looking for a way to change language
    (one of the existing ones) at run-time (by customers choice from the EXE).
    I found the "report.language" property, but that only works if the customer
    has all the language DLL's installed - that is against our "single exe,
    xcopy install" approach. So I'm looking for a way to include the needed
    resources for more than one language into the exe-file.
    Regrads
    Peter


  • edited July 2009
    Hi Peter,

    During installation of ReportBuilder you need to select all languages you
    would like installed. Then on your user's machine you need to be sure all
    the proper .dll files are located in their \WINSYS\... directory so they
    will see an effect when they alter the Report.Language property.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2009
    Only one Language can be included in the .exe. The other Language will
    reside in resource modules.

    If you try to include more than one Language in the .exe, you will receive
    duplicate resource errors during linking.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2009
    I hope it is OK to have the language DLLs in the EXE directory so at least
    "XCopy deplyment" is OK.
    Txs Peter


  • edited October 2010
    Hello,

    is it possible to load the language-dlls neither from system32-directory nor
    form the application-directory, but from a sub-directory within the
    application-directory?

    We have a folder for all translation relevant files and would like to user
    the RBlanguage-dlls from there too.

    Regards,
    Mark

  • edited October 2010

    You would need to modify the TppResourceManager.LoadResourceModule method
    (ppUtils.pas). Currently the method uses only the resource module name, with
    no path info. You could add some code to add the path info.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    Hi Nard,

    thanks for your reply.

    I've added some code to the class to be able to set a path etc., but that
    leads to a problem with raIDE.dcu, which is using the TppResourceManager as
    well.
    Is it possible to get a fix for that? I.e. that you add the ability to set a
    path to TppResourceManager and send me the ppUtils.pas and the new
    raIDE.dcu?

    I think it would be a nice feature for the future in general, so it could be
    implemented into all new versions of ReportBuilder.

    Our current version is 11.08; Delphi 2007.

    Kind regards,
    Mark

  • edited October 2010
    You need to limit code modifications to the Implementation section of the
    unit. Do not modify the Interface section. Do not add new properties or
    methods etc.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2010
    I've already noticed, that this will cause trouble.
    The last message was more like a feature request for the future, since I
    think, that it would good for everyone to have the abililty to define a path
    for those dlls.

  • edited February 2016
    Am 19.10.2010 um 16:25 schrieb Nard Moseley (Digital Metaphors):

    Not sure if I'm up to date on this: is it still as described above or
    was anything implemented inbetween (available in RB17.01), which allows
    to specify a path for language DLLs?
  • edited February 2016
    Hi,

    For RB 17, nothing has been added, Windows will load the dlls from the usual
    places



    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.