Support » Plugin: Contact Form 7 Datepicker » [Plugin: Contact Form 7 Datepicker] codestyling-localization frontend bug

Viewing 3 replies - 1 through 3 (of 3 total)
  • Update: All translations are not displayed in the frontend.

    You must add a first line

    load_plugin_textdomain( 'contact-form-7-datepicker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    in a function calendar_l10n() (line 781 in contact-form-7-datepicker.php)

    Like this:

    public static function calendar_l10n() {
    	load_plugin_textdomain( 'contact-form-7-datepicker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    	$l10n_strings = array(
    						'MONTHS' => array(
    											__('January', 'contact-form-7-datepicker'),
    											__('February', 'contact-form-7-datepicker'),
    .
    .
    .

    Hi!
    I´m having this same problem, I added the code
    load_plugin_textdomain( 'contact-form-7-datepicker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );

    to the contact-form-7-datepicker.php , but still the translation of the calendar is not showing up. Do I need to do anything else besides copying and pasting the code? Do I need to add anything else?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Contact Form 7 Datepicker] codestyling-localization frontend bug’ is closed to new replies.