Setup a multilanguage form

More
06 Apr 2012 23:00 - 06 Jan 2016 02:15 #1 by Demis [Fox-Labs]
Demis [Fox-Labs] created the topic: Setup a multilanguage form

Note: Falang can not be used to translate Fox Contact. Use the Joomla standard multilanguage features instead. Here is a step by step configuration guide.


Translate a menu item

If your Joomla website was previously configured for multilanguage support using the standard Joomla multilanguage features then you will:
  1. Create a Fox Contact menu item for each desired language.
  2. For each form, fill out all parameters and options in the appropriate language.
  3. Associate each Fox Contact menu item with each other in different languages.
In an effort to expand upon the instructions above, we will demonstrate how to create two Fox Contact forms. The first example uses English and the second uses the Italian.

Example #1 - English
  1. Select "Menus" > "Main Menu" > "New menu item".


  • Choose Fox contact as "Menu item type".
  • On the left side, under "Details", select "English" from the Language drop-down list.




  • Complete the remaining parameters in English language.



  • Save and close.
  • Clear the browser's cache.
  • [/ol]

    Tip: If you temporary change your admin language to Italian now, the form you are about to create will be prefilled with Italian sample data.


    Example #2 - Italian
    1. Create a second menu item using "Menus" > "Menu Principale" > "New menu item".



  • Again, from the "Menu Item Type options", select Fox contact .
  • On the left side, under "Details", select "Italian" from the Language drop-down list.



  • Complete the remaining parameters in Italian language.



  • Save and close.
  • Clear the browser's cache.
  • [/ol]
    Associate each Fox Contact menu item with each other in different languages.



    Now, lets look at the menu items list. You will see two different menu items, each one belongs to a different menu based on its language.



    The chain icon confirms the relationship (association) with items in different languages.




    Translate a contact module

    The procedure described below, works with the Joomla native Language Switcher module, as well as third party Language Switcher modules (for example FaLang).
    1. Create a Fox Contact module for each desired language
    2. For each module, fill out all form's parameters and options in the appropriate language
    3. Be sure to properly set the Language property under module's "Details"
    The following example will guide you while creating two Fox Contact modules. The first in English and the second in Italian.
    1. From the Joomla Admin Panel, Select "Extensions" > "Module Manager".
    2. Create a new Fox Contact module.
    3. On the left side, under "Details", set Language to "English".


  • Complete the remaining parameters in English language.



  • Save and close.
  • Clear the browser's cache.
  • [/ol]

    Tip: If you temporary change your admin language to Italian now, the form you are about to create will be prefilled with Italian sample data.
    1. Create a second Fox Contact module.

    2. On the left side, under "Details", set Language to "Italian".


  • Complete the remaining parameters in Italian language.



  • Save and close.
  • Clear the browser's cache.
  • [/ol]

    Now, lets look at the modules list. You will see you have two different modules, in the same module position, but they are associated to different languages.



    As you access the front end of your website, you will notice the form displays based upon the language currently selected.



    Please Log in or Create an account to join the conversation.