Forums

[SOLVED] Issue in multilanguage site

fastmax 04 Dec, 2012
Hi,
I'm building a form in Italian and English language (on Joomla 2.5.6).
The main language of the site is English and the multi language system work ok.
The issue is:
From the Italian version (second language) I click the button that calls the form, but I am taken to the English version!
The url is:
http://www.chauffeur-tuscany.com/component/com_chronoforms/Itemid,627/view,form/
Probably something wrong but I can not find the solution, please help?
fastmax 07 Dec, 2012
can you help me please?
GreyHead 07 Dec, 2012
Hi fastmax,

The link takes me to a login page so I can't see the form page.

What button are you pressing to get to the form?

How have you set up the multi-language in ChronoForms? Are you using two forms or one form with Multi-Language actions?

This sounds more like a problem with your SEF URLs than with ChronoForms.
fastmax 17 Dec, 2012
I apologize, I wrote you a pm with the access parameter to view the link.

Let me make another problem (strange) that presents itself to me in the same form (you can also check this when you're there): I have a date field (label:date of service) that I have configured as always to show the calendar from which to select the date but this does show the choice time and after confirming the OK button automatically inserts the current date instead of making a choice.
Up to now this problem I had ever made and I do not know where to bang my head :?
GreyHead 26 Dec, 2012
Hi fastmax,

Do you have two different forms - one English and one Italian? or do you have one form with the Multi-language plug-in?

Whichever it is I don't think that the problem is with ChronoForms; the menu link takes you to the form OK.

The problem with the date-picker is because it is set as a time-picker but with a date format instead of a time-format. Make sure that the classes and formats are consistent here.

Bob
fastmax 09 Jan, 2013
Hi Bob,I have one form with the Multi-language plug-in.
The link work but you must go to Italian version (note that the url contains "/it/") and then click the voice "Preventivo" in the gray menu named "Azienda". This link must call the form in Italian version but instead call the english version (and the url back to standard string, whitout the language section "/it/".
Can you test it another time please?
GreyHead 09 Jan, 2013
Hi fastmax,

The 'Get A Quote' and 'Preventivo' both have the same link so I guess that they both point to the English language version of the form somehow. The ChronoForms multi-language plug-in picks up the current site language setting so you need to make sure that is set to Italian. I don't know how you do that though, maybe you need to add something to the menu link to preserve the language setting???

Bob
fastmax 09 Jan, 2013
I made a little summary:

PS:the multilanguage form action (in English) work well, because the placeholder labels are translated well.

To translate the site I used the native multilanguage system included in Joomla 2.5 and work well in the rest of the site (you can test it).

SITE SETTINGS
The site is multilanguage (2 language: EN and IT)
there are one menù for each language
the primary language of the site is English

In chronoform I made only one form with, in events tabs, the "on load" action
Multi Language - (with the english data)
Multi Language - (with the Italian data)

When I build the italian link should call the form, I select the only one choice about ChronoForm menu type (Chronoforms Display Form) and select my only one form named "form_preventivo".
This menu is set in Italian language.

After this I don't know how to do in addition to run the form in Italian language... 😟
GreyHead 09 Jan, 2013
Hi fastmax,

I don't have much else to suggest. ChronoForms checks the currently set language tag and applies the appropriate translations. Try temporarily adding a Custom Code action with code like this to see what the current tag is set to:
<?php
$lang =& JFactory::getLanguage();
$tag = $lang->getTag();
echo'<div>Language tag: '.print_r($tag, true).'</div>';
?>

Bob
fastmax 10 Jan, 2013
ok, Bob, I would say that we are faced with a small "bug".
I used this solution to solve the problem:

I left the settings already entered for the primary language (works well and then do not see why change it)
For the second language I used the chronoform plugin, I created an item that includes the plugin code, I set the item in the second language and called from menu like "call an item" and not "chronoform call".
This has solved my problem and now, for user, all work well.
I hope this vill help those who had this same problem.
fastmax 10 Jan, 2013
I still have some problem with the datepicker, I select the year but when it goes to next step the date is another,and also seems to me that the system is not functioning properly.

Can you access with the data that I sent you and verify this issue?
GreyHead 10 Jan, 2013
Hi fastmax,

Please change to use the MooTools datepicker using the setting on the form General tab. The old datepicker has not been updated to work correctly with the current MooTools versions.

Let's see if that fixes the problem.

Bob
fastmax 10 Jan, 2013
Yes, now all work well!
Thanks.
This topic is locked and no more replies can be posted.