Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Multiple (language-) templates for add/modify.cgi?

Quote Reply
Multiple (language-) templates for add/modify.cgi?
Hi,

i want to offer the adding or modifying of entries in two languages - is this possible by using a second add.cgi or a second template?

Any (simple) help would be great!

Quote Reply
Re: Multiple (language-) templates for add/modify.cgi? In reply to
You might be able to carry the template parameter into the add.cgi/modify.cgi script. I believe Alex has addressed using multiple templates in the dynamic mode a few times in this forum and other Links SQL forums.

Regards,

Eliot Lee
Quote Reply
Re: Multiple (language-) templates for add/modify.cgi? In reply to
Hi,

Yes, if you use a second set of templates you should be able to translate everything.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Multiple (language-) templates for add/modify.cgi? In reply to
Alex,

could you give a newbie a shorthand to do this?

Thanks

Quote Reply
Re: Multiple (language-) templates for add/modify.cgi? In reply to
1) Copy your templates and put them into another sub-folder
within the template folder. This sub-folder could be named
something like "English". Repeat this for other languages.

2) Then edit those templates.

3) Then use the following links in your home.html and other
main template files:

Code:

<a href="page.cgi?t=english">English</a>
<a href="page.cgi?t=french">French</a>
<a href="page.cgi?t=german">German</a>


AND also in the home.html and other template files in the
other folders.

There might be tweaks you will have to make in the Template.pm module to properly parse these other template files.

Hope this helps. Alex may have better suggestions for doing this.

Regards,

Eliot Lee
Quote Reply
Re: Multiple (language-) templates for add/modify.cgi? In reply to
Hi,

What I would recommend is:

1. Create a directory called french (assuming you are translating to french) in the admin/templates directory.
2. Copy all the files in admin/templates/default to admin/templates/french
3. Translate all the files in admin/templates/french to french.
4. Goto Build->Language and select the french template set.
5. Translate the language messages to french.
6. Send me a copy of what you've done so I can post it for others. ;)

Then go to page.cgi?t=french to try it out and see how it works.

Cheers,

Alex

--
Gossamer Threads Inc.