WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Datepicker
codestyling-localization frontend bug (4 posts)

  1. chosy
    Member
    Posted 2 years ago #

    Hi. I´ve tried to translate this nice plugin. But there are some problems with the localization in the frontend. The days and month aren´t showing translated.

    Where can I send you the german translation for this plugin?

    Regards

    http://wordpress.org/extend/plugins/contact-form-7-datepicker/

  2. chosy
    Member
    Posted 2 years ago #

    Update: All translations are not displayed in the frontend.

  3. 534033
    Member
    Posted 1 year ago #

    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'),
    .
    .
    .
  4. Jopenoga
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic