Home › Forums › Template Support › Contact form – translation
-
Matic OmejcSubscriberHi,
I try to find Contact form to translate few words (your name, your email…). Where can I change this words?
Website – contact form is in footer: http://www.moj-svet.comThanks
Matic
TonyModeratorHi Matic,
You can use Joomla language override feature to translate the form label, please do following this tutorial for more detail.
Here the list language constant name for contact formCOM_QUIX_EMAIL_SENT_SUCCESSFUL COM_QUIX_EMAIL_SENT_ERROR QX_CF_YOUR_NAME QX_CF_YOUR_EMAIL QX_CF_YOUR_SUBJECT QX_CF_YOUR_MESSAGE QX_CF_SEND QX_CF_YOUR_NAME_HINT QX_CF_YOUR_EMAIL_HINT QX_CF_YOUR_SUBJECT_HINT QX_CF_YOUR_MESSAGE_HINT
Thank you
Marcin StodolskiSubscriber
TonyModerator
Marcin StodolskiSubscriberComponent
Quick – Page
Contact Form- This reply was modified 6 years ago by Marcin Stodolski.
TonyModeratorDid you create language override for Joomla your language before ? Choosing your language for overriding instead default “English”
See https://joomlead.com/forums/topic/contact-form-translation/#post-125288
Marcin StodolskiSubscriberOK – I know. It works.
How to change:
– day
– hours
– minutes- This reply was modified 6 years ago by Marcin Stodolski.
- This reply was modified 6 years ago by Marcin Stodolski.
- This reply was modified 6 years ago by Marcin Stodolski.
- This reply was modified 6 years ago by Marcin Stodolski.
- This reply was modified 6 years ago by Marcin Stodolski.
Marcin StodolskiSubscriber
TonyModeratorHi Marcin,
It seems Quix does not support translate these text string using Joomla language override.
I found the code like so+ '<div class="days"><span>%-D</span> <?php echo JText::_("Days"); ?></div> ' + '<div class="hours"><span>%H</span> <?php echo JText::_("Hours"); ?></div> ' + '<div class="minutes"><span>%M</span> <?php echo JText::_("Minutes"); ?></div> ' + '<div class="seconds"><span>%S</span> <?php echo JText::_("Seconds"); ?></div> '
Which Quix version are you using ? We can create an override element in order to translate the text via html override instead modifing Quix core element
Marcin StodolskiSubscriber
TonyModeratorJust download the countdown override element here https://www.dropbox.com/s/smjinwc8fi9icl1/countdown.zip?dl=0
unzip and upload to joomla/templates/template_name/quix/elements/
Next, open view.php file -> line 30 then modify the text string.
Marcin StodolskiSubscriber<?php
$classes = classNames( “qx-element qx-element-{$type} {$field[‘class’]}”, $visibilityClasses, [
“wow {$field[‘animation’]}” => $field[‘animation’],
“qx-hvr-{$field[‘hover_animation’]}” => $field[‘hover_animation’]
] );// Animation delay
$animation_delay = ”;
if( $field[‘animation’] AND array_key_exists(‘animation_delay’, $field) ){
$animation_delay = ‘data-wow-delay=”‘. $field[‘animation_delay’] .’s”‘;
}Assets::Js(‘qx-countdown’, QUIX_URL.”/app/elements/countdown/js/jquery.countdown.min.js”);
$date = ”;
if(!empty($field[‘date’])){
$date_json = json_decode($field[‘date’]);
$date = $date_json->string;
}
$time = $field[‘time’];
?><div id=”<?php echo $id;?>” class=”<?php echo $classes?>” <?php echo $animation_delay; ?>>
<div id=”<?php echo $id;?>_clock”></div><script type=”text/javascript”>
jQuery(‘#<?php echo $id;?>_clock’).countdown(‘<?php echo $date .’ ‘. $time ?>’, function(event) {
var $this = jQuery(this).html(event.strftime(”
+ ‘<div class=”days”><span>%-D</span> <?php echo JText::_(“Dni”); ?></div> ‘
+ ‘<div class=”hours”><span>%H</span> <?php echo JText::_(“Godzin”); ?></div> ‘
+ ‘<div class=”minutes”><span>%M</span> <?php echo JText::_(“Minut”); ?></div> ‘
+ ‘<div class=”seconds”><span>%S</span> <?php echo JText::_(“Sekund”); ?></div> ‘
))
.on(‘finish.countdown’, function(event) {
jQuery(this).html(‘<?php echo $field[‘offer_expired’]; ?>’)
.parent().addClass(‘disabled’);
});
});
</script>
</div>Did not help 🙁
TonyModeratorI tested and it worked. Submit the private ticket here https://joomlead.com/ticket-support/ then provide administrator account to check.
Marcin StodolskiSubscriberOK, I’ve already created 1163.
- This reply was modified 6 years ago by Marcin Stodolski.
TonyModerator
You must be logged in to reply to this topic.