Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Links::language ??????

Quote Reply
Links::language ??????
Hello

In Admin/Links/SQL.pm, you can find s0omething like this in your column definitions:

Links::language('prompt_Status')

more definitions about the column are found in the def files.

Now I have a question:
I want to add collums in SQL.pm and in the proper def file
for example:

I add in the linktable the column Badlink like this:

Badlink => { pos => 23, type => 'INT', not_null => 1, default => 0, regex => '^\d+$', form_display => Links::language('prompt_Badlink') },

and i add this in the links.def:


'Badlink' => {
'not_null' => '1',
'form_size' => '10',
'form_type' => 'TEXT',
'pos' => '23',
'regex' => '^\d+$',
'form_display' => 'Badlink',
'default' => '0',
'type' => 'INT'
},


this works fine after setup but one thing:

I get prompt_Badlink as form display
i should add something in Links::language
but it refers to language.txt and nothing can be found about that. Can anybody tell me what's wrong?????




Quote Reply
Re: Links::language ?????? In reply to
You shouldn't manually add to the def files.

Just go to Database > Links/Properties

...and add new columns that way, then re-sync

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Links::language ?????? In reply to
Ok thats the way in your admin tool I know.
the reason I have to do it on my way is:

1. add my functions as a standard option in my links-SQL version
2. I have all my fields available directly after install.

I am currently working on my version of the review system including editor options.


Quote Reply
Re: Links::language ?????? In reply to
Hi,

You would need to add the language to the admin/templates/admin/language.txt file.

Cheers,

Alex

--
Gossamer Threads Inc.