[RBServer] - Problems with RBServer project

edited August 2016 in Server
Hi,

I'm creating a RBServer project and I am with the following problems:

- How to translate the filter windows to display the phrases in Portuguese?

- I'm using IE and Chrome browser, the two can't show accented words
(special a characters) UTF-8 some thing like that, how can I solve this
problem?



RBServer 16.02 version


Best regards.

Smokoveck

Comments

  • edited August 2016
    Hi Smokoveck,

    1. For the WebTier app, you can implement the WebModule OnCreate event to
    set the language using this code..

    uses
    ppTypes,
    ppLanguage,
    ppUtils;

    procedure TWebModule1.WebModuleCreate(Sender: TObject);
    begin
    ppResourceManager.SetLanguage(ltPortugueseBrazil,
    ppGetLanguageExtForName(ltPortugueseBrazil));

    end;


    2. What Delphi version are you using? For Unicode VCL, you can use
    TrsWebTier.ProcessWebRequestUTF8. However for the latest Delphi versions
    such as Delphi 10.1 Berlin, this is not necessary because WebBroker
    internally handles the encoding (as one would expect).



    Best regards,

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2016
    On 30/08/2016 14:20, Nard Moseley (Digital Metaphors) wrote:

    Hi,

    Nard thank you for tips.

    The problem with translator English for Portuguese the work on my
    machine that has the installed development environment ( Delphi +
    ReportBuilder ), but, when installed on a machine that does not have
    installed reportbuilder, not translated into Portuguese, I tried to copy
    the files .ptb for local directory of the application , but did not work.


    any suggestion?

    Best regards,

    Smokoveck
  • edited September 2016
    Hi Smokoveck,

    Two options:

    1. Deploy .ptb files to Windows\SysWOW64 (or for Windows 32-bit machine, use
    Windows\System32)

    2. Compile the application with Portuguese as the default language. To do
    this, copy *.res files from the RBuilder\Lang\Ptb folder to the RBuilder\Lib
    folder and then build the Delphi project.



    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.