Changeset 5679
- Timestamp:
- 04/10/07 12:27:01 (2 years ago)
- Files:
-
- trunk/src/midcom.helper.replicator/locale/default.en.txt (modified) (3 diffs)
- trunk/src/midcom.helper.replicator/locale/default.fi.txt (modified) (3 diffs)
- trunk/src/midcom.helper.replicator/manager.php (modified) (1 diff)
- trunk/src/midcom.helper.replicator/style/midcom-helper-replicator-object.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/midcom.helper.replicator/locale/default.en.txt
r5477 r5679 12 12 ---STRINGEND 13 13 14 ---STRING exported 15 Exported from database 16 ---STRINGEND 17 14 18 ---STRING exporter 15 19 Exporting type 20 ---STRINGEND 21 22 ---STRING from log file 23 From log file 24 ---STRINGEND 25 26 ---STRING imported 27 Imported to database 16 28 ---STRINGEND 17 29 … … 22 34 ---STRING mirroring subscription 23 35 Mirror 36 ---STRINGEND 37 38 ---STRING replication information 39 Replication information 40 ---STRINGEND 41 42 ---STRING replication information for %s 43 Replication information for %s 24 44 ---STRINGEND 25 45 … … 44 64 ---STRINGEND 45 65 66 ---STRING never 67 Never 68 ---STRINGEND 69 trunk/src/midcom.helper.replicator/locale/default.fi.txt
r5477 r5679 12 12 ---STRINGEND 13 13 14 ---STRING exported 15 Viety tietokannasta ulos 16 ---STRINGEND 17 14 18 ---STRING exporter 15 19 Vientityyppi 20 ---STRINGEND 21 22 ---STRING from log file 23 Lokitiedostosta 24 ---STRINGEND 25 26 ---STRING imported 27 Tuotu ulkopuolelta tietokantaan 16 28 ---STRINGEND 17 29 … … 22 34 ---STRING mirroring subscription 23 35 Peilaus 36 ---STRINGEND 37 38 ---STRING replication information 39 Replikointitiedot 40 ---STRINGEND 41 42 ---STRING replication information for %s 43 Replikointitiedot: %s 24 44 ---STRINGEND 25 45 … … 44 64 ---STRINGEND 45 65 66 ---STRING never 67 Ei koskaan 68 ---STRINGEND 69 trunk/src/midcom.helper.replicator/manager.php
r5676 r5679 385 385 } 386 386 387 $data['view_title'] = sprintf($this->_l10n->get('replication information for %s'), $this->_resolve_object_title($data['object'])); 388 $_MIDCOM->set_pagetitle($data['view_title']); 387 $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('replication information for %s', 'midcom.helper.replicator'), $this->_resolve_object_title($data['object'])); 388 $_MIDCOM->set_pagetitle($data['view_title']); 389 390 $_MIDCOM->bind_view_to_object($data['object']); 391 392 $tmp = array(); 393 if (!is_a($data['object'], 'midcom_baseclasses_database_topic')) 394 { 395 $tmp[] = Array 396 ( 397 MIDCOM_NAV_URL => $_MIDCOM->permalinks->create_permalink($data['object']->guid), 398 MIDCOM_NAV_NAME => $this->_resolve_object_title($data['object']), 399 ); 400 } 401 $tmp[] = Array 402 ( 403 MIDCOM_NAV_URL => "__mfa/replication/object/{$data['object']->guid}.html", 404 MIDCOM_NAV_NAME => $_MIDCOM->i18n->get_string('replication information', 'midcom.helper.replicator'), 405 ); 406 $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); 389 407 390 408 return true; trunk/src/midcom.helper.replicator/style/midcom-helper-replicator-object.php
r5677 r5679 1 <?php 2 if ($data['object']->metadata->imported == 0) 3 { 4 $imported = $_MIDCOM->i18n->get_string('never', 'midcom.helper.replicator'); 5 } 6 else 7 { 8 $imported = strftime('%x %X', $data['object']->metadata->imported); 9 } 10 11 if ($data['object']->metadata->exported == 0) 12 { 13 $exported = $_MIDCOM->i18n->get_string('never', 'midcom.helper.replicator'); 14 } 15 else 16 { 17 $exported = strftime('%x %X', $data['object']->metadata->exported); 18 } 19 ?> 1 20 <h1><?php echo $data['view_title']; ?></h1> 2 21 3 22 <table> 4 23 <tr> 5 <th><?php echo $ data['l10n']->get('imported'); ?></th>6 <td> <?php echo strftime('%x %X', $data['object']->metadata->imported); ?></td>24 <th><?php echo $_MIDCOM->i18n->get_string('imported', 'midcom.helper.replicator'); ?></th> 25 <td>&(imported);</td> 7 26 </tr> 8 27 <tr> 9 <th><?php echo $ data['l10n']->get('exported'); ?></th>10 <td> <?php echo strftime('%x %X', $data['object']->metadata->exported); ?></td>28 <th><?php echo $_MIDCOM->i18n->get_string('exported', 'midcom.helper.replicator'); ?></th> 29 <td>&(exported);</td> 11 30 </tr> 12 31 </table> 13 32 14 33 <?php 15 echo "<h2>" . $ data['l10n']->get('from log file') . "</h2>\n";34 echo "<h2>" . $_MIDCOM->i18n->get_string('from log file', 'midcom.helper.replicator') . "</h2>\n"; 16 35 17 36 $output = array();
