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
------------------------------
Original Message:
Sent: Tue December 06, 2022 04:10 AM
From: Matthias Jungbauer
Subject: ACE Console - how to set the user language?
The OS is Windows.
------------------------------
Matthias Jungbauer
Original Message:
Sent: Mon December 05, 2022 11:26 AM
From: Laurent Martin
Subject: ACE Console - how to set the user language?
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
Original Message:
Sent: Sun December 04, 2022 08:10 AM
From: Matthias Jungbauer
Subject: ACE Console - how to set the user language?
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
------------------------------