[wp-trac] [WordPress Trac] #28344: Remove "Week Starts On" setting UI

WordPress Trac noreply at wordpress.org
Sun May 25 08:04:39 UTC 2014


#28344: Remove "Week Starts On" setting UI
--------------------------------+---------------------------------
 Reporter:  markjaquith         |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  low                 |   Milestone:  4.0
Component:  Options, Meta APIs  |     Version:
 Severity:  minor               |  Resolution:
 Keywords:  needs-patch         |     Focuses:  ui, administration
--------------------------------+---------------------------------

Comment (by ramiy):

 Replying to [comment:7 SergeyBiryukov]:
 > Replying to [comment:3 ramiy]:
 > > We can move this setting to the
 [http://translate.wordpress.org/projects/wp local translation file]. Right
 now, each language can set it's
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/locale.php#L184 "text direction" (LTR/RTL)] and there are few
 other settings set from there. I think that if you want to hide this
 setting, it's better to move it to there.
 >
 > I think that's what this ticket means. It depends on the locale, so it
 should be set in language files. It just doesn't have to be a UI option.

 Sergey, i think that we both agree that if we want to remove this setting
 from the UI, it should be set in language files.

 I also think we need to add a filter to override the local settings. For
 calendar plugins, as Pippin Williamson mentioned. It should be an easy to
 use filter, something like:

 {{{
 function custom_week_starts_filter() {
   return '0'; // for sunday
 }
 add_filter( 'week_starts_on', 'custom_week_starts_filter' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28344#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list