Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

LinksSQL multilingual?

Quote Reply
LinksSQL multilingual?
Hello to all,

is there a possibility to put new fields in the database (e.g. Category_Name_french) and fill it,
And when building the html-pages, that the script uses the "french"-templates to generate the category Names from the Category_Name_french-Field?

So i can use LinksSQL multilingual...

Thanks in advance and sorry for my bad english... :-)

Coyu

Quote Reply
Re: LinksSQL multilingual? In reply to
Yes, you can, but you'd really have to do two builds. One for the english, and one for the french.

You could do something such as adding a parameter to the Links.pm file, to tell the program which build to do, then in the build_category routines, you'd want to do something like:

($LINKS{build_language} eq 'English') ?
$OUT{category_name} = $category_r->{'Name'} :
$OUT{category_name} = $category_r->{'French_Name'};


I'm not sure if this answers the question, but that is how you'd chose between two fields of any type.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: LinksSQL multilingual? In reply to
ok, thank you very much.
This is exactly what i want to know...

Further Questions:

1. How the scripts distincts between building english an building french pages? Do i have to add a "build xxx-language"-Link in the admin-front?

2. How can i tell the script to use for language xxx the templates in the directory /home/pages/languages/xxx/ ?

Thank u in advance...

Coyu

Quote Reply
Re: LinksSQL multilingual? In reply to
Anybody who can program us this solution and how much would it cost?

Thanx!