Developer forum

Forum » Templates » More than one language - Translate

More than one language - Translate

George Nelzo Pereira
Reply

Hi,

Iit's possible to have a specific translate in one page?
I'm mean to have a website with two or more languages, but in one specific page should have a different translate over the website?
Like we have one website where the client can choose the language... then we have one Form and this form we have a confirmation with Formmailer, this one (Formmailer) we need to send with other language...


Replies

 
Nicolai Høeg Pedersen
Reply

Hi George

I do not understand what you want to do...

Formmailer is the custom forms mail sender (Admin/Public/Formmailer.aspx), right? Using that one, you can change the value of all the hidden fields, including the template used for the mail, and then simply have a template for each language (mail_uk.html, mail_de.html etc.)

BR Nicolai

 
George Nelzo Pereira
Reply

Hi...
I'm using this: one template for each language...
I'm thinking to have one parameter to choose a language for this template...
Then we don't need to have translated hardcode in files...

 
Nicolai Høeg Pedersen
Reply

Hi George

You are not very precise - which makes it difficult to help...

If you have a website in x languages

  • website (EN)
    • website (DA)
    • website (DE)
    • etc...

Then in your layout template you have a loop of language versions of each translation. Then when you are on any page in DA language, you will get a loop containing the EN and DE translation of that page. That loop is called "Languages" - you also have a loop called "WebsiteLanguages"

Is that what you are looking for?

Also you can use translations: http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/Translate(Key--Default).aspx

 
George Nelzo Pereira
Reply

Sorry about my precision, let me try better:
I have a website in x languages like in your example

    website (EN)
        website (DA)
        website (PT)

I have some users they can make login in this website and they can choose the languages...
the translation is working fine up to now.
this user who is logged will send an email to some clients through one page...
each client have different languages. We need to send this email with another client languages (this language is different than ours - Users who is logged).
How to choose the language in translate for this email?

 
Nicolai Høeg Pedersen
Reply

Hi George

Hm, the only idea I have is on the page the user is on, can choose a language. When the user does that, you pop a window/dialog with the form in the right language and submit that in the window.

BR Nicolai

 

You must be logged in to post in the forum