App Connect

 View Only
  • 1.  ACE Console - how to set the user language?

    Posted Sun December 04, 2022 08:11 AM
    https://www.ibm.com/docs/en/app-connect/12.0?topic=administration-app-connect-enterprise-commands
    ACE Console - how to set the user language?
    I am looking for the command, or environment variable which is able to change the output / user language.
    The Enterprise Toolkit and also the default Microsoft Command prompt are talking English; so does the operating system...

    Folder: MQSI_CONSOLE_NLSPATH
    When I renamed BIPmsgs_fr.properties into BIPmsgs_fr.properties.old - it stopped writing French and spoke English.
    Rather then disabling the wrong language, I would like to set the preferred language.
    Setting NLSPATH to a filename did not work; it wants a folder.


    ------------------------------
    Matthias Jungbauer
    ------------------------------


  • 2.  RE: ACE Console - how to set the user language?

    Posted Mon December 05, 2022 11:27 AM
    Hi,
    on *nix systems, ACE command line tools should obey to the POSIX standard (IEEE 1003.1), and adapt message languages depending on the "locale".
    Check the output of locale to display your locale environment.
    For more details: man locale , in particular, the env var: LANG and LC_MESSAGES
    as far as NLSPATH is concerned, it is a list of search path to find message catalogs : man environ
    NLSPATH is set by mqsiprofile to the installation path of message libraries:
    ${MQSI_BASE_FILEPATH}/server/messages/%L/%N:${MQSI_BASE_FILEPATH}/server/messages/En_US/%N${NLSPATH:+":"${NLSPATH}}

    For example to get the help of IntegrationServer in other language temporarily:
    LANG=Zh_TW IntegrationServer -h
    or if you want a permanent change in your current shell:
    export LANG=Zh_TW

    You question concerns which OS and command ?

    ------------------------------
    Laurent Martin
    ------------------------------



  • 3.  RE: ACE Console - how to set the user language?

    Posted Tue December 06, 2022 04:11 AM
    The OS is Windows.


    ------------------------------
    Matthias Jungbauer
    ------------------------------



  • 4.  RE: ACE Console - how to set the user language?

    IBM Champion
    Posted Wed December 07, 2022 08:39 AM
    As you can see in Windows the NLS path variable points to the different language properties files folder:
    >set | find /i "nls"
    MQSI_CONSOLE_NLSPATH=D:\Program Files\IBM\ACE\12.0.1.0\server\messages\​
    The locale variable of your JVM will then determine which one to use.
    You can try and set the LANG variable, but I don't know if it will have any effect.
    The best way would be to create a user and set the language for the user in the windows control panel.

    Hope it helps

    ------------------------------
    Francois Brandelik
    ------------------------------



  • 5.  RE: ACE Console - how to set the user language?

    Posted Wed December 07, 2022 08:16 PM
    Hi,

    Ok, Windows OS, of course, as other OSes do not provide a specific "Console" and simply use the system's shell.

    Well, in fact the ACE console is nothing more than a CMD that initializes with ACE.cmd

    In a regular CMD you can load the environment executing: "C:\Program Files\IBM\ACE\12.0.7.0\ace.cmd"
    or "C:\Program Files\IBM\ACE\12.0.7.0\server\bin\mqsiprofile.cmd"

    As far as I understand, on Windows, the ACE components will localize messages according to the OS regional settings.
    For example, in cmd you can display the current regional settings with:
    reg query "HKCU\Control Panel\International"
    Or you can show the regional panel by executing the control panel: intl.cpl
    Alternatively you can search "regional" in the start menu, select the panel there, and then selection "Region".
    In those control panels you can modify the Language, and mqsi commands should follow that language once you have applied.

    MQSI_CONSOLE_NLSPATH is set to the folder where message catalogs are found...
    i.e. C:\Program Files\IBM\ACE\12.0.7.0\server\messages\
    as francois wrote.

    It seems strange that the ACE console displays a different language than in cmd...
    try this:
    start a regular cmd, then load the mqsiprofile, and execute a command like mqsivault
    compage the message language to the one in ace console.
    then change the language using the control panel, and then execute the command again in the same terminals.

    ------------------------------
    Laurent Martin
    ------------------------------