Shape 5

Joomla Templates => Luxon - Club => : cgno85 April 25, 2015, 11:16:13 PM



: Problems with the quick contact
: cgno85 April 25, 2015, 11:16:13 PM
Hi,
I have two questions. I change the value of the quick contact, but it dont work again and is more bigger and the pop up no show... the buttom is die...attach the image.
The other question is where can i change this "Check room availavility" for another text.

the page is www.volaretours.ec


: Re: Problems with the quick contact
: cgno85 April 25, 2015, 11:55:52 PM
Hi,
I have two questions. I change the value of the quick contact, but it dont work again and is more bigger and the pop up no show... the buttom is die...attach the image.
The other question is where can i change this "Check room availavility" for another text.

the page is www.volaretours.ec

I reviwe even this manual, the intructions in the bottom with the code. The defalt value not appear and keep not selected
http://www.shape5.com/demo/index.php?luxon




: Re: Problems with the quick contact
: mikek April 27, 2015, 07:09:20 AM
Hello,

Your site produces a Forbidden error when loading it.


: Re: Problems with the quick contact
: buddysoul April 28, 2015, 06:35:06 AM
Hi,
I have two questions. I change the value of the quick contact, but it dont work again and is more bigger and the pop up no show... the buttom is die...attach the image.
The other question is where can i change this "Check room availavility" for another text.

the page is www.volaretours.ec


... answer to your 2nd question where to change the text of the button "check room ..." - there is another module on position "custom-3" - thist communicates with quick contact module and there you can change the text of the button!

peter


: Re: Problems with the quick contact
: buddysoul April 28, 2015, 07:12:46 AM
hi!
where can i determine order of fields of quick contact - quick request tool on position custom-7

i want 4 fields:

1. arrival
2. departure
3. room type
4. no of adults

the appearance of the fields in detail pop up window is correct!

how can i fix it!

where can i change language of datepicker!?!?

thanks for your reply!

peter


: Re: Problems with the quick contact
: mikek April 28, 2015, 07:37:52 AM
Hello,

Please be sure that you are following the tutorial given here:

http://www.shape5.com/demo/luxon/index.php/features-mainmenu-47/template-specific-features#quick_contact

The fields that display in the controller area are identified by their number in the template specific page of the template configuration. The order of the fields, their names, their input types, etc. are all controlled the quick contact module itself.


: Re: Problems with the quick contact
: buddysoul April 28, 2015, 08:18:15 AM
hey man!

thanks a lot to solve this problem!

whats about different language in quick contact date picker!?

peter


: Re: Problems with the quick contact
: mikek April 28, 2015, 12:21:02 PM
Hello,

Unfortunately, I don't know of a way to change the language for the date picker. That's using a third party javascript to create the calendars.


: Re: Problems with the quick contact
: mikenicoll April 28, 2015, 05:52:55 PM
Hello,

This would involve some custom programming changes but see below for details:



In modules/mod_s5_quick_contact/s5_quick_contact/pikaday.js you can just change the values here:

:
            previousMonth : 'Previous Month',
            nextMonth     : 'Next Month',
            months        : ['January','February','March','April','May','June','July','August','September','October','November','December'],
            weekdays      : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
            weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']

Regards,


: Re: Problems with the quick contact
: lcmp February 06, 2017, 09:14:52 AM
I am not a programmer but I know my way around Joomla and PHP enough to have found a solution to display the calendars in quick contact in at least 2 different languages.

I know this post is old but, it may help somebody in the future who?s looking to display the calendars in different languages.

Take note. This simple solution will allow the user to select a date on the calendar in their native language but, when a selection is made, the post to the form will revert to English. But at least you allowed you user to make the selection in their native language.


You will need to modify the following files:

joomla_root/modules/mod_s5_quick_contact/tmpl/default.php

joomla_root/modules/mod_s5_quick_contact/s5_quick_contact/pikaday.js


1. First make a copy / backup of these 2 files just in case something goes wrong.

2. Make 2 more copies of the pikaday.js file and leave them in the same folder along with the original.

Rename 1 copy of this file to:


pikaday_en.js


( for english )

Rename the other copy of the file to:


pikaday_es.js

( I needed the calendar in spanish hence the: _es in the file name. You can rename your files to whatever you wish but adding the lang specific prefix helps to keep everything in order.  eg, for french you coud rename to pikladay_fr.js )

3. Now open your:

pikaday_es.js

Go to line 241. it reads:

i18n: {

Below this line you will see the words to be translated.

i.e:


previousMonth : 'Previous Month',


For spanish you would change this line to


previousMonth : 'Mes Anterior',

Translate all the days, months, abbreviations etc. to the desired language.

Save the file and close.

4. Now go to:

joomla_root/modules/mod_s5_quick_contact/tmpl/

and open:

default.php

remember to make a backup of this file as well just in case you make a mistake when you alter the original code.


Go to line 195. it reads like this:


:

$doc->addCustomTag('<script src="'.$s5_qc_url.'s5_quick_contact/pikaday.js" type="text/javascript"></script>');



Replace that line with:


:

$lang = JFactory::getLanguage();
if ($lang->getTag() == 'en-GB') {
  $doc->addCustomTag('<script src="'.$s5_qc_url.'s5_quick_contact/pikaday_en.js" type="text/javascript"></script>');
}

$lang = JFactory::getLanguage();
if ($lang->getTag() == 'es-ES') {
  $doc->addCustomTag('<script src="'.$s5_qc_url.'s5_quick_contact/pikaday_es.js" type="text/javascript"></script>');
}



The first string of code defines what js file to look for when the site language is English.

The second string of code defines what js file to look for when the site language is Spanish. Replace the variables in the second string of code to your specific language and remember to replace the file names to whatever names you used in step 2.

Clear your browser cache, reload your site and you should have the calendar displaying different languages automatically depending on the user selected language.

I repeat:

This is a simple / humble solution to let the user be able to make a selection from the calendar in their native language. After the user makes the selection, the calendar posts the calendar selection to the form in English.

I?m not a programmer so please don?t ask me for custom PHP code. I played around with the code and googled a little bit for joomla specific language code and was lucky enough to get it to work.
enjoy,