Gossamer Forum
Home : Products : DBMan SQL : Discussion :

User Language

Quote Reply
User Language
How can I make ALL the user language tags (e.g ADD_ILLEGALVAL, ADD_NOTNULL, etc.) available for use in a custom perl module in my admin/Dbsql directory??

In the case of the Template Globals I added -

#Include the current tags
my $tags = GT::Template->tags;

which made all the globals available but I need to have the user language tags (Code) available as well.

I'm generating additional error messages based on the contents of $tags->{msg} as follows -

#Include the current tags
my $tags = GT::Template->tags;
my
$error_msg=$tags->{msg};

my $language_msg = ???????;

if ($error_msg =~ /\b$language_msg\b/) {

#do something

}


I guess the ????? needs to be something like $language->{ADD_NOTNULL} or similar but I don't know exactly what.

Can anyone tell me how to make All the user language tags available and how to refer to them?

Note: I need to use the ADD_ILLEGALVAL, ADD_NOTNULL, etc. tags rather than the actual value (e.g "Column %s cannot be left blank.") as the value will change with different languages.

Thank you.

Simon.
Subject Author Views Date
Thread User Language jai 2633 Oct 28, 2002, 9:24 PM
Thread Re: [jai] User Language
604 2572 Oct 29, 2002, 10:14 AM
Thread Re: [TheStone] User Language
jai 2566 Oct 29, 2002, 4:04 PM
Thread Re: [jai] User Language
604 2507 Nov 13, 2002, 3:57 PM
Thread Re: [TheStone] User Language
jai 2491 Nov 13, 2002, 9:03 PM
Post Re: [jai] User Language
604 2499 Nov 14, 2002, 9:45 AM