Tagged: datepicker
-
AuthorPosts
-
April 2, 2014 at 11:43 am #246480
Hey there!
Wanna use the Datepicker in a Form, but it isn´t translate complete. For placeholder “DD / MM / YY”, I found a solution. I changed:
enfold/framework/php/class-form-generator.php 262: $placeholder = apply_filters('avf_datepicker_date_placeholder', 'Tag / Monat / Jahr');
and it works..
But it doesn´t work for “Prev” and “Next”:
enfold/framework/php/class-form-generator.php 295: 'nextText' => __( 'Weiter', 'avia_framework' ), 296: 'prevText' => __( 'Zurück', 'avia_framework' ),
Screenshot
Can´t send you a link, I´m on MAMP..
Any idea how to change this? This 3 values doesn´t appear in the po-file..
April 2, 2014 at 12:55 pm #246497Hey Bruno!
Have you tried rescanning theme files using this plugin http://wordpress.org/plugins/codestyling-localization/ ? If not, do so :)
Cheers!
YigitApril 2, 2014 at 5:23 pm #246623Hey Yigit, thanks for reply.
It would be nice, if there is no need to install another plugin. I want to use less plugins for this client as possible. Is it really necessary?
I rescanned it with poedit pro. It gives me more than 100 new lines but without the 3 I need.. Is there a difference between this two ways?
Best regards
BrunoApril 3, 2014 at 6:53 am #246871Hey!
Thank you for using theme!
I’m really sorry but aside from using the plugin Yigit suggested or adding the translation yourself using POEdit, I don’t think we can provide more solution to the problem.
Cheers!
IsmaelApril 4, 2014 at 9:07 am #247344Hey Ismael, that´s not right. I thank you all guys for this very nice Theme! I love it and wanna use it for most of my future projects..!
I hope it´s ok to ask one more question. I tried with both, poedit and codestyling-localization, but I can´t change this 2 button-descriptions: prev and next.
Are the values from this nice calendar from you (kriesi), or do you use wordpress own code? From where are this values?
All I want it to change “prev -> zurück” and “next -> vor”. Really awesome it would be to change prev and next with icon-arrows..
Screenshot
Best regards
April 7, 2014 at 7:48 am #248070Hey!
We’ll fix this with the next update. For now open up wp-content/themes/enfold/framework/php/class-form-generator.php and replace:
function helper_print_datepicker_script() { echo "\n<script type='text/javascript'>\n"; echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({ beforeShow: function(input, inst) { jQuery("#ui-datepicker-div").addClass(this.id); inst.dpDiv.addClass("avia-datepicker-div"); }, showButtonPanel: true, closeText: AviaDatepickerTranslation.closeText, currentText: AviaDatepickerTranslation.currentText, monthNames: AviaDatepickerTranslation.monthNames, monthNamesShort: AviaDatepickerTranslation.monthNamesShort, dayName: AviaDatepickerTranslation.dayNames, dayNamesShort: AviaDatepickerTranslation.dayNamesShort, dayNamesMin: AviaDatepickerTranslation.dayNamesMin, dateFormat: AviaDatepickerTranslation.dateFormat, firstDay: AviaDatepickerTranslation.firstDay, isRTL: AviaDatepickerTranslation.isRTL }); });'; echo "\n</script>\n"; }
with
function helper_print_datepicker_script() { echo "\n<script type='text/javascript'>\n"; echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({ beforeShow: function(input, inst) { jQuery("#ui-datepicker-div").addClass(this.id); inst.dpDiv.addClass("avia-datepicker-div"); }, showButtonPanel: true, closeText: AviaDatepickerTranslation.closeText, currentText: AviaDatepickerTranslation.currentText, nextText: AviaDatepickerTranslation.nextText, prevText: AviaDatepickerTranslation.prevText, monthNames: AviaDatepickerTranslation.monthNames, monthNamesShort: AviaDatepickerTranslation.monthNamesShort, dayName: AviaDatepickerTranslation.dayNames, dayNamesShort: AviaDatepickerTranslation.dayNamesShort, dayNamesMin: AviaDatepickerTranslation.dayNamesMin, dayNames: AviaDatepickerTranslation.dayNames, dateFormat: AviaDatepickerTranslation.dateFormat, firstDay: AviaDatepickerTranslation.firstDay, isRTL: AviaDatepickerTranslation.isRTL }); });'; echo "\n</script>\n"; }
Cheers!
PeterApril 7, 2014 at 9:13 pm #248466Hey Peter,
that´s it.. Thanks a lot !
Please close..
Best regards
-
AuthorPosts
- The topic ‘Translation failure – Datepicker Forms’ is closed to new replies.