Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [TheStone] User Language

Quote Reply
Re: [TheStone] User Language In reply to
Sorry I tried everything but I still can't get it to work.

Where should I add -

#Setup the language for GT::SQL.
local $GT::SQL::ERRORS->{ILLEGALVAL} = $self->_language('ADD_ILLEGALVAL');
local $GT::SQL::ERRORS->{UNIQUE} = $self->_language('ADD_UNIQUE');
local $GT::SQL::ERRORS->{NOTNULL} = $self->_language('ADD_NOTNULL');


At the begining of my custom perl module??

Or in my sub as per my previous example -

#Include the current tags
my $tags = GT::Template->tags;
my $error_msg=$tags->{msg};
#Setup the language for GT::SQL.
local $GT::SQL::ERRORS->{ILLEGALVAL} = $self->_language('ADD_ILLEGALVAL');
local $GT::SQL::ERRORS->{UNIQUE} = $self->_language('ADD_UNIQUE');
local $GT::SQL::ERRORS->{NOTNULL} = $self->_language('ADD_NOTNULL');
my $language_msg = ???????;
if ($error_msg =~ /\b$language_msg\b/) {
#do something
}


Do I use -

my $language_msg = $self->_language('ADD_NOTNULL');

for the ????????

Please explain a little more.

Thank you.

Simon.

Subject Author Views Date
Thread User Language jai 3628 Oct 28, 2002, 9:24 PM
Thread Re: [jai] User Language
604 3526 Oct 29, 2002, 10:14 AM
Thread Re: [TheStone] User Language
jai 3521 Oct 29, 2002, 4:04 PM
Thread Re: [jai] User Language
604 3461 Nov 13, 2002, 3:57 PM
Thread Re: [TheStone] User Language
jai 3445 Nov 13, 2002, 9:03 PM
Post Re: [jai] User Language
604 3454 Nov 14, 2002, 9:45 AM