Changeset 5679

Show
Ignore:
Timestamp:
04/10/07 12:27:01 (2 years ago)
Author:
bergie
Message:

Localization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/midcom.helper.replicator/locale/default.en.txt

    r5477 r5679  
    1212---STRINGEND 
    1313 
     14---STRING exported 
     15Exported from database 
     16---STRINGEND 
     17 
    1418---STRING exporter 
    1519Exporting type 
     20---STRINGEND 
     21 
     22---STRING from log file 
     23From log file 
     24---STRINGEND 
     25 
     26---STRING imported 
     27Imported to database 
    1628---STRINGEND 
    1729 
     
    2234---STRING mirroring subscription 
    2335Mirror 
     36---STRINGEND 
     37 
     38---STRING replication information 
     39Replication information 
     40---STRINGEND 
     41 
     42---STRING replication information for %s 
     43Replication information for %s 
    2444---STRINGEND 
    2545 
     
    4464---STRINGEND 
    4565 
     66---STRING never 
     67Never 
     68---STRINGEND 
     69 
  • trunk/src/midcom.helper.replicator/locale/default.fi.txt

    r5477 r5679  
    1212---STRINGEND 
    1313 
     14---STRING exported 
     15Viety tietokannasta ulos 
     16---STRINGEND 
     17 
    1418---STRING exporter 
    1519Vientityyppi 
     20---STRINGEND 
     21 
     22---STRING from log file 
     23Lokitiedostosta 
     24---STRINGEND 
     25 
     26---STRING imported 
     27Tuotu ulkopuolelta tietokantaan 
    1628---STRINGEND 
    1729 
     
    2234---STRING mirroring subscription 
    2335Peilaus 
     36---STRINGEND 
     37 
     38---STRING replication information 
     39Replikointitiedot 
     40---STRINGEND 
     41 
     42---STRING replication information for %s 
     43Replikointitiedot: %s 
    2444---STRINGEND 
    2545 
     
    4464---STRINGEND 
    4565 
     66---STRING never 
     67Ei koskaan 
     68---STRINGEND 
     69 
  • trunk/src/midcom.helper.replicator/manager.php

    r5676 r5679  
    385385        } 
    386386         
    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); 
    389407 
    390408        return true; 
  • trunk/src/midcom.helper.replicator/style/midcom-helper-replicator-object.php

    r5677 r5679  
     1<?php 
     2if ($data['object']->metadata->imported == 0) 
     3{ 
     4    $imported = $_MIDCOM->i18n->get_string('never', 'midcom.helper.replicator'); 
     5} 
     6else 
     7{ 
     8    $imported = strftime('%x %X', $data['object']->metadata->imported); 
     9} 
     10 
     11if ($data['object']->metadata->exported == 0) 
     12{ 
     13    $exported = $_MIDCOM->i18n->get_string('never', 'midcom.helper.replicator'); 
     14} 
     15else 
     16{ 
     17    $exported = strftime('%x %X', $data['object']->metadata->exported); 
     18} 
     19?> 
    120<h1><?php echo $data['view_title']; ?></h1> 
    221 
    322<table> 
    423    <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> 
    726    </tr> 
    827    <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> 
    1130    </tr> 
    1231</table> 
    1332 
    1433<?php 
    15 echo "<h2>" . $data['l10n']->get('from log file') . "</h2>\n"; 
     34echo "<h2>" . $_MIDCOM->i18n->get_string('from log file', 'midcom.helper.replicator') . "</h2>\n"; 
    1635 
    1736$output = array();