null displaying for days of week in calendar control.

Home Forums Calendar Products Events Calendar PRO null displaying for days of week in calendar control.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1424210
    kanaeokana
    Participant

    See screenshot at bottom of post to see issue.

    I modified class-wp-locale.php in order to add support to our combination Hawaiian/English site (its mostly in english with some Hawaiian mixed in so localization will not work for us. I modified the days of weeks, months, etc and it works well for display except for the date selectors in the filter and add/edit screens. In those cases the days of the week (A, M, T, W, T, F, S) all display as null. See screenshot.

    I’m trying out how to fix this and keep the Hawaiian names for the days of week.
    When going in I see the translators size.

    I’ve seen your localization page but it doesn’t apply because we’re not localizing the site.

    Do you have a solution that may work to fix the null’s display.

    Modified code from class-wp-locale.php attached.
    Site: http://kanaeokana.net/alemanaka

    // The Weekdays
    $this->weekday[0] = /* translators: weekday */ __('Lāpule');
    $this->weekday[1] = /* translators: weekday */ __('Pōʻakahi');
    $this->weekday[2] = /* translators: weekday */ __('Pōʻalua');
    $this->weekday[3] = /* translators: weekday */ __('Pōʻakolu');
    $this->weekday[4] = /* translators: weekday */ __('Pōʻahā');
    $this->weekday[5] = /* translators: weekday */ __('Pōʻalima');
    $this->weekday[6] = /* translators: weekday */ __('Pōʻaono');

        // The first letter of each day.
        $this->weekday_initial[ __( 'Sunday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Sunday initial' );
        $this->weekday_initial[ __( 'Monday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'M', 'Monday initial' );
        $this->weekday_initial[ __( 'Tuesday' ) ]   = /* translators: one-letter abbreviation of the weekday */ _x( 'T', 'Tuesday initial' );
        $this->weekday_initial[ __( 'Wednesday' ) ] = /* translators: one-letter abbreviation of the weekday */ _x( 'W', 'Wednesday initial' );
        $this->weekday_initial[ __( 'Thursday' ) ]  = /* translators: one-letter abbreviation of the weekday */ _x( 'T', 'Thursday initial' );
        $this->weekday_initial[ __( 'Friday' ) ]    = /* translators: one-letter abbreviation of the weekday */ _x( 'F', 'Friday initial' );
        $this->weekday_initial[ __( 'Saturday' ) ]  = /* translators: one-letter abbreviation of the weekday */ _x( 'S', 'Saturday initial' );
    
        // Abbreviations for each day.
        $this->weekday_abbrev[__('Sunday')]    = /* translators: three-letter abbreviation of the weekday */ __('LP');
        $this->weekday_abbrev[__('Monday')]    = /* translators: three-letter abbreviation of the weekday */ __('P1');
        $this->weekday_abbrev[__('Tuesday')]   = /* translators: three-letter abbreviation of the weekday */ __('P2');
        $this->weekday_abbrev[__('Wednesday')] = /* translators: three-letter abbreviation of the weekday */ __('P3');
        $this->weekday_abbrev[__('Thursday')]  = /* translators: three-letter abbreviation of the weekday */ __('P4');
        $this->weekday_abbrev[__('Friday')]    = /* translators: three-letter abbreviation of the weekday */ __('P5');
        $this->weekday_abbrev[__('Saturday')]  = /* translators: three-letter abbreviation of the weekday */ __('P6');
    
        // The Months
        $this->month['01'] = /* translators: month name */ __( 'Ianuali' );
        $this->month['02'] = /* translators: month name */ __( 'Pepeluali' );
        $this->month['03'] = /* translators: month name */ __( 'Malaki' );
        $this->month['04'] = /* translators: month name */ __( 'ʻApelila' );
        $this->month['05'] = /* translators: month name */ __( 'Mei' );
        $this->month['06'] = /* translators: month name */ __( 'Iune' );
        $this->month['07'] = /* translators: month name */ __( 'Iulai' );
        $this->month['08'] = /* translators: month name */ __( 'ʻAukake' );
        $this->month['09'] = /* translators: month name */ __( 'Kepakemapa' );
        $this->month['10'] = /* translators: month name */ __( 'ʻOkakopa' );
        $this->month['11'] = /* translators: month name */ __( 'Nowemapa' );
        $this->month['12'] = /* translators: month name */ __( 'Kekemapa' );
    
        // The Months, genitive
        $this->month_genitive['01'] = /* translators: month name, genitive */ _x( 'Ianuali', 'genitive' );
        $this->month_genitive['02'] = /* translators: month name, genitive */ _x( 'Pepeluali', 'genitive' );
        $this->month_genitive['03'] = /* translators: month name, genitive */ _x( 'Malaki', 'genitive' );
        $this->month_genitive['04'] = /* translators: month name, genitive */ _x( 'ʻApelila', 'genitive' );
        $this->month_genitive['05'] = /* translators: month name, genitive */ _x( 'Mei', 'genitive' );
        $this->month_genitive['06'] = /* translators: month name, genitive */ _x( 'Iune', 'genitive' );
        $this->month_genitive['07'] = /* translators: month name, genitive */ _x( 'Iulai', 'genitive' );
        $this->month_genitive['08'] = /* translators: month name, genitive */ _x( 'ʻAukake', 'genitive' );
        $this->month_genitive['09'] = /* translators: month name, genitive */ _x( 'Kepakemapa', 'genitive' );
        $this->month_genitive['10'] = /* translators: month name, genitive */ _x( 'ʻOkakopa', 'genitive' );
        $this->month_genitive['11'] = /* translators: month name, genitive */ _x( 'Nowemapa', 'genitive' );
        $this->month_genitive['12'] = /* translators: month name, genitive */ _x( 'Kekemapa', 'genitive' );
    
    
        // Abbreviations for each month.
        $this->month_abbrev[ __( 'January' ) ]   = /* translators: three-letter abbreviation of the month */ _x( 'Ian', 'January abbreviation' );
        $this->month_abbrev[ __( 'February' ) ]  = /* translators: three-letter abbreviation of the month */ _x( 'Pep', 'February abbreviation' );
        $this->month_abbrev[ __( 'March' ) ]     = /* translators: three-letter abbreviation of the month */ _x( 'Mal', 'March abbreviation' );
        $this->month_abbrev[ __( 'April' ) ]     = /* translators: three-letter abbreviation of the month */ _x( 'ʻAp', 'April abbreviation' );
        $this->month_abbrev[ __( 'May' ) ]       = /* translators: three-letter abbreviation of the month */ _x( 'Mei', 'May abbreviation' );
        $this->month_abbrev[ __( 'June' ) ]      = /* translators: three-letter abbreviation of the month */ _x( 'Iun', 'June abbreviation' );
        $this->month_abbrev[ __( 'July' ) ]      = /* translators: three-letter abbreviation of the month */ _x( 'Iul', 'July abbreviation' );
        $this->month_abbrev[ __( 'August' ) ]    = /* translators: three-letter abbreviation of the month */ _x( 'ʻAu', 'August abbreviation' );
        $this->month_abbrev[ __( 'September' ) ] = /* translators: three-letter abbreviation of the month */ _x( 'Kep', 'September abbreviation' );
        $this->month_abbrev[ __( 'October' ) ]   = /* translators: three-letter abbreviation of the month */ _x( 'ʻOk', 'October abbreviation' );
        $this->month_abbrev[ __( 'November' ) ]  = /* translators: three-letter abbreviation of the month */ _x( 'Now', 'November abbreviation' );
        $this->month_abbrev[ __( 'December' ) ]  = /* translators: three-letter abbreviation of the month */ _x( 'Kek', 'December abbreviation' );
    
        // The Meridiems
        $this->meridiem['am'] = __('am');
        $this->meridiem['pm'] = __('pm');
        $this->meridiem['AM'] = __('AM');
        $this->meridiem['PM'] = __('PM');
    

    • This topic was modified 6 years, 3 months ago by kanaeokana. Reason: missing mention of image attachment
    #1426511

    Hi Koretti,

    Thanks so much for reaching out!

    Just to let you know, we are limited by our Support Policy in how much we can help with customizations, but I will try to point you in the right direction.

    As an alternative route, you can try using the method provided in the following Knowledgebase article:

    https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/

    You can also try using a third-party plugin like Say What?

    Let me know how it goes!

     

    Thanks,

    Jaime

     

    #1445212
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘null displaying for days of week in calendar control.’ is closed to new replies.