Changeset 8626
- Timestamp:
- Jan 12, 2011, 2:41:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r8126 r8626 247 247 'CONF_PAGE_BANNER' => htmlspecialchars($conf['page_banner']), 248 248 'CONF_GALLERY_URL' => $conf['gallery_url'], 249 'week_starts_on_options' => array( 250 'sunday' => $lang['day'][0], 251 'monday' => $lang['day'][1], 252 ), 253 'week_starts_on_options_selected' => $conf['week_starts_on'], 249 254 )); 250 255 -
trunk/admin/themes/default/template/configuration.tpl
r8128 r8626 86 86 <span class="property">{'Email admins when a new user registers'|@translate}</span> 87 87 <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}> 88 </label> 89 </li> 90 91 <li> 92 <label> 93 <span class="property"> 94 {'Week starts on'|@translate} 95 {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected} 96 </span> 88 97 </label> 89 98 </li> -
trunk/include/calendar_monthly.class.php
r6363 r8626 331 331 function build_month_calendar(&$tpl_var) 332 332 { 333 global $page ;333 global $page, $lang, $conf; 334 334 335 335 $query='SELECT '.pwg_db_get_dayofmonth($this->date_field).' as period, … … 369 369 $items[$day]['height'] = $row['height']; 370 370 $items[$day]['dow'] = $row['dow']; 371 } 372 373 global $lang, $conf; 371 372 if ('sunday' == $conf['week_starts_on']) 373 { 374 $items[$day]['dow']++; 375 } 376 } 374 377 375 378 if ( !empty($items) … … 396 399 $first_day_dow -= 1; 397 400 } 398 array_push( $wday_labels, array_shift($wday_labels) ); 401 402 if ('monday' == $conf['week_starts_on']) 403 { 404 array_push( $wday_labels, array_shift($wday_labels) ); 405 } 399 406 // END - pass now in week starting Monday 400 407 -
trunk/install/config.sql
r6411 r8626 52 52 'Information displayed on picture page' 53 53 ); 54 INSERT INTO piwigo_config (param,value,comment) VALUES ('week_starts_on','monday','Monday may not be the first day of the week'); -
trunk/language/en_UK/admin.lang.php
r8422 r8626 800 800 $lang['with no album'] = 'with no album'; 801 801 $lang['with no tag'] = 'with no tag'; 802 $lang['Week starts on'] = 'Week starts on'; 802 803 ?> -
trunk/language/fr_FR/admin.lang.php
r8498 r8626 804 804 $lang['with no album'] = 'sans album'; 805 805 $lang['with no tag'] = 'sans tag'; 806 $lang['Week starts on'] = 'La semaine commence le'; 806 807 ?>
Note: See TracChangeset
for help on using the changeset viewer.