Changeset 6959 for modules/branches/2.5/timeconditions/functions.inc.php
- Timestamp:
- 10/12/08 09:57:38 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/timeconditions/functions.inc.php
r6846 r6959 16 16 } else { 17 17 //$type = isset($active_modules['announcement']['type'])?$active_modules['announcement']['type']:'setup'; 18 return array('description' => 'Time Conditon : '.$thisexten['displayname'],18 return array('description' => sprintf(_("Time Condition: %s"),$thisexten['displayname']), 19 19 'edit_url' => 'config.php?display=timeconditions&itemid='.urlencode($exten), 20 20 ); … … 85 85 $thisdest = $result['truegoto']; 86 86 $thisid = $result['timeconditions_id']; 87 $description = 'Timecondition: '.$result['displayname'];87 $description = sprintf(_("Time Condition: %s"),$result['displayname']); 88 88 $thisurl = 'config.php?display=timeconditions&itemid='.urlencode($thisid); 89 89 if ($dest === true || $dest = $thisdest) { … … 352 352 global $currentcomponent; 353 353 354 $descerr = 'Description must be alpha-numeric, and may not be left blank';354 $descerr = _("Description must be alpha-numeric, and may not be left blank"); 355 355 $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; 356 356 $action= isset($_REQUEST['action'])?$_REQUEST['action']:null; … … 365 365 if (!$extdisplay) { 366 366 $currentcomponent->addguielem('_top', new gui_pageheading('title', _("Add Time Group"), false), 0); 367 $currentcomponent->addguielem( 'Time Group', new gui_textbox('description', '', _("Description"), 'This will display as the name of this Time Group.', '!isAlphanumeric() || isWhitespace()', $descerr, false), 3);367 $currentcomponent->addguielem(_("Time Group"), new gui_textbox('description', '', _("Description"), _("This will display as the name of this Time Group."), '!isAlphanumeric() || isWhitespace()', $descerr, false), 3); 368 368 } else { 369 369 $savedtimegroup= timeconditions_timegroups_get_group($extdisplay); … … 385 385 386 386 387 $currentcomponent->addguielem(_("Time Group"), new gui_textbox('description', $description, 'Description', 'This will display as the name of this Time Group.', '', '', false), 3);387 $currentcomponent->addguielem(_("Time Group"), new gui_textbox('description', $description, _("Description"), _("This will display as the name of this Time Group."), '', '', false), 3); 388 388 $timelist = timeconditions_timegroups_get_times($extdisplay); 389 389 foreach ($timelist as $val) {
