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.
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.