{"id":1424210,"date":"2018-01-11T16:09:08","date_gmt":"2018-01-12T00:09:08","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/"},"modified":"2018-01-11T16:11:35","modified_gmt":"2018-01-12T00:11:35","slug":"null-displaying-for-days-of-week-in-calendar-control","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/","title":{"rendered":"null displaying for days of week in calendar control."},"content":{"rendered":"<p>See screenshot at bottom of post to see issue.<\/p>\n<p>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.<\/p>\n<p>I&#8217;m trying out how to fix this and keep the Hawaiian names for the days of week.<br \/>\nWhen going in I see the translators size.<\/p>\n<p>I&#8217;ve seen your localization page but it doesn&#8217;t apply because we&#8217;re not localizing the site.<\/p>\n<p>Do you have a solution that may work to fix the null&#8217;s display.<\/p>\n<p>Modified code from class-wp-locale.php attached.<br \/>\nSite: http:\/\/kanaeokana.net\/alemanaka<br \/>\n<code><br \/>\n        \/\/ The Weekdays<br \/>\n        $this-&gt;weekday[0] = \/* translators: weekday *\/ __('L\u0101pule');<br \/>\n        $this-&gt;weekday[1] = \/* translators: weekday *\/ __('P\u014d\u02bbakahi');<br \/>\n        $this-&gt;weekday[2] = \/* translators: weekday *\/ __('P\u014d\u02bbalua');<br \/>\n        $this-&gt;weekday[3] = \/* translators: weekday *\/ __('P\u014d\u02bbakolu');<br \/>\n        $this-&gt;weekday[4] = \/* translators: weekday *\/ __('P\u014d\u02bbah\u0101');<br \/>\n        $this-&gt;weekday[5] = \/* translators: weekday *\/ __('P\u014d\u02bbalima');<br \/>\n        $this-&gt;weekday[6] = \/* translators: weekday *\/ __('P\u014d\u02bbaono');<\/p>\n<pre><code>    \/\/ The first letter of each day.\n    $this-&amp;gt;weekday_initial[ __( 'Sunday' ) ]    = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'S', 'Sunday initial' );\n    $this-&amp;gt;weekday_initial[ __( 'Monday' ) ]    = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'M', 'Monday initial' );\n    $this-&amp;gt;weekday_initial[ __( 'Tuesday' ) ]   = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'T', 'Tuesday initial' );\n    $this-&amp;gt;weekday_initial[ __( 'Wednesday' ) ] = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'W', 'Wednesday initial' );\n    $this-&amp;gt;weekday_initial[ __( 'Thursday' ) ]  = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'T', 'Thursday initial' );\n    $this-&amp;gt;weekday_initial[ __( 'Friday' ) ]    = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'F', 'Friday initial' );\n    $this-&amp;gt;weekday_initial[ __( 'Saturday' ) ]  = \/* translators: one-letter abbreviation of the weekday *\/ _x( 'S', 'Saturday initial' );\n\n    \/\/ Abbreviations for each day.\n    $this-&amp;gt;weekday_abbrev[__('Sunday')]    = \/* translators: three-letter abbreviation of the weekday *\/ __('LP');\n    $this-&amp;gt;weekday_abbrev[__('Monday')]    = \/* translators: three-letter abbreviation of the weekday *\/ __('P1');\n    $this-&amp;gt;weekday_abbrev[__('Tuesday')]   = \/* translators: three-letter abbreviation of the weekday *\/ __('P2');\n    $this-&amp;gt;weekday_abbrev[__('Wednesday')] = \/* translators: three-letter abbreviation of the weekday *\/ __('P3');\n    $this-&amp;gt;weekday_abbrev[__('Thursday')]  = \/* translators: three-letter abbreviation of the weekday *\/ __('P4');\n    $this-&amp;gt;weekday_abbrev[__('Friday')]    = \/* translators: three-letter abbreviation of the weekday *\/ __('P5');\n    $this-&amp;gt;weekday_abbrev[__('Saturday')]  = \/* translators: three-letter abbreviation of the weekday *\/ __('P6');\n\n    \/\/ The Months\n    $this-&amp;gt;month['01'] = \/* translators: month name *\/ __( 'Ianuali' );\n    $this-&amp;gt;month['02'] = \/* translators: month name *\/ __( 'Pepeluali' );\n    $this-&amp;gt;month['03'] = \/* translators: month name *\/ __( 'Malaki' );\n    $this-&amp;gt;month['04'] = \/* translators: month name *\/ __( '\u02bbApelila' );\n    $this-&amp;gt;month['05'] = \/* translators: month name *\/ __( 'Mei' );\n    $this-&amp;gt;month['06'] = \/* translators: month name *\/ __( 'Iune' );\n    $this-&amp;gt;month['07'] = \/* translators: month name *\/ __( 'Iulai' );\n    $this-&amp;gt;month['08'] = \/* translators: month name *\/ __( '\u02bbAukake' );\n    $this-&amp;gt;month['09'] = \/* translators: month name *\/ __( 'Kepakemapa' );\n    $this-&amp;gt;month['10'] = \/* translators: month name *\/ __( '\u02bbOkakopa' );\n    $this-&amp;gt;month['11'] = \/* translators: month name *\/ __( 'Nowemapa' );\n    $this-&amp;gt;month['12'] = \/* translators: month name *\/ __( 'Kekemapa' );\n\n    \/\/ The Months, genitive\n    $this-&amp;gt;month_genitive['01'] = \/* translators: month name, genitive *\/ _x( 'Ianuali', 'genitive' );\n    $this-&amp;gt;month_genitive['02'] = \/* translators: month name, genitive *\/ _x( 'Pepeluali', 'genitive' );\n    $this-&amp;gt;month_genitive['03'] = \/* translators: month name, genitive *\/ _x( 'Malaki', 'genitive' );\n    $this-&amp;gt;month_genitive['04'] = \/* translators: month name, genitive *\/ _x( '\u02bbApelila', 'genitive' );\n    $this-&amp;gt;month_genitive['05'] = \/* translators: month name, genitive *\/ _x( 'Mei', 'genitive' );\n    $this-&amp;gt;month_genitive['06'] = \/* translators: month name, genitive *\/ _x( 'Iune', 'genitive' );\n    $this-&amp;gt;month_genitive['07'] = \/* translators: month name, genitive *\/ _x( 'Iulai', 'genitive' );\n    $this-&amp;gt;month_genitive['08'] = \/* translators: month name, genitive *\/ _x( '\u02bbAukake', 'genitive' );\n    $this-&amp;gt;month_genitive['09'] = \/* translators: month name, genitive *\/ _x( 'Kepakemapa', 'genitive' );\n    $this-&amp;gt;month_genitive['10'] = \/* translators: month name, genitive *\/ _x( '\u02bbOkakopa', 'genitive' );\n    $this-&amp;gt;month_genitive['11'] = \/* translators: month name, genitive *\/ _x( 'Nowemapa', 'genitive' );\n    $this-&amp;gt;month_genitive['12'] = \/* translators: month name, genitive *\/ _x( 'Kekemapa', 'genitive' );\n\n\n    \/\/ Abbreviations for each month.\n    $this-&amp;gt;month_abbrev[ __( 'January' ) ]   = \/* translators: three-letter abbreviation of the month *\/ _x( 'Ian', 'January abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'February' ) ]  = \/* translators: three-letter abbreviation of the month *\/ _x( 'Pep', 'February abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'March' ) ]     = \/* translators: three-letter abbreviation of the month *\/ _x( 'Mal', 'March abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'April' ) ]     = \/* translators: three-letter abbreviation of the month *\/ _x( '\u02bbAp', 'April abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'May' ) ]       = \/* translators: three-letter abbreviation of the month *\/ _x( 'Mei', 'May abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'June' ) ]      = \/* translators: three-letter abbreviation of the month *\/ _x( 'Iun', 'June abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'July' ) ]      = \/* translators: three-letter abbreviation of the month *\/ _x( 'Iul', 'July abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'August' ) ]    = \/* translators: three-letter abbreviation of the month *\/ _x( '\u02bbAu', 'August abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'September' ) ] = \/* translators: three-letter abbreviation of the month *\/ _x( 'Kep', 'September abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'October' ) ]   = \/* translators: three-letter abbreviation of the month *\/ _x( '\u02bbOk', 'October abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'November' ) ]  = \/* translators: three-letter abbreviation of the month *\/ _x( 'Now', 'November abbreviation' );\n    $this-&amp;gt;month_abbrev[ __( 'December' ) ]  = \/* translators: three-letter abbreviation of the month *\/ _x( 'Kek', 'December abbreviation' );\n\n    \/\/ The Meridiems\n    $this-&amp;gt;meridiem['am'] = __('am');\n    $this-&amp;gt;meridiem['pm'] = __('pm');\n    $this-&amp;gt;meridiem['AM'] = __('AM');\n    $this-&amp;gt;meridiem['PM'] = __('PM');\n<\/code><\/pre>\n<p><\/code><\/p>\n","protected":false},"template":"","class_list":["post-1424210","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>null displaying for days of week in calendar control. -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"null displaying for days of week in calendar control. -\" \/>\n<meta property=\"og:description\" content=\"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 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T00:11:35+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/\",\"name\":\"null displaying for days of week in calendar control. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-01-12T00:09:08+00:00\",\"dateModified\":\"2018-01-12T00:11:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"null displaying for days of week in calendar control.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"null displaying for days of week in calendar control. -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/","og_locale":"en_US","og_type":"article","og_title":"null displaying for days of week in calendar control. -","og_description":"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 [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/","article_modified_time":"2018-01-12T00:11:35+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/","name":"null displaying for days of week in calendar control. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-01-12T00:09:08+00:00","dateModified":"2018-01-12T00:11:35+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/null-displaying-for-days-of-week-in-calendar-control\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"null displaying for days of week in calendar control."}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1424210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1424210\/revisions"}],"predecessor-version":[{"id":1424212,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1424210\/revisions\/1424212"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1424210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}