Changeset 14655

Show
Ignore:
Timestamp:
01/27/08 18:29:11 (9 months ago)
Author:
flack
Message:

added German translation and a few missing strings to English

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.replicator/config/schemadb_default.inc

    r14322 r14655  
    4040        'filters' => Array 
    4141        ( 
    42             'title' => 'XML filters (for advanced users only)', 
     42            'title' => 'xml filters', 
    4343            'storage' => 'filtersSerialized', 
    4444            'type' => 'text', 
     
    5757            ), 
    5858            'widget' => 'select', 
    59         ),  
     59        ), 
    6060    ) 
    6161), 
     
    102102        'filters' => Array 
    103103        ( 
    104             'title' => 'XML filters (for advanced users only)', 
     104            'title' => 'xml filters', 
    105105            'storage' => 'filtersSerialized', 
    106106            'type' => 'text', 
     
    119119            ), 
    120120            'widget' => 'select', 
    121         ),  
     121        ), 
    122122    ) 
    123123), 
     
    164164        'filters' => Array 
    165165        ( 
    166             'title' => 'XML filters (for advanced users only)', 
     166            'title' => 'xml filters', 
    167167            'storage' => 'filtersSerialized', 
    168168            'type' => 'text', 
     
    181181            ), 
    182182            'widget' => 'select', 
    183         ),  
     183        ), 
    184184    ) 
    185185), 
  • trunk/midcom/midcom.helper.replicator/locale/default.en.txt

    r12743 r14655  
    120120---STRINGEND 
    121121 
     122---STRING xml filters 
     123XML filters (for advanced users only) 
     124---STRINGEND 
     125 
     126---STRING http post transport 
     127HTTP POST transport 
     128---STRINGEND 
     129 
     130---STRING mirroring subscription 
     131Mirroring Subscription 
     132---STRINGEND 
     133 
     134---STRING staging2live subscription with type filter 
     135Staging2live subscription with type filter 
     136---STRINGEND 
  • trunk/midcom/midcom.helper.replicator/manager.php

    r14385 r14655  
    22/** 
    33 * @package midcom.helper.replicator 
    4  * @author The Midgard Project, http://www.midgard-project.org  
     4 * @author The Midgard Project, http://www.midgard-project.org 
    55 * @version $Id: acl_editor.php 4207 2006-09-26 08:41:44Z bergie $ 
    66 * @copyright The Midgard Project, http://www.midgard-project.org 
     
    2828     */ 
    2929    var $_subscription = null; 
    30      
     30 
    3131    /** 
    3232     * The Datamanager of the member to display 
     
    5252     */ 
    5353    var $_schemadb = null; 
    54      
     54 
    5555    /** 
    5656     * The schema to use for the new subscription. 
     
    6060     */ 
    6161    var $_schema = 'default'; 
    62      
     62 
    6363    /** 
    6464     * The defaults to use for the new subscription. 
     
    7373        parent::midcom_baseclasses_components_handler(); 
    7474    } 
    75      
     75 
    7676    function get_plugin_handlers() 
    7777    { 
    78         $_MIDCOM->load_library('midgard.admin.asgard');     
     78        $_MIDCOM->load_library('midgard.admin.asgard'); 
    7979        return array 
    8080        ( 
     
    103103        ); 
    104104    } 
    105      
     105 
    106106    function _on_initialize() 
    107107    { 
    108108        $_MIDCOM->load_library('midcom.helper.replicator'); 
    109109        $_MIDCOM->load_library('midcom.helper.datamanager2'); 
    110          
     110 
    111111        // Ensure we get the correct styles 
    112112        $_MIDCOM->style->prepend_component_styledir('midcom.helper.replicator'); 
     
    114114        $component_data =& $GLOBALS['midcom_component_data']['midcom.helper.replicator']; 
    115115        $this->_local_config = $component_data['config']; 
    116          
     116 
    117117        $this->_load_schemadb(); 
    118118 
    119         midgard_admin_asgard_plugin::prepare_plugin('', &$this->_request_data);         
     119        midgard_admin_asgard_plugin::prepare_plugin('', &$this->_request_data); 
    120120        foreach (array_keys($this->_schemadb) as $name) 
    121121        { 
     
    128128                $prefix = 'create/'; 
    129129            } 
    130              
     130 
    131131            $this->_request_data['asgard_toolbar']->add_item 
    132132            ( 
     
    144144        } 
    145145    } 
    146      
     146 
    147147    function _update_breadcrumb($handler_id) 
    148148    { 
     
    174174        $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); 
    175175    } 
    176      
     176 
    177177    /** 
    178178     * Loads and prepares the schema database. 
     
    185185     */ 
    186186    function _load_schemadb() 
    187     {   
     187    { 
    188188        $this->_schemadb = midcom_helper_datamanager2_schema::load_database('file:/midcom/helper/replicator/config/schemadb_default.inc'); 
    189189    } 
    190      
     190 
    191191    function _handler_list($handler_id, $args, &$data) 
    192192    { 
     
    200200 
    201201        $data['view_title'] = $_MIDCOM->i18n->get_string('replication subscriptions', 'midcom.helper.replicator'); 
    202         $_MIDCOM->set_pagetitle($data['view_title']);  
     202        $_MIDCOM->set_pagetitle($data['view_title']); 
    203203 
    204204        return true; 
    205205    } 
    206      
     206 
    207207    /** 
    208208     * 
     
    214214        midcom_show_style('midgard_admin_asgard_header'); 
    215215        midcom_show_style('midgard_admin_asgard_middle'); 
    216      
     216 
    217217        $data['schemadb'] =& $this->_schemadb; 
    218218        $data['local_config'] =& $this->_local_config; 
    219219        midcom_show_style('midcom-helper-replicator-list'); 
    220          
     220 
    221221        midcom_show_style('midgard_admin_asgard_footer'); 
    222222 
     
    239239        } 
    240240    } 
    241      
     241 
    242242    /** 
    243243     * Internal helper, fires up the creation mode controller. Any error triggers a 500. 
     
    258258        } 
    259259    } 
    260      
     260 
    261261    function _modify_schema_for_object($subscription) 
    262262    { 
     
    274274        $this->_subscription->require_do('midgard:update'); 
    275275        $this->subscription->autoserialize_filters = false; 
    276          
     276 
    277277        $_MIDCOM->bind_view_to_object($this->_subscription, $this->_subscription->exporter); 
    278          
     278 
    279279        $this->_modify_schema_for_object($this->_subscription); 
    280          
     280 
    281281        // Load the datamanager controller 
    282282        $this->_load_controller(); 
    283          
     283 
    284284        switch ($this->_controller->process_form()) 
    285285        { 
     
    291291                $_MIDCOM->relocate('__mfa/asgard_midcom.helper.replicator/'); 
    292292                // This will exit. 
    293         }   
     293        } 
    294294 
    295295        $data['view_type'] = $_MIDCOM->i18n->get_string($this->_schemadb[$this->_subscription->exporter]->description, 'midcom.helper.replicator'); 
     
    299299        $data['view_title'] = $this->_subscription->title; 
    300300        $_MIDCOM->set_pagetitle($data['view_title']); 
    301          
     301 
    302302        return true; 
    303303    } 
    304      
     304 
    305305    /** 
    306306     * 
     
    312312        midcom_show_style('midgard_admin_asgard_header'); 
    313313        midcom_show_style('midgard_admin_asgard_middle'); 
    314      
     314 
    315315        $data['controller'] =& $this->_controller; 
    316316        midcom_show_style('midcom-helper-replicator-edit'); 
    317          
     317 
    318318        midcom_show_style('midgard_admin_asgard_footer'); 
    319319    } 
    320      
     320 
    321321    /** 
    322322     * DM2 creation callback, binds to the current content topic. 
     
    373373        } 
    374374 
    375         $data['view_title'] = sprintf($this->_l10n_midcom->get('create %s'), $this->_schemadb[$this->_schema]->description); 
     375        $data['view_title'] = sprintf($this->_l10n_midcom->get('create %s'), $_MIDCOM->i18n->get_string($this->_schemadb[$this->_schema]->description, 'midcom.helper.replicator')); 
    376376        $_MIDCOM->set_pagetitle("{$this->_topic->extra}: {$data['view_title']}"); 
    377377 
     
    380380        return true; 
    381381    } 
    382      
     382 
    383383    /** 
    384384     * 
     
    393393        $data['controller'] =& $this->_controller; 
    394394        midcom_show_style('midcom-helper-replicator-create'); 
    395          
     395 
    396396        midcom_show_style('midgard_admin_asgard_footer'); 
    397397    } 
     
    400400    { 
    401401        $vars = get_object_vars($object); 
    402          
     402 
    403403        if (   array_key_exists('title', $vars) 
    404             && $object->title)  
     404            && $object->title) 
    405405        { 
    406406            return $object->title; 
    407         }  
    408         elseif (array_key_exists('name', $vars))  
     407        } 
     408        elseif (array_key_exists('name', $vars)) 
    409409        { 
    410410            return $object->name; 
     
    415415        } 
    416416    } 
    417      
     417 
    418418    /** 
    419419     * Displays replication information for an object 
     
    451451            return false; 
    452452        } 
    453          
     453 
    454454 
    455455        if ($bind_toolbar) 
     
    462462        $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('replication information for %s', 'midcom.helper.replicator'), $this->_resolve_object_title($data['object'])); 
    463463        $_MIDCOM->set_pagetitle($data['view_title']); 
    464          
     464 
    465465        $_MIDCOM->add_link_head 
    466466        ( 
     
    475475        return true; 
    476476    } 
    477      
     477 
    478478    /** 
    479479     * 
     
    487487 
    488488        midcom_show_style('midcom-helper-replicator-object'); 
    489          
     489 
    490490        midcom_show_style('midgard_admin_asgard_footer'); 
    491491 
  • trunk/midcom/midcom.helper.replicator/transporter.php

    r14390 r14655  
    2020     */ 
    2121    var $subscription; 
    22      
     22 
    2323    /** 
    2424     * Possible processing error. 
     
    3737    { 
    3838         $this->_component = 'midcom.helper.replicator'; 
    39           
     39 
    4040         $this->subscription = $subscription; 
    41           
     41 
    4242         parent::midcom_baseclasses_components_purecode(); 
    4343    } 
    44      
     44 
    4545    /** 
    4646     * This is a static factory method which lets you dynamically create transporter instances. 
     
    6060        $type = $subscription->transporter; 
    6161        $filename = MIDCOM_ROOT . "/midcom/helper/replicator/transporter/{$type}.php"; 
    62          
     62 
    6363        if (!file_exists($filename)) 
    6464        { 
     
    6868        require_once($filename); 
    6969 
    70         $classname = "midcom_helper_replicator_transporter_{$type}";         
     70        $classname = "midcom_helper_replicator_transporter_{$type}"; 
    7171        if (!class_exists($classname)) 
    7272        { 
     
    7474            // This will exit. 
    7575        } 
    76          
     76 
    7777        /** 
    7878         * Php 4.4.1 does not allow you to return a reference to an expression. 
     
    8282        return $class; 
    8383    } 
    84      
     84 
    8585    function list_transports() 
    8686    { 
     
    8989            'email' => $_MIDCOM->i18n->get_string('email transport', 'midcom.helper.replicator'), 
    9090            'archive' => $_MIDCOM->i18n->get_string('file archive transport', 'midcom.helper.replicator'), 
    91             'http' => $_MIDCOM->i18n->get_string('HTTP POST transport', 'midcom.helper.replicator'), 
     91            'http' => $_MIDCOM->i18n->get_string('http post transport', 'midcom.helper.replicator'), 
    9292        ); 
    9393    } 
     
    116116        return false; 
    117117    } 
    118      
     118 
    119119    /** 
    120120     * This method allows transporters to tell what they're doing in the subscription list.