MariaDB error messages

MariaDB error messages

Postby Wanderson » Mon Jul 03, 2017 5:19 pm

Hi,

Why after this: ocn:SetMsgLang( "pt_BR" ) mariaDB returns error messages in english? I want set the Brazil portuguese messages.

Thanks in advance.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: MariaDB error messages

Postby nageswaragunupudi » Sun Jul 09, 2017 4:16 pm

Wanderson wrote:Hi,

Why after this: ocn:SetMsgLang( "pt_BR" ) mariaDB returns error messages in english? I want set the Brazil portuguese messages.

Thanks in advance.

Thanks for pointing out. This is due to a bug in the METHOD SetMsgLang(). Fixed now in FWH 17.07.

But you may set
FWSetLanguage( 4 ) before connecting to the server, then MsgLang() is automatically set to Portuguese when you open the connection.

Code: Select all  Expand view
FWSetLanguage( 4 )
FWCONNECT oCn HOST <cHost> USER <cUser> .........
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10470
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MariaDB error messages

Postby Wanderson » Mon Jul 10, 2017 1:23 pm

nageswaragunupudi wrote:
Wanderson wrote:Hi,

Why after this: ocn:SetMsgLang( "pt_BR" ) mariaDB returns error messages in english? I want set the Brazil portuguese messages.

Thanks in advance.

Thanks for pointing out. This is due to a bug in the METHOD SetMsgLang(). Fixed now in FWH 17.07.

But you may set
FWSetLanguage( 4 ) before connecting to the server, then MsgLang() is automatically set to Portuguese when you open the connection.

Code: Select all  Expand view
FWSetLanguage( 4 )
FWCONNECT oCn HOST <cHost> USER <cUser> .........


Thank you! I've been looking at the errsg.sys file from mariadb in the portuguese folder and a lot of the file is not translated, you know with which program I can translate the messages since I tried the notepad and the file gets corrupted.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: MariaDB error messages

Postby nageswaragunupudi » Mon Jul 10, 2017 1:56 pm

Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10470
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MariaDB error messages

Postby Wanderson » Mon Jul 10, 2017 4:49 pm

nageswaragunupudi wrote:https://dev.mysql.com/doc/internals/en/error-message-adding.html


Thank you!
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 60 guests