Dotclear

Changeset 1559:b6601f74bcd2 for plugins


Ignore:
Timestamp:
08/24/13 11:25:47 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Import/Export? enhancements.

Location:
plugins/importExport/inc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/inc/class.dc.export.flat.php

    r1499 r1559  
    193193          '<form action="'.$this->getURL(true).'" method="post" class="fieldset">'. 
    194194          '<h3>'.__('Single blog').'</h3>'. 
    195           '<p>'.sprintf(__('This will create an export of your current blog: %s'),html::escapeHTML($this->core->blog->name)).'</p>'. 
     195          '<p>'.sprintf(__('This will create an export of your current blog: %s'),'<strong>'.html::escapeHTML($this->core->blog->name)).'</strong>.</p>'. 
    196196           
    197197          '<p><label for="file_name">'.__('File name:').'</label>'. 
  • plugins/importExport/inc/class.dc.import.dc1.php

    r1454 r1559  
    143143               case 1: 
    144144                    echo 
    145                     '<p>'.sprintf(__('This will import your Dotclear 1.2 content as new content in the current blog: %s.'), 
     145                    '<p>'.sprintf(__('Import the content of a Dotclear 1.2\'s blog in the current blog: %s.'), 
    146146                    '<strong>'.html::escapeHTML($this->core->blog->name).'</strong>').'</p>'. 
    147                     '<p class="static-msg">'.__('Please note that this process '. 
    148                     'will empty your categories, blogroll, entries and comments on the current blog.').'</p>'. 
    149                     '<p>'.__('Depending on the size of your blog, it could take a few minutes.').'</p>'; 
     147                    '<p class="form-note warn">'.__('Please note that this process '. 
     148                    'will empty your categories, blogroll, entries and comments on the current blog.').'</p>'; 
    150149                     
    151150                    printf($this->imForm(1,__('General information'),__('Import my blog now')), 
    152                     '<p class="form-note info">'.__('We first need some information about your old Dotclear 1.2 installation.').'</p>'. 
     151                    '<p>'.__('We first need some information about your old Dotclear 1.2 installation.').'</p>'. 
    153152                    '<p><label for="db_host">'.__('Database Host Name:').'</label> '. 
    154153                    form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</p>'. 
     
    217216          return 
    218217          '<form action="'.$this->getURL(true).'" method="post">'. 
    219           '<fieldset><legend>'.$legend.'</legend>'. 
     218          '<h3>'.$legend.'</h3>'. 
    220219          $this->core->formNonce(). 
    221220          form::hidden(array('do'),'step'.$step). 
    222221          '%s'. 
    223222          '<p><input type="submit" value="'.$submit_value.'" /></p>'. 
    224           '</fieldset>'. 
     223          '<p class="form-note info">'.__('Depending on the size of your blog, it could take a few minutes.').'</p>'. 
    225224          '</form>'; 
    226225     } 
  • plugins/importExport/inc/class.dc.import.feed.php

    r1553 r1559  
    2020     { 
    2121          $this->type = 'import'; 
    22           $this->name = __('Feed import'); 
    23           $this->description = __('Imports a feed as new entries.'); 
     22          $this->name = __('RSS or Atom feed import'); 
     23          $this->description = __('Add a feed content to the blog.'); 
    2424     } 
    2525      
     
    8282          echo 
    8383          '<form action="'.$this->getURL(true).'" method="post">'. 
    84           '<p>'.sprintf(__('This will import a feed (RSS or Atom) a as new content in the current blog: %s.'),html::escapeHTML($this->core->blog->name)).'</p>'. 
     84          '<p>'.sprintf(__('Add a feed content to the current blog: <strong>%s</strong>.'),html::escapeHTML($this->core->blog->name)).'</p>'. 
    8585           
    8686          '<p><label for="feed_url">'.__('Feed URL:').'</label>'. 
  • plugins/importExport/inc/class.dc.import.flat.php

    r1499 r1559  
    142142          if ($this->status == 'single') 
    143143          { 
    144                dcPage::message(__('Single blog successfully imported.')); 
     144               dcPage::success(__('Single blog successfully imported.')); 
    145145               return; 
    146146          } 
    147147          if ($this->status == 'full') 
    148148          { 
    149                dcPage::message(__('Content successfully imported.')); 
     149               dcPage::success(__('Content successfully imported.')); 
    150150               return; 
    151151          } 
     
    184184          '<p>'.sprintf(__('This will import a single blog backup as new content in the current blog: <strong>%s</strong>.'),html::escapeHTML($this->core->blog->name)).'</p>'. 
    185185           
    186           '<p><label for="up_single_file" class="classic">'.__('Upload a backup file'). 
    187           ' ('.sprintf(__('Maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'.' </label>'. 
     186          '<p><label for="up_single_file">'.__('Upload a backup file'). 
     187          ' ('.sprintf(__('maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'.' </label>'. 
    188188          ' <input type="file" id="up_single_file" name="up_single_file" size="20" />'. 
    189189          '</p>'; 
     
    191191          if ($has_files) { 
    192192               echo  
    193                '<p><label for="public_single_file" class="classic">'.__('or pick up a local file in your public directory').'</label> '. 
     193               '<p><label for="public_single_file" class="">'.__('or pick up a local file in your public directory').' </label> '. 
    194194               form::combo('public_single_file',$public_files). 
    195195               '</p>'; 
     
    212212               '<p class="warning">'.__('This will reset all the content of your database, except users.').'</p>'. 
    213213                
    214                '<p><label for="up_full_file" class="classic">'.__('Upload a backup file').' '. 
    215                ' ('.sprintf(__('Maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'.' </label>'. 
     214               '<p><label for="up_full_file">'.__('Upload a backup file').' '. 
     215               ' ('.sprintf(__('maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'.' </label>'. 
    216216               '<input type="file" id="up_full_file" name="up_full_file" size="20" />'. 
    217217               '</p>'; 
     
    219219               if ($has_files) { 
    220220                    echo  
    221                     '<p><label for="public_full_file" class="classic">'.__('or pick up a local file in your public directory').' </label>'. 
     221                    '<p><label for="public_full_file">'.__('or pick up a local file in your public directory').' </label>'. 
    222222                    form::combo('public_full_file',$public_files). 
    223223                    '</p>'; 
  • plugins/importExport/inc/class.dc.import.wp.php

    r1454 r1559  
    176176                    '<p>'.sprintf(__('This will import your WordPress content as new content in the current blog: %s.'), 
    177177                    '<strong>'.html::escapeHTML($this->core->blog->name).'</strong>').'</p>'. 
    178                     '<p class="static-msg">'.__('Please note that this process '. 
    179                     'will empty your categories, blogroll, entries and comments on the current blog.').'</p>'. 
    180                     '<p>'.__('Depending on the size of your blog, it could take a few minutes.').'</p>'; 
     178                    '<p class="form-note warn">'.__('Please note that this process '. 
     179                    'will empty your categories, blogroll, entries and comments on the current blog.').'</p>'; 
    181180                     
    182181                    printf($this->imForm(1,__('General information'),__('Import my blog now')), 
    183                     '<h3>'.__('We first need some information about your old WordPress installation.').'</h3>'. 
     182                    '<p>'.__('We first need some information about your old WordPress installation.').'</p>'. 
    184183                    '<p><label for="db_host">'.__('Database Host Name:').'</label> '. 
    185184                    form::field('db_host',30,255,html::escapeHTML($this->vars['db_host'])).'</p>'. 
     
    199198                    'category per post and will chose the lowest numbered one. If you want to keep a trace of '. 
    200199                    'every category, you can import them as tags, with an optional prefix.').'</p>'. 
    201                     '<p>'.__('On the other hand, in WordPress, a post can not be uncategorized, and a default '. 
    202                     'installation has a first category labelised <i>"Uncategorized"</i>. If you did not change that '. 
    203                     'category, you can just ignore it while importing your blog, as Dotclear allows you to '. 
    204                     'actually keep your posts uncategorized.').'</p>'. 
     200                    '<p>'.__('On the other hand, in WordPress, a post can not be uncategorized, and a '. 
     201                    'default installation has a first category labelised <i>"Uncategorized"</i>.'. 
     202                    'If you did not change that category, you can just ignore it while '. 
     203                    'importing your blog, as Dotclear allows you to actually keep your posts '. 
     204                    'uncategorized.').'</p>'. 
    205205 
    206206                    '<p><label for="ignore_first_cat" class="classic">'.form::checkbox('ignore_first_cat',1,$this->vars['ignore_first_cat']).' '. 
     
    265265          return 
    266266          '<form action="'.$this->getURL(true).'" method="post">'. 
    267           '<fieldset><legend>'.$legend.'</legend>'. 
     267          '<h3>'.$legend.'</h3>'. 
    268268          $this->core->formNonce(). 
    269269          form::hidden(array('do'),'step'.$step). 
    270270          '%s'. 
    271271          '<p><input type="submit" value="'.$submit_value.'" /></p>'. 
    272           '</fieldset>'. 
     272          '<p class="form-note info">'.__('Depending on the size of your blog, it could take a few minutes.').'</p>'. 
    273273          '</form>'; 
    274274     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map