Results 1 to 5 of 5

Thread: Multilingual Forms

  1. #1
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default Multilingual Forms

    Hi,

    I would appreciate if someone could tell me what's the best way to create a multilingual form, or at least two forms that write into the same db-table without complaining.

    Thanks a lot!

  2. #2
    User
    Join Date
    06-20-09.
    Posts
    115

    Default Re: Multilingual Forms

    try this

    This example is for translation of english and danish: {{iflng::en}}Your Name{{iflng}} {{iflng::da}}Dit navn{{iflng}}

    reference can be found here http://www.contao.org/en/insert-tags.html

    in some cases, installing the relevant additional language pack also helps frontend translation on forms
    geung

  3. #3
    New user
    Join Date
    08-14-09.
    Posts
    28

    Default Re: Multilingual Forms

    That's clever, thanks!

  4. #4
    Community-Moderator lucina's Avatar
    Join Date
    10-08-10.
    Location
    Issy-les-moulineaux
    Posts
    93

    Default Re: Multilingual Forms

    Additionally, it's always good to know that the {{iflng}} and the {{ifnlng}} (if not language) insert tags are the only ones which will be parsed separately so that one could include other insert tags into them.

    Knowing this you may find it useful to build something like this in your form:
    Code:
    {{iflng::en}}{{some_other_inserttag}}{{iflng}}

  5. #5
    User
    Join Date
    04-01-10.
    Posts
    289

    Default Re: Multilingual Forms

    Hello,

    I'm excavating this post because I got a problem with form manager + EFG.

    As said, I'm using {{iflng:xx}} in form labels but they seem not being parsed in the BE so we can see in EFG formdata : "{{iflng::fr}}Nom{{iflng}}{{iflng::en}}Name{{iflng }}" instead of "Nom" or "Name" depending on the language choosen in the backend.

    Is there a solution ?

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •