Changeset 7286
- Timestamp:
- 11/16/08 16:01:39 (5 years ago)
- Files:
-
- modules/branches/2.6 (modified) (1 prop)
- modules/branches/2.6/dashboard/class.astinfo.php (modified) (1 diff)
- modules/branches/2.6/dashboard/dashboard.css (modified) (1 diff)
- modules/branches/2.6/dashboard/module.xml (modified) (2 diffs)
- modules/branches/2.6/dashboard/page.index.php (modified) (1 diff)
- modules/branches/2.6/queues/functions.inc.php (modified) (1 diff)
- modules/branches/2.6/queues/module.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6
- Property svnmerge-integrated changed from /modules/branches/2.5:1-7272 to /modules/branches/2.5:1-7285
modules/branches/2.6/dashboard/class.astinfo.php
r7186 r7286 215 215 } 216 216 $astout = explode("\n",$response['data']); 217 217 218 219 // Only translate and do the preg_replace if in another language, since it is a somewhat expensive operation 220 // 221 if ($_COOKIE['lang'] == "en_US") { 222 $translate = false; 223 } else { 224 $translate = true; 225 $units = array( 226 '/second/', '/seconds/', 227 '/minute/', '/minutes/', 228 '/hour/', '/hours/', 229 '/day/', '/days/', 230 '/week/', '/weeks/', 231 '/year/', '/years/', 232 ); 233 $tunits = array( 234 _('second'), _('seconds'), 235 _('minute'), _('minutes'), 236 _('hour'), _('hours'), 237 _('day'), _('days'), 238 _('week'), _('weeks'), 239 _('year'), _('years'), 240 ); 241 } 218 242 foreach ($astout as $line) { 219 243 if (preg_match('/^System uptime: (.*)$/i',$line,$matches)) { 220 244 $output["system"] = preg_replace('/,\s+(\d+ seconds?)?\s*$/', '', $matches[1]); 245 if ($translate) { 246 $output["system"] = preg_replace($units,$tunits,$output["system"]); 247 } 221 248 } else if (preg_match('/^Last reload: (.*)$/i',$line,$matches)) { 222 249 $output["reload"] = preg_replace('/,\s+(\d+ seconds?)?\s*$/', '', $matches[1]); 250 if ($translate) { 251 $output["reload"] = preg_replace($units,$tunits,$output["reload"]); 252 } 223 253 } 224 254 } modules/branches/2.6/dashboard/dashboard.css
r7222 r7286 35 35 .infobox h3 { 36 36 color: white; 37 margin-bottom:2px;38 margin-top:3px;39 37 } 40 38 modules/branches/2.6/dashboard/module.xml
r7274 r7286 2 2 <rawname>dashboard</rawname> 3 3 <name>System Dashboard</name> 4 <version>2.5.0. 3</version>4 <version>2.5.0.4</version> 5 5 <candisable>no</candisable> 6 6 <canuninstall>no</canuninstall> … … 18 18 </depends> 19 19 <changelog> 20 *2.5.0.4* #3401, #3404 20 21 *2.5.0.3* #3348, localizations 21 22 *2.5.0.2* localization string enclosures modules/branches/2.6/dashboard/page.index.php
r7250 r7286 282 282 global $astinfo; 283 283 $out = "<h3>"._("Uptime")."</h3><br />"; 284 $out .= '<table summary=" system information table">';284 $out .= '<table summary="'._('System Information Table').'">'; 285 285 /* 286 286 $out .= '<tr><th>Distro:</th><td>'.$sysinfo->distro().'</td></tr>'; modules/branches/2.6/queues/functions.inc.php
r6900 r7286 424 424 if (isset($members)) { 425 425 $count = 0; 426 $members = array_unique($members); 426 427 foreach ($members as $member) { 427 428 $fields[] = array($account,'member',$member,$count); modules/branches/2.6/queues/module.xml
r6928 r7286 2 2 <rawname>queues</rawname> 3 3 <name>Queues</name> 4 <version>2.5.4. 4</version>4 <version>2.5.4.5</version> 5 5 <type>setup</type> 6 6 <category>Inbound Call Control</category> … … 9 9 </description> 10 10 <changelog> 11 *2.5.4.5* #3400, #3380, various translations 11 12 *2.5.4.4* #3242, #3230, localization fixes 12 13 *2.5.4.3* #3222 sqlite3 … … 41 42 <queues>Queues</queues> 42 43 </menuitems> 43 <location>release/2.5/queues-2.5.4. 4.tgz</location>44 <md5sum> b57a3db9b9d3edd45087901dfbfb9b1f</md5sum>44 <location>release/2.5/queues-2.5.4.5.tgz</location> 45 <md5sum>4d5336ea4f133ddd78fd1e545f3ce6aa</md5sum> 45 46 </module>
