Changeset 15081

Show
Ignore:
Timestamp:
02/18/08 00:25:37 (8 months ago)
Author:
flack
Message:

spelling/JS fix: lenght -> length

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/fi.hut.loginbroker/callbacks/prototypes.php

    r14515 r15081  
    4747 
    4848    /** 
    49      * Helper to generate random string of printable characters of given lenght 
    50      * 
    51      * @param int $lenght how many characters? 
     49     * Helper to generate random string of printable characters of given length 
     50     * 
     51     * @param int $length how many characters? 
    5252     * @return string of random garbage 
    5353     */ 
  • trunk/midcom/midcom.admin.styleeditor/admin.php

    r14773 r15081  
    11<?php 
     2 
    23/** 
    3  * Request class for editing styles 
     4 * Request class for editing styles  
    45 * @package midcom.admin.styleeditor 
    5  * 
     6 *  
    67 */ 
    78 
    8 /** 
    9  * 
    10  * @package midcom.admin.styleeditor 
    11  */ 
    129class midcom_admin_styleeditor_admin  extends midcom_baseclasses_components_request_admin { 
    13  
     10     
    1411    var $msg; 
    1512 
    16     /** 
    17      * the current topic we are in 
    18      * 
     13    /* the current topic we are in  
    1914     * @var current_topic 
    20      * @access public 
    21      *
     15     * @access public  
     16     **
    2217    var $_current_topic = 0; 
    23  
    24     /** 
    25      * pointer to midcom_session_object 
    26      */ 
     18    /* pointer to midcom_session_object */ 
    2719    var $_session = null; 
    2820 
    2921    /** 
    3022     * The schema database associated with articles. 
    31      * 
     23     *  
    3224     * @var Array 
    3325     * @access private 
    3426     */ 
    3527    var $_schemadb = Array(); 
    36  
    37  
    38     function midcom_admin_styleeditor_viewer($topic, $config) 
     28     
     29 
     30    function midcom_admin_styleeditor_viewer($topic, $config)  
    3931    { 
    4032        //$page = mgd_get_object_by_guid($config->get("root_page")); 
    4133        parent::midcom_baseclasses_components_request($topic, $config); 
    42  
     34         
    4335        $this->msg = ""; 
    4436 
     
    4739 
    4840    function _on_initialize() { 
    49  
    50  
     41         
     42                    
    5143           $_MIDCOM->cache->content->no_cache(); 
    5244        $_MIDCOM->auth->require_valid_user(); 
    53  
    54         // edit/<page>/topic gives you the root style. 
     45     
     46        // edit/<page>/topic gives you the root style.  
    5547        $this->request_switch[] = Array 
    5648        ( 
     
    7971        ); 
    8072    } 
    81  
     73     
    8274    /** 
    8375     * This function adds all of the standard items (configuration and create links) 
    8476     * to the topic toolbar. 
    85      * 
     77     *  
    8678     * @access private 
    8779     */ 
     
    9587            MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_folder-properties.png', 
    9688            MIDCOM_TOOLBAR_ENABLED => true, 
    97             MIDCOM_TOOLBAR_HIDDEN => 
     89            MIDCOM_TOOLBAR_HIDDEN =>  
    9890            ( 
    9991                   ! $_MIDCOM->auth->can_do('midgard:update', $this->_topic) 
     
    10193            ) 
    10294        )); 
    103        // this should be in article.php. 
    104         if (0) foreach (array_reverse($this->_schemadb_article_index, true) as $name => $desc) 
    105         { 
     95       // this should be in article.php.  
     96        if (0) foreach (array_reverse($this->_schemadb_article_index, true) as $name => $desc)  
     97        {  
    10698            $text = sprintf($this->_l10n_midcom->get('create %s'), $desc); 
    10799            $toolbar->top->add_item( 
    108                 Array 
     100                Array  
    109101                ( 
    110                     MIDCOM_TOOLBAR_URL => "create/{$name}.html", 
     102                    MIDCOM_TOOLBAR_URL => "create/{$name}.html",  
    111103                    MIDCOM_TOOLBAR_LABEL => $text, 
    112104                    MIDCOM_TOOLBAR_HELPTEXT => null, 
     
    116108                ), 0); 
    117109        } 
    118  
     110     
    119111        $current_topic = $this->_current_topic; 
    120         // topic stuff 
     112        // topic stuff     
    121113        $toolbar->top->add_item(Array( 
    122114            MIDCOM_TOOLBAR_URL => "styleeditor/topic/create/{$current_topic}", 
     
    139131            MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/topic-score.png', 
    140132            MIDCOM_TOOLBAR_ENABLED => true 
    141         )); 
     133        ));  
    142134        $toolbar->top->add_item(Array( 
    143135            MIDCOM_TOOLBAR_URL => "styleeditor/topic/delete/{$current_topic}", 
     
    155147            MIDCOM_TOOLBAR_ENABLED => true 
    156148        )); 
    157  
    158  
    159     } 
    160  
     149         
     150                 
     151    } 
     152     
    161153    function _prepare_meta_toolbar() 
    162154    { 
     
    164156 
    165157        // First, we retrieve a metadata object for the currently active object. 
    166         // We can only create a toolbar if and only if 
     158        // We can only create a toolbar if and only if  
    167159        $nav = new midcom_helper_nav($this->_context); 
    168160        $nap_obj = null; 
     
    181173            return; 
    182174        } 
    183  
     175         
    184176        if (mgd_is_topic_owner($topic->id)) 
    185177        { 
    186  
    187  
     178             
     179             
    188180            $prefix = "{$this->viewdata['admintopicprefix']}meta/{$nap_obj[MIDCOM_NAV_GUID]}"; 
    189  
     181             
    190182            $toolbar->add_item(Array( 
    191183                MIDCOM_TOOLBAR_URL => null, 
     
    195187                MIDCOM_TOOLBAR_ENABLED => false, 
    196188            )); 
    197  
     189             
    198190            if ($meta->is_approved()) 
    199191            { 
     
    216208                )); 
    217209            } 
    218  
     210             
    219211            if ($meta->get('hide')) 
    220212            { 
     
    237229                )); 
    238230            } 
    239  
     231             
    240232            $toolbar->add_item(Array( 
    241233                MIDCOM_TOOLBAR_URL => "{$prefix}/edit.html", 
     
    245237                MIDCOM_TOOLBAR_ENABLED => true, 
    246238            )); 
    247  
     239             
    248240            $start = $meta->get('schedule_start'); 
    249241            $end = $meta->get('schedule_end'); 
     
    251243            { 
    252244                $now = time(); 
    253  
     245                 
    254246                $text = ''; 
    255247                if ($start && $end) 
     
    269261                                    strftime("%x %X", $end)); 
    270262                } 
    271  
     263                 
    272264                if (   (! $start || $start <= $now) 
    273265                    && (! $end || $end >= $now)) 
     
    279271                        MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/scheduled_and_shown.png', 
    280272                        MIDCOM_TOOLBAR_ENABLED => false, 
    281                     )); 
     273                    ));                     
    282274                } 
    283275                else 
     
    289281                        MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/scheduled_but_hidden.png', 
    290282                        MIDCOM_TOOLBAR_ENABLED => false, 
    291                     )); 
    292                 } 
    293             } 
    294         } 
    295     } 
    296  
    297     /** 
    298      * @return boolean Indicating success. 
    299      */ 
     283                    ));                     
     284                } 
     285            } 
     286        } 
     287    } 
     288    
    300289       function _handler_index() { 
    301  
     290            
    302291           return true; 
    303        } 
    304  
     292       }  
     293    
    305294    function _show_index() { 
    306295       midcom_show_style('index'); 
    307296    } 
    308  
    309  
     297     
     298         
    310299    /** 
    311300     * Display the content, it uses the handler as determined by can_handle. 
    312      * This overrides the basic show method of the class to include the ais style around the component. 
    313      * 
    314      * @see _on_show() 
     301     * This overrides the basic show method of the class to include the ais style around the component.  
     302     *  
     303     * @see _on_show(); 
    315304     */ 
    316305    function show() 
    317306    { 
    318307         debug_push_class($this, 'show'); 
    319  
    320  
    321  
     308         
     309         
     310         
    322311        // Call the event handler 
    323312        $result = $this->_on_show($this->_handler['id']); 
     
    328317            return; 
    329318        } 
    330  
     319         
    331320        // Call the handler: 
    332321        $handler =& $this->_handler['handler'][0]; 
    333322        $method = "_show_{$this->_handler['handler'][1]}"; 
    334  
     323         
    335324        $handler->$method($this->_handler['id'], $this->_request_data); 
    336325        debug_pop(); 
  • trunk/midcom/midcom.admin.styleeditor/config/manifest.inc

    r15038 r15081  
    22'description' => 'Style editor for Midgard style templates', 
    33'purecode' => true, 
    4 'version' => '0.3.0beta1', 
     4'version' => '0.3.0', 
    55'privileges' => array(), 
    66'class_definitions' => array(), 
     
    2525    'dependencies' => array 
    2626    ( 
    27         'midcom.admin.help'
     27        'midcom.admin.help' => array()
    2828        'midcom' => array(), 
    2929    ), 
    3030), 
    31 'state' => 'beta', 
     31'state' => 'stable', 
    3232'customdata' => array 
    3333( 
     
    3636        'class' => 'midcom_admin_styleeditor_viewer', 
    3737        'src' => 'file:/midcom/admin/styleeditor/viewer.php', 
    38         'name' => 'midcom.admin.styleeditor', 
     38        'name' => 'Style Editor', 
    3939        'config' => '', 
    4040    ), 
  • trunk/midcom/midcom.admin.styleeditor/documentation/CHANGES

    r13624 r15081  
    66  not guaranteed to be backwards compatible to previous versions 
    77  which might even break existing functionality. 
    8 - All items marked with "+" represent completely new features. 
     8- All items marked with "+" represent completly new features. 
    99 
    10102007-03-21 
  • trunk/midcom/midcom.admin.styleeditor/handler/create.php

    r14388 r15081  
    147147     * @param string $handler_id Name of the used handler 
    148148     * @param mixed $args Array containing the variable arguments passed to the handler 
    149      * @param mixed &$data Data passed to the show method 
     149     * @param mixed $data Data passed to the show method 
    150150     * @return boolean Indicating successful request 
    151151     */ 
     
    208208            ) 
    209209        ); 
    210  
    211         $data['asgard_toolbar']->add_item 
    212         ( 
    213             array 
    214             ( 
    215                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX), 
    216                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'), 
    217                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png', 
    218             ) 
    219         ); 
    220  
    221         $data['asgard_toolbar']->add_item 
    222         ( 
    223             array 
    224             ( 
    225                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-", 
    226                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'), 
    227                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png', 
    228             ) 
    229         ); 
    230  
    231210         
    232211        // Add the page title 
     
    241220     * @access private 
    242221     * @param string $handler_id Name of the used handler 
    243      * @param mixed &$data Data passed to the show method 
     222     * @param mixed $data Data passed to the show method 
    244223     */ 
    245224    function _show_create($handler_id, &$data) 
  • trunk/midcom/midcom.admin.styleeditor/handler/edit.php

    r14773 r15081  
    185185     * @param string $handler_id Name of the used handler 
    186186     * @param mixed $args Array containing the variable arguments passed to the handler 
    187      * @param mixed &$data Data passed to the show method 
     187     * @param mixed $data Data passed to the show method 
    188188     * @return boolean Indicating successful request 
    189189     */ 
     
    301301            ) 
    302302        ); 
    303  
    304         $data['asgard_toolbar']->add_item 
    305         ( 
    306             array 
    307             ( 
    308                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX), 
    309                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'), 
    310                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png', 
    311             ) 
    312         ); 
    313  
    314         $data['asgard_toolbar']->add_item 
    315         ( 
    316             array 
    317             ( 
    318                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-", 
    319                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'), 
    320                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png', 
    321             ) 
    322         ); 
    323303         
    324304        // Add the page title 
     
    333313     * @access private 
    334314     * @param string $handler_id Name of the used handler 
    335      * @param mixed &$data Data passed to the show method 
     315     * @param mixed $data Data passed to the show method 
    336316     */ 
    337317    function _show_edit($handler_id, &$data) 
  • trunk/midcom/midcom.admin.styleeditor/handler/file.php

    r14388 r15081  
    6161    } 
    6262     
    63  
    64     function _prepare_toolbar(&$data) 
    65     { 
    66  
    67         // Set the Asgard toolbar 
    68         $data['asgard_toolbar'] = new midcom_helper_toolbar(); 
    69          
    70         $data['asgard_toolbar']->add_item 
    71         ( 
    72             array 
    73             ( 
    74                 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 
    75                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 
    76                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
    77             ) 
    78         );         
    79         $data['asgard_toolbar']->add_item 
    80         ( 
    81             array 
    82             ( 
    83                 MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 
    84                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 
    85                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 
    86             ) 
    87         ); 
    88  
    89         $data['asgard_toolbar']->add_item 
    90         ( 
    91             array 
    92             ( 
    93                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX), 
    94                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'), 
    95                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png', 
    96             ) 
    97         ); 
    98  
    99         $data['asgard_toolbar']->add_item 
    100         ( 
    101             array 
    102             ( 
    103                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-", 
    104                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'), 
    105                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png', 
    106             ) 
    107         ); 
    108  
    109     } 
    110  
    11163    /** 
    11264     * Rewrite a filename to URL safe form 
    11365     * 
    114      * @param string $filename file name to rewrite 
     66     * @param $filename string file name to rewrite 
    11567     * @return string rewritten filename 
    11668     */ 
     
    382334     * @param string $handler_id Name of the used handler 
    383335     * @param mixed $args Array containing the variable arguments passed to the handler 
    384      * @param mixed &$data Data passed to the show method 
     336     * @param mixed $data Data passed to the show method 
    385337     * @return boolean Indicating successful request 
    386338     */ 
     
    415367        $_MIDCOM->skip_page_style = true; 
    416368         
    417         $this->_prepare_toolbar($data); 
    418  
     369        // Set the Asgard toolbar 
     370        $data['asgard_toolbar'] = new midcom_helper_toolbar(); 
     371         
     372        $data['asgard_toolbar']->add_item 
     373        ( 
     374            array 
     375            ( 
     376                MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 
     377                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 
     378                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
     379            ) 
     380        );         
     381        $data['asgard_toolbar']->add_item 
     382        ( 
     383            array 
     384            ( 
     385                MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 
     386                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 
     387                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 
     388            ) 
     389        ); 
     390         
    419391        // Add the page title 
    420392        $data['view_title'] = $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'); 
     
    428400     * @access private 
    429401     * @param string $handler_id Name of the used handler 
    430      * @param mixed &$data Data passed to the show method 
     402     * @param mixed $data Data passed to the show method 
    431403     */ 
    432404    function _show_new($handler_id, &$data) 
     
    450422     * @param string $handler_id Name of the used handler 
    451423     * @param mixed $args Array containing the variable arguments passed to the handler 
    452      * @param mixed &$data Data passed to the show method 
     424     * @param mixed $data Data passed to the show method 
    453425     * @return boolean Indicating successful request 
    454426     */ 
     
    500472        // Add the page title 
    501473        $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('edit file %s', 'midcom.admin.styleeditor'), "'{$args[0]}'"); 
    502  
    503         $this->_prepare_toolbar($data);         
     474         
     475        // Set the Asgard toolbar 
     476        $data['asgard_toolbar'] = new midcom_helper_toolbar(); 
     477         
     478        $data['asgard_toolbar']->add_item 
     479        ( 
     480            array 
     481            ( 
     482                MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 
     483                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 
     484                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
     485            ) 
     486        );         
     487        $data['asgard_toolbar']->add_item 
     488        ( 
     489            array 
     490            ( 
     491                MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 
     492                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 
     493                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 
     494            ) 
     495        ); 
    504496         
    505497        return true; 
     
    511503     * @access private 
    512504     * @param string $handler_id Name of the used handler 
    513      * @param mixed &$data Data passed to the show method 
     505     * @param mixed $data Data passed to the show method 
    514506     */ 
    515507    function _show_edit($handler_id, &$data) 
     
    534526     * @param string $handler_id Name of the used handler 
    535527     * @param mixed $args Array containing the variable arguments passed to the handler 
    536      * @param mixed &$data Data passed to the show method 
     528     * @param mixed $data Data passed to the show method 
    537529     * @return boolean Indicating successful request 
    538530     */ 
     
    590582        $data['view_title'] = sprintf($_MIDCOM->i18n->get_string('delete file %s', 'midcom.admin.styleeditor'), "'{$args[0]}'"); 
    591583         
    592         $this->_prepare_toolbar($data); 
     584        // Set the Asgard toolbar 
     585        $data['asgard_toolbar'] = new midcom_helper_toolbar(); 
     586         
     587        $data['asgard_toolbar']->add_item 
     588        ( 
     589            array 
     590            ( 
     591                MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/create/", 
     592                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('create a new element', 'midcom.admin.styleeditor'), 
     593                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/text-x-generic-template.png', 
     594            ) 
     595        );         
     596        $data['asgard_toolbar']->add_item 
     597        ( 
     598            array 
     599            ( 
     600                MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.admin.styleeditor/files/", 
     601                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('style attachments', 'midcom.admin.styleeditor'), 
     602                MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/attach.png', 
     603            ) 
     604        ); 
    593605         
    594606        return true; 
     
    600612     * @access private 
    601613     * @param string $handler_id Name of the used handler 
    602      * @param mixed &$data Data passed to the show method 
     614     * @param mixed $data Data passed to the show method 
    603615     */ 
    604616    function _show_delete($handler_id, &$data) 
  • trunk/midcom/midcom.admin.styleeditor/handler/list.php

    r14773 r15081  
    103103     * @param string $handler_id Name of the used handler 
    104104     * @param mixed $args Array containing the variable arguments passed to the handler 
    105      * @param mixed &$data Data passed to the show method 
     105     * @param mixed $data Data passed to the show method 
    106106     * @return boolean Indicating successful request 
    107107     */ 
     
    134134        ); 
    135135 
    136         $data['asgard_toolbar']->add_item 
    137         ( 
    138             array 
    139             ( 
    140                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX), 
    141                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('back to site', 'midgard.admin.asgard'), 
    142                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/gohome.png', 
    143             ) 
    144         ); 
    145  
    146         $data['asgard_toolbar']->add_item 
    147         ( 
    148             array 
    149             ( 
    150                 MIDCOM_TOOLBAR_URL => $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)."midcom-logout-", 
    151                 MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('logout','midcom'), 
    152                 MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/exit.png', 
    153             ) 
    154         ); 
    155136 
    156137        // Set the variables 
     
    205186     * @access private 
    206187     * @param string $handler_id Name of the used handler 
    207      * @param mixed &$data Data passed to the show method 
     188     * @param mixed $data Data passed to the show method 
    208189     */ 
    209190    function _show_list($handler_id, &$data) 
  • trunk/midcom/midcom.admin.styleeditor/locale/default.fi.txt

    r13956 r15081  
    2020---STRINGEND 
    2121 
    22 ---STRING confirm delete of file %s 
    23 Vahvista tiedoston '%s' poisto 
    24 ---STRINGEND 
    25  
    2622---STRING copy to editor 
    2723Kopioi editoriin 
    28 ---STRINGEND 
    29  
    30 ---STRING create a new element 
    31 Luo uusi elementti 
    32 ---STRINGEND 
    33  
    34 ---STRING delete cancelled 
    35 Poisto peruutettu 
    36 ---STRINGEND 
    37  
    38 ---STRING delete file %s 
    39 Poista tiedosto '%s' 
    4024---STRINGEND 
    4125 
     
    5438---STRING edit text file 
    5539Muokkaa tekstitiedostoa 
    56 ---STRINGEND 
    57  
    58 ---STRING element %s exists 
    59 Elementti '%s' on olemassa 
    60 ---STRINGEND 
    61  
    62 ---STRING element from file 
    63 Tuo elementti tiedostosta 
    64 ---STRINGEND 
    65  
    66 ---STRING element name 
    67 Elementin nimi 
    68 ---STRINGEND 
    69  
    70 ---STRING element name required 
    71 Elementin nimi on pakollinen 
    72 ---STRINGEND 
    73  
    74 ---STRING file %s deleted 
    75 Tiedosto '%s' poistettu 
    7640---STRINGEND 
    7741 
     
    12084---STRINGEND 
    12185 
    122 ---STRING style element %s created 
    123 Tyylielementti %s luotu 
    124 ---STRINGEND 
    125  
    126 ---STRING style element %s updated 
    127 Tyylielementti %s pÀivitetty 
    128 ---STRINGEND 
    129  
    13086---STRING style element list 
    13187Tyylielementtilista 
     
    148104---STRINGEND 
    149105 
    150 ---STRING create new element 
     106---STRING confirm delete of file %s 
     107Vahvista tiedoston '%s' poisto 
     108---STRINGEND 
     109 
     110---STRING create a new element 
    151111Luo uusi elementti 
    152112---STRINGEND 
    153113 
    154 ---STRING new layout template 
    155 Uusi ulkoasupohja 
     114---STRING delete cancelled 
     115Poisto peruutettu 
    156116---STRINGEND 
    157117 
     118---STRING delete file %s 
     119Poista tiedosto '%s' 
     120---STRINGEND 
     121 
     122---STRING element %s exists 
     123Elementti '%s' on olemassa 
     124---STRINGEND 
     125 
     126---STRING element from file 
     127Tuo elementti tiedostosta 
     128---STRINGEND 
     129 
     130---STRING element name 
     131Elementin nimi 
     132---STRINGEND 
     133 
     134---STRING element name required 
     135Elementin nimi on pakollinen 
     136---STRINGEND 
     137 
     138---STRING file %s deleted 
     139Tiedosto '%s' poistettu 
     140---STRINGEND 
     141 
     142---STRING style element %s created 
     143Tyylielementti %s luotu 
     144---STRINGEND 
     145 
     146---STRING style element %s updated 
     147Tyylielementti %s pÀivitetty 
     148---STRINGEND 
     149 
  • trunk/midcom/midcom.admin.styleeditor/navigation.php

    r14773 r15081  
    55 * @package midcom.admin.styleeditor 
    66 */ 
    7  
    8 /** 
    9  * 
    10  * @package midcom.admin.styleeditor 
    11  */ 
     7  
    128class midcom_admin_styleeditor_navigation extends midcom_baseclasses_components_navigation { 
    139/* hey that's all I do too !' */ 
  • trunk/midcom/midcom.admin.styleeditor/style/midcom-admin-styleeditor-files-delete.php

    r11346 r15081  
    1 <h1><?php echo sprintf($_MIDCOM->i18n->get_string('delete file %s', 'midcom.admin.styleeditor'), $data['filename']); ?></h1> 
     1<h1><?php echo sprintf($_MIDCOM->i18n->get_string('delete file %s', 'midcom.admin.styleeditor'), $data['filename']); ?></h1> 
    22<p><?php echo sprintf($_MIDCOM->i18n->get_string('confirm delete of file %s', 'midcom.admin.styleeditor'), $data['filename']); ?></p> 
    33<?php 
  • trunk/midcom/midcom.admin.styleeditor/viewer.php

    r14773 r15081  
    108108        ); 
    109109    } 
    110     function navigation() 
    111     { 
    112         /* 
    113         $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 
    114  
    115         // Get list of style elements related to this component 
    116         $style_elements = $_MIDCOM->style->get_component_default_elements($this->_request_data['topic']->component); 
    117         ksort($style_elements); 
    118         echo "<ul class=\"midgard_admin_asgard_navigation\">"; 
    119         foreach ($style_elements as $style_element => $filename) 
    120         { 
    121             echo "<li class='midcom_baseclasses_database_style'><a href=\"{$prefix}__mfa/asgard_midcom.admin.styleeditor/edit/{$style_element}/\">&lt;({$style_element})&gt;</a></li>"; 
    122         } 
    123         echo "</ul>"; 
    124         */ 
    125     } 
    126  
    127110} 
    128111?> 
  • trunk/midcom/midcom.helper.datamanager/static/contactchooser_ajax.js

    r13625 r15081  
    120120    persons = compat_getElementsByTagNameNS('http://xmlns.com/foaf/0.1/', 'foaf', 'Person', resultList); 
    121121    if (   !persons 
    122         || persons.lenght==0) 
     122        || persons.length==0) 
    123123    { 
    124124        //No results, do something 
  • trunk/midcom/midcom.helper.datamanager2/static/universalchooser.js

    r13416 r15081  
    274274    { 
    275275        statuses = request.responseXML.getElementsByTagName('status'); 
    276         if (   statuses.lenght < 1 
     276        if (   statuses.length < 1 
    277277            || !statuses[0]) 
    278278        { 
     
    284284        message_str = ''; 
    285285 
    286         if (   messages.lenght > 0 
     286        if (   messages.length > 0 
    287287            && messages[0] 
    288288            && messages[0].firstChild) 
  • trunk/midcom/org.openpsa.contacts/config/mgdschema.sql

    r4744 r15081  
    3535 
    3636#These will be implemented in Midgard core/data as well in the near future 
    37 #Increase username lenght 
     37#Increase username length 
    3838alter table person modify username varchar(255) NOT NULL default ''; 
    3939#Increase parameter value size (not needed anymore) 
  • trunk/midcom/org.openpsa.directmarketing/config/schemadb_config.inc

    r3840 r15081  
    6868            ), 
    6969            'token_size' => array( 
    70                 'description'   => 'recipient token lenght', 
     70                'description'   => 'recipient token length', 
    7171                'datatype'      => 'number', 
    7272                'default'       => 15, 
  • trunk/midcom/org.openpsa.directmarketing/config/schemadb_default_message.inc

    r12102 r15081  
    261261        'from' => array 
    262262        ( 
    263             'title'    => 'from text/number (text max lenght 11 characters, no special characters)', 
     263            'title'    => 'from text/number (text max length 11 characters, no special characters)', 
    264264            'type'     => 'text', 
    265265            'widget'   => 'text', 
  • trunk/midcom/org.openpsa.helpers/static/ajax_tableform.js

    r4794 r15081  
    529529        items = resultList.getElementsByTagName(this.ajaxResultElement); 
    530530 
    531         if (items.lenght == 0) 
     531        if (items.length == 0) 
    532532        { 
    533533            //No results, do something 
  • trunk/midcom/org.openpsa.projects/static/projectbroker.js

    r14180 r15081  
    9999    { 
    100100        statuses = request.responseXML.getElementsByTagName('status'); 
    101         if (   statuses.lenght < 1 
     101        if (   statuses.length < 1 
    102102            || !statuses[0]) 
    103103        { 
     
    109109        message_str = ''; 
    110110 
    111         if (   messages.lenght > 0 
     111        if (   messages.length > 0 
    112112            && messages[0] 
    113113      &