Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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..

    #246497

    Hey Bruno!

    Have you tried rescanning theme files using this plugin http://wordpress.org/plugins/codestyling-localization/ ? If not, do so :)

    Cheers!
    Yigit

    #246623

    Hey 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
    Bruno

    #246871

    Hey!

    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!
    Ismael

    #247344

    Hey 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

    #248070

    Hey!

    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!
    Peter

    #248466

    Hey Peter,

    that´s it.. Thanks a lot !

    Please close..

    Best regards

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Translation failure – Datepicker Forms’ is closed to new replies.