Changeset 29070


Ignore:
Timestamp:
Jul 23, 2014, 11:19:39 AM (10 years ago)
Author:
plg
Message:

compatible with Gallery3 (automatic detection)

Location:
extensions/menalto2piwigo
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • extensions/menalto2piwigo/admin.php

    r28827 r29070  
    135135  m2p_db_connect();
    136136
    137   // Gallery2 parent Ids (root is always 7!)
    138   $ids = array(7,0,0,0,0,0);
    139   // Piwigo uppercats
    140   $uct = array('NULL',0,0,0,0,0);
    141   $ranks = array();
    142 
    143   // the following algorithm is a conversion into PHP of the Perl script
    144   // convertcomments.pl by dschwen, see https://github.com/dschwen/g2piwigo
    145   //
    146   // this plugin just makes things "simpler" for users but the hard part
    147   // comes from dschwen, he deserves all credits!
     137  // Gallery2 or Gallery3?
     138  $menalto_tables = m2p_get_tables($pt);
     139
     140  if (in_array($pt.'FileSystemEntity', $menalto_tables))
     141  {
     142    // Gallery version 2
     143
     144    // Gallery2 parent Ids (root is always 7!)
     145    $ids = array(7,0,0,0,0,0);
     146    // Piwigo uppercats
     147    $uct = array('NULL',0,0,0,0,0);
     148    $ranks = array();
     149
     150    // the following algorithm is a conversion into PHP of the Perl script
     151    // convertcomments.pl by dschwen, see https://github.com/dschwen/g2piwigo
     152    //
     153    // this plugin just makes things "simpler" for users but the hard part
     154    // comes from dschwen, he deserves all credits!
    148155 
    149   foreach ($piwigo_paths as $dir => $piwigo_id)
    150   {
    151     $path = explode('/', $dir);
    152     $basename = $path[count($path)-1];
    153     $level = count($path);
    154 
    155     $parentId = $ids[$level-1];
    156 
    157     // get id and title/summary/description of tail element in path
    158     $query = "
     156    foreach ($piwigo_paths as $dir => $piwigo_id)
     157    {
     158      $path = explode('/', $dir);
     159      $basename = $path[count($path)-1];
     160      $level = count($path);
     161
     162      $parentId = $ids[$level-1];
     163
     164      // get id and title/summary/description of tail element in path
     165      $query = "
    159166SELECT
    160167    f.".$pc."id,
     
    174181    AND f.".$pc."pathComponent='".$basename."'
    175182;";
    176     // echo '<pre>'.$query."</pre>";
    177     $row = pwg_db_fetch_row(pwg_query($query));
     183      // echo '<pre>'.$query."</pre>";
     184      $row = pwg_db_fetch_row(pwg_query($query));
    178185   
    179     // print "$row[4] - $parentId -> $row[0] : $row[1] $row[2] $row[3]\n";
    180     $title = m2p_remove_bbcode($row[1]);
    181     $summary = m2p_remove_bbcode($row[2]);
    182     $description = m2p_remove_bbcode($row[3]);
    183     $weight = $row[5];
    184     $views = $row[6];
    185     $date_available = $row[7];
    186     $ids[$level] = $row[0];
    187     $pid[$row[0]] = $dir;
    188 
    189     if ($row[4] == 0)
    190     {
    191       // Menalto says it's an image
    192 
    193       if (strpos($piwigo_id, 'i') === false)
    194       {
    195         echo 'Error, '.$piwig_id.' is not an image and Menalto says it is an image';
    196       }
     186      // print "$row[4] - $parentId -> $row[0] : $row[1] $row[2] $row[3]\n";
     187      $title = m2p_remove_bbcode($row[1]);
     188      $summary = m2p_remove_bbcode($row[2]);
     189      $description = m2p_remove_bbcode($row[3]);
     190      $weight = $row[5];
     191      $views = $row[6];
     192      $date_available = $row[7];
     193      $ids[$level] = $row[0];
     194      $pid[$row[0]] = $dir;
     195
     196      if ($row[4] == 0)
     197      {
     198        // Menalto says it's an image
     199
     200        if (strpos($piwigo_id, 'i') === false)
     201        {
     202          echo 'Error, '.$piwig_id.' is not an image and Menalto says it is an image';
     203        }
    197204     
    198       $comment = "";
    199       if ( $summary != "" and $description != "" )
    200       {
    201         $comment = "<b>$summary</b> - $description";
     205        $comment = "";
     206        if ( $summary != "" and $description != "" )
     207        {
     208          $comment = "<b>$summary</b> - $description";
     209        }
     210        else
     211        {
     212          if ($summary != "")
     213          {
     214            $comment = $summary;
     215          }
     216          else
     217          {
     218            $comment = $description;
     219          }
     220        }
     221
     222        $image_id = substr($piwigo_id, 1);
     223     
     224        $image_updates[] = array(
     225          'id' => $image_id,
     226          'name' => pwg_db_real_escape_string($title),
     227          'comment' => pwg_db_real_escape_string($comment),
     228          'date_available' => $date_available,
     229          );
     230     
     231        // build a map from gallery2 ids to piwigo image ids
     232        $iid[$row[0]] = $image_id;
    202233      }
    203234      else
    204235      {
    205         if ($summary != "")
    206         {
    207           $comment = $summary;
     236        // album (folder)
     237        if (strpos($piwigo_id, 'c') === false)
     238        {
     239          echo 'Error, '.$piwig_id.' is not an album and Menalto says it is an album';
     240        }
     241     
     242        $comment = "";
     243        if ( $summary != "" and $description != "" )
     244        {
     245          $comment = "$summary <!--complete--> $description";
    208246        }
    209247        else
    210248        {
    211           $comment = $description;
    212         }
    213       }
    214 
    215       $image_id = substr($piwigo_id, 1);
     249          if ($summary != "")
     250          {
     251            $comment = $summary;
     252          }
     253          else
     254          {
     255            $comment = "<!--complete-->$description";
     256          }
     257        }
     258
     259        // get piwigo category id
     260        $cat_id = substr($piwigo_id, 1);
     261        $uct[$level] = $cat_id;
    216262     
    217       $image_updates[] = array(
    218         'id' => $image_id,
    219         'name' => pwg_db_real_escape_string($title),
    220         'comment' => pwg_db_real_escape_string($comment),
    221         'date_available' => $date_available,
    222         );
    223      
    224       // build a map from gallery2 ids to piwigo image ids
    225       $iid[$row[0]] = $image_id;
    226     }
    227     else
    228     {
    229       // album (folder)
    230       if (strpos($piwigo_id, 'c') === false)
    231       {
    232         echo 'Error, '.$piwig_id.' is not an album and Menalto says it is an album';
    233       }
    234      
    235       $comment = "";
    236       if ( $summary != "" and $description != "" )
    237       {
    238         $comment = "$summary <!--complete--> $description";
    239       }
    240       else
    241       {
    242         if ($summary != "")
    243         {
    244           $comment = $summary;
    245         }
    246         else
    247         {
    248           $comment = "<!--complete-->$description";
    249         }
    250       }
    251 
    252       // get piwigo category id
    253       $cat_id = substr($piwigo_id, 1);
    254       $uct[$level] = $cat_id;
    255      
    256       $cat_updates[] = array(
    257         'id' => $cat_id,
    258         'name' => pwg_db_real_escape_string($title),
    259         'comment' => pwg_db_real_escape_string($comment),
    260         'rank' => $weight,
    261         );
    262 
    263       // get highlight picture
    264       $query = "
     263        $cat_updates[] = array(
     264          'id' => $cat_id,
     265          'name' => pwg_db_real_escape_string($title),
     266          'comment' => pwg_db_real_escape_string($comment),
     267          'rank' => $weight,
     268          );
     269
     270        // get highlight picture
     271        $query = "
    265272SELECT d2.".$pc."derivativeSourceId
    266273  FROM ".$pt."ChildEntity c
     
    268275    JOIN ".$pt."Derivative d2 ON d1.".$pc."derivativeSourceId=d2.".$pc."id
    269276  WHERE c.".$pc."parentId = ".$ids[$level];
    270       $subresult = pwg_query($query);
    271       $subrow = pwg_db_fetch_row($subresult);
    272       $hid[$cat_id] = $subrow[0];
    273     }
    274   }
    275 
    276   // apply highlites as representative images
    277   foreach ($hid as $cat_id => $menalto_id)
    278   {
    279     if (!empty($menalto_id))
    280     {
    281       $album_thumbs[] = array(
    282         'id' => $cat_id,
    283         'representative_picture_id' => $iid[$menalto_id],
    284         );
    285     }
    286   }
    287 
    288   // copy comments
    289   $query = "
     277        $subresult = pwg_query($query);
     278        $subrow = pwg_db_fetch_row($subresult);
     279        $hid[$cat_id] = $subrow[0];
     280      }
     281    }
     282
     283    // apply highlites as representative images
     284    foreach ($hid as $cat_id => $menalto_id)
     285    {
     286      if (!empty($menalto_id))
     287      {
     288        $album_thumbs[] = array(
     289          'id' => $cat_id,
     290          'representative_picture_id' => $iid[$menalto_id],
     291          );
     292      }
     293    }
     294
     295    // copy comments
     296    $query = "
    290297SELECT
    291298    c.".$pc."parentId AS id,
     
    298305  WHERE t.".$pc."publishStatus=0
    299306";
    300   $result = pwg_query($query);
    301   while ($row = pwg_db_fetch_assoc($result))
     307    $result = pwg_query($query);
     308    while ($row = pwg_db_fetch_assoc($result))
     309    {
     310      if (isset($iid[ $row['id'] ]))
     311      {
     312        $comment = $row['comment'];
     313        if (!empty($row['subject']))
     314        {
     315          $comment = '[b]'.$row['subject'].'[/b] '.$comment;
     316        }
     317
     318        $comment_inserts[] = array(
     319          'image_id' => $iid[ $row['id'] ],
     320          'date' => $row['date'],
     321          'author' => pwg_db_real_escape_string($row['author']),
     322          'content' => pwg_db_real_escape_string($comment),
     323          'validated' => 'true',
     324          );
     325      }
     326    }
     327
     328    m2p_db_disconnect();
     329
     330    // echo '<pre>'; print_r($image_updates); echo '</pre>';
     331    // echo '<pre>'; print_r($cat_updates); echo '</pre>';
     332    // echo '<pre>'; print_r($hid); echo '</pre>';
     333    // echo '<pre>'; print_r($iid); echo '</pre>';
     334    // echo '<pre>'; print_r($album_thumbs); echo '</pre>';
     335    // echo '<pre>'; print_r($comment_inserts); echo '</pre>';
     336 
     337    mass_updates(
     338      IMAGES_TABLE,
     339      array(
     340        'primary' => array('id'),
     341        'update'  => array('name', 'comment', 'date_available'),
     342        ),
     343      $image_updates
     344      );
     345
     346    mass_updates(
     347      CATEGORIES_TABLE,
     348      array(
     349        'primary' => array('id'),
     350        'update'  => array('name', 'comment', 'rank'),
     351        ),
     352      $cat_updates
     353      );
     354
     355    mass_updates(
     356      CATEGORIES_TABLE,
     357      array(
     358        'primary' => array('id'),
     359        'update'  => array('representative_picture_id'),
     360        ),
     361      $album_thumbs
     362      );
     363
     364    mass_inserts(
     365      COMMENTS_TABLE,
     366      array_keys($comment_inserts[0]),
     367      $comment_inserts
     368      );
     369 
     370    array_push($page['infos'], l10n('Information data registered in database'));
     371  }
     372  elseif (in_array($pt.'items_tags', $menalto_tables))
    302373  {
    303     if (isset($iid[ $row['id'] ]))
    304     {
    305       $comment = $row['comment'];
    306       if (!empty($row['subject']))
    307       {
    308         $comment = '[b]'.$row['subject'].'[/b] '.$comment;
    309       }
    310 
    311       $comment_inserts[] = array(
    312         'image_id' => $iid[ $row['id'] ],
    313         'date' => $row['date'],
    314         'author' => pwg_db_real_escape_string($row['author']),
    315         'content' => pwg_db_real_escape_string($comment),
    316         'validated' => 'true',
     374    // Gallery version 3
     375
     376    $query = '
     377SELECT
     378    id,
     379    name,
     380    parent_id,
     381    relative_path_cache,
     382    title,
     383    description,
     384    type,
     385    view_count,
     386    created,
     387    weight,
     388    album_cover_item_id
     389  FROM '.$pt.'items
     390;';
     391    $result = pwg_query($query);
     392    while ($row = pwg_db_fetch_assoc($result))
     393    {
     394      if (isset($piwigo_paths[ $row['relative_path_cache'] ]))
     395      {
     396        $piwigo_id = $piwigo_paths[ $row['relative_path_cache'] ];
     397      }
     398      else
     399      {
     400        continue;
     401      }
     402     
     403      if ('photo' == $row['type'])
     404      {
     405        $image_id = substr($piwigo_id, 1);
     406     
     407        $image_updates[] = array(
     408          'id' => $image_id,
     409          'name' => pwg_db_real_escape_string($row['title']),
     410          'comment' => pwg_db_real_escape_string($row['description']),
     411          'date_available' => date('Y-m-d H:i:s', $row['created']),
     412          'hit' => $row['view_count'],
     413          );
     414
     415        // build a map from menalto ids to piwigo image ids
     416        $iid[ $row['id'] ] = $image_id;
     417      }
     418      elseif ('album' == $row['type'])
     419      {
     420        $cat_id = substr($piwigo_id, 1);
     421       
     422        $cat_updates[] = array(
     423          'id' => $cat_id,
     424          'name' => pwg_db_real_escape_string($row['title']),
     425          'comment' => pwg_db_real_escape_string($row['description']),
     426          'rank' => $row['weight'],
     427          );
     428       
     429        $cover_id[$cat_id] = $row['album_cover_item_id'];
     430      }
     431    }
     432
     433    // album cover id
     434    foreach ($cover_id as $cat_id => $menalto_id)
     435    {
     436      if (!empty($menalto_id) and isset($iid[$menalto_id]))
     437      {
     438        $album_thumbs[] = array(
     439          'id' => $cat_id,
     440          'representative_picture_id' => $iid[$menalto_id],
     441          );
     442      }
     443    }
     444
     445    // user comments;
     446    $query = '
     447SELECT
     448    author_id,
     449    server_remote_addr,
     450    created,
     451    name,
     452    full_name,
     453    email,
     454    url,
     455    guest_email,
     456    guest_name,
     457    guest_url,
     458    item_id,
     459    state,
     460    text
     461  FROM '.$pt.'comments
     462    JOIN '.$pt.'users AS u ON author_id = u.id
     463;';
     464    $result = pwg_query($query);
     465    while ($row = pwg_db_fetch_assoc($result))
     466    {
     467      if (isset($iid[ $row['item_id'] ]))
     468      {
     469        if (!empty($row['guest_name']))
     470        {
     471          $name = $row['guest_name'];
     472          $email = $row['guest_email'];
     473          $url = $row['guest_url'];
     474        }
     475        else
     476        {
     477          $name = $row['full_name'].' ('.$row['name'].')';
     478          $email = $row['email'];
     479          $url = $row['url'];
     480        }
     481
     482        if (2 == $row['author_id']) // default admin on G3
     483        {
     484          $author_id = 1; // default admin on Piwigo
     485        }
     486        else
     487        {
     488          $author_id = 2; // guest on Piwigo
     489        }
     490
     491        $validated = 'true';
     492        if ('unpublished' == $row['state'])
     493        {
     494          $validated = 'false';
     495        }
     496
     497        $anonymous_id = implode('.', array_slice(explode('.', $row['server_remote_addr']), 0, 3));
     498       
     499        $comment_inserts[] = array(
     500          'image_id' => $iid[ $row['item_id'] ],
     501          'date' => date('Y-m-d H:i:s', $row['created']),
     502          'author' => pwg_db_real_escape_string($name),
     503          'author_id' => $author_id,
     504          'anonymous_id' => $anonymous_id,
     505          'email' => pwg_db_real_escape_string($email),
     506          'website_url' => pwg_db_real_escape_string($url),
     507          'content' => pwg_db_real_escape_string($row['text']),
     508          'validated' => $validated,
     509          );
     510      }
     511    }
     512
     513    // tags
     514    $query = '
     515SELECT
     516    id,
     517    name
     518   FROM '.$pt.'tags
     519;';
     520    $result = pwg_query($query);
     521    while ($row = pwg_db_fetch_assoc($result))
     522    {
     523      $tag_inserts[] = array(
     524        'name' => pwg_db_real_escape_string($row['name']),
     525        'url_name' => str2url($row['name']),
    317526        );
    318     }
     527
     528      $menalto_tag_ids[ $row['name'] ] = $row['id'];
     529    }
     530
     531    $query = '
     532SELECT
     533    item_id,
     534    tag_id
     535  FROM '.$pt.'items_tags
     536;';
     537    $result = pwg_query($query);
     538    while ($row = pwg_db_fetch_assoc($result))
     539    {
     540      $items_tags[] = $row;
     541    }
     542
     543    m2p_db_disconnect();
     544
     545    mass_updates(
     546      IMAGES_TABLE,
     547      array(
     548        'primary' => array('id'),
     549        'update'  => array('name', 'comment', 'date_available', 'hit'),
     550        ),
     551      $image_updates
     552      );
     553   
     554    mass_updates(
     555      CATEGORIES_TABLE,
     556      array(
     557        'primary' => array('id'),
     558        'update'  => array('name', 'comment', 'rank'),
     559        ),
     560      $cat_updates
     561      );
     562   
     563    mass_updates(
     564      CATEGORIES_TABLE,
     565      array(
     566        'primary' => array('id'),
     567        'update'  => array('representative_picture_id'),
     568        ),
     569      $album_thumbs
     570      );
     571   
     572    mass_inserts(
     573      COMMENTS_TABLE,
     574      array_keys($comment_inserts[0]),
     575      $comment_inserts
     576      );
     577
     578    mass_inserts(
     579      TAGS_TABLE,
     580      array_keys($tag_inserts[0]),
     581      $tag_inserts
     582      );
     583
     584    // we need to retrieve the mapping of piwigo tag name => piwigo tag id,
     585    // for image_tag associations
     586    $query = '
     587SELECT
     588    id,
     589    name
     590  FROM '.TAGS_TABLE.'
     591;';
     592    $result = pwg_query($query);
     593    while ($row = pwg_db_fetch_assoc($result))
     594    {
     595      if (isset($menalto_tag_ids[ $row['name'] ]))
     596      {
     597        $tag_id_convert[ $menalto_tag_ids[ $row['name'] ] ] = $row['id'];
     598      }
     599    }
     600
     601    foreach ($items_tags as $item_tag)
     602    {
     603      if (isset($iid[ $item_tag['item_id'] ]) and isset($tag_id_convert[ $item_tag['tag_id'] ]))
     604      {
     605        $image_tag_inserts[] = array(
     606          'image_id' => $iid[ $item_tag['item_id'] ],
     607          'tag_id' => $tag_id_convert[ $item_tag['tag_id'] ],
     608          );
     609      }
     610    }
     611
     612    mass_inserts(
     613      IMAGE_TAG_TABLE,
     614      array_keys($image_tag_inserts[0]),
     615      $image_tag_inserts
     616      );
     617
     618    array_push($page['infos'], l10n('Information data registered in database'));
    319619  }
    320 
    321   m2p_db_disconnect();
    322 
    323   // echo '<pre>'; print_r($image_updates); echo '</pre>';
    324   // echo '<pre>'; print_r($cat_updates); echo '</pre>';
    325   // echo '<pre>'; print_r($hid); echo '</pre>';
    326   // echo '<pre>'; print_r($iid); echo '</pre>';
    327   // echo '<pre>'; print_r($album_thumbs); echo '</pre>';
    328   // echo '<pre>'; print_r($comment_inserts); echo '</pre>';
    329  
    330   mass_updates(
    331     IMAGES_TABLE,
    332     array(
    333       'primary' => array('id'),
    334       'update'  => array('name', 'comment', 'date_available'),
    335       ),
    336     $image_updates
    337     );
    338 
    339   mass_updates(
    340     CATEGORIES_TABLE,
    341     array(
    342       'primary' => array('id'),
    343       'update'  => array('name', 'comment', 'rank'),
    344       ),
    345     $cat_updates
    346     );
    347 
    348   mass_updates(
    349     CATEGORIES_TABLE,
    350     array(
    351       'primary' => array('id'),
    352       'update'  => array('representative_picture_id'),
    353       ),
    354     $album_thumbs
    355     );
    356 
    357   mass_inserts(
    358     COMMENTS_TABLE,
    359     array_keys($comment_inserts[0]),
    360     $comment_inserts
    361     );
    362  
    363   array_push($page['infos'], l10n('Information data registered in database'));
     620  else
     621  {
     622    m2p_db_disconnect();
     623    array_push($page['errors'], l10n('No Menalto tables found!'));
     624  }
    364625}
    365626
  • extensions/menalto2piwigo/admin.tpl

    r28825 r29070  
    99<fieldset>
    1010  <legend>{'Help'|translate}</legend>
    11   <p>{'Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'|translate} {'Imported properties:'|translate}</p>
     11  <p>{'Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'|translate} {'Imported properties:'|translate}</p>
    1212  <ul>
    1313    <li>{'Title and description for photos'|translate}</li>
     
    1919
    2020  <ol>
    21     <li>{'Copy the content of g2data/albums into piwigo/galleries'|translate}</li>
     21    <li>{'Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'|translate}</li>
    2222    <li><a href="admin.php?page=site_update&amp;site=1">{'Synchronize'|translate}</a></li>
    2323    <li>{'Submit the form at the end of this page'|translate}</li>
     
    5050  </p>
    5151
    52   <p><strong>{'column prefix'|translate}</strong><br>
     52  <p><strong>{'column prefix'|translate}</strong> ({'useless on Gallery3'|translate})<br>
    5353    <input type="text" name="prefix_column" value="{$prefix_column}">
    5454  </p>
  • extensions/menalto2piwigo/include/functions.inc.php

    r28825 r29070  
    5656  return $string;
    5757}
     58
     59/**
     60 * list all tables in an array
     61 *
     62 * @return array
     63 */
     64function m2p_get_tables($prefix='')
     65{
     66  $tables = array();
     67
     68  $query = '
     69SHOW TABLES
     70;';
     71  $result = pwg_query($query);
     72
     73  while ($row = pwg_db_fetch_row($result))
     74  {
     75    if (preg_match('/^'.$prefix.'/', $row[0]))
     76    {
     77      $tables[] = $row[0];
     78    }
     79  }
     80
     81  return $tables;
     82}
  • extensions/menalto2piwigo/language/da_DK/plugin.lang.php

    r28904 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Kopier indholdet fra g2data/albums til piwigo/galleries';
     23$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Kopier indholdet fra g2data/albums (Gallery2) or var/albums (Gallery3) til piwigo/galleries';
    2424$lang['How to use it?'] = 'Anvendelse';
    2525$lang['Import'] = 'Importer';
     
    2727$lang['Imported properties:'] = 'Importerede egenskaber';
    2828$lang['Install and activate plugins:'] = 'Installer og aktiver plugins:';
    29 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo-plugin\'en importerer data fra en Menalto Gallery2-installation til Piwigo.';
     29$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo-plugin\'en importerer data fra en Menalto Gallery2/Gallery3-installation til Piwigo.';
    3030$lang['Name and description for albums'] = 'Navn og beskrivelse af albummer';
    3131$lang['Start import'] = 'Start import';
  • extensions/menalto2piwigo/language/de_DE/plugin.lang.php

    r28956 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Kopiere den Inhalt von g2data/Alben nach Piwigo/Gallerien';
     23$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Kopiere den Inhalt von g2data/albums (Gallery2) oder var/albums (Gallery3) nach piwigo/galleries';
    2424$lang['How to use it?'] = 'Wie benutzt man es?';
    2525$lang['Import'] = 'Importieren';
     
    2727$lang['Imported properties:'] = 'Importierte Eingenschaften';
    2828$lang['Install and activate plugins:'] = 'Installiere und aktiviere Plugins';
    29 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo Plugin importiert Daten von eine Menalto Gallery2 Installation in Piwigo';
     29$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo Plugin importiert Daten von eine Menalto Gallery2/Gallery3 Installation in Piwigo';
    3030$lang['Name and description for albums'] = 'Name und Beschreibung für Alben';
    3131$lang['Start import'] = 'Import starten';
  • extensions/menalto2piwigo/language/el_GR/plugin.lang.php

    r28859 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo plugin εισάγει δεδομένα από μια εγκατάσταση Menalto Gallery2 στο Piwigo.';
     23$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo plugin εισάγει δεδομένα από μια εγκατάσταση Menalto Gallery2/Gallery3 στο Piwigo.';
    2424$lang['Imported properties:'] = 'Ιδιότητες Εισαγόμενων:';
    2525$lang['table prefix'] = 'πρόθεμα πίνακα';
     
    3838$lang['Import'] = 'Εισαγωγή';
    3939$lang['How to use it?'] = 'Πώς να το χρησιμοποιήσετε;';
    40 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Αντιγράψτε το περιεχόμενο του g2data/albums στο piwigo/galleries';
     40$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Αντιγράψτε το περιεχόμενο του g2data/albums (Gallery2) or var/albums (Gallery3) στο piwigo/galleries';
  • extensions/menalto2piwigo/language/en_UK/plugin.lang.php

    r28825 r29070  
    2121
    2222$lang['Import from Menalto'] = 'Import from Menalto';
    23 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo plugins imports data from a Menalto Gallery2 installation into Piwigo.';
     23$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo plugins imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.';
    2424$lang['Imported properties:'] = 'Imported properties:';
    2525$lang['Title and description for photos'] = 'Title and description for photos';
     
    2727$lang['User comments on photos'] = 'User comments on photos';
    2828$lang['How to use it?'] = 'How to use it?';
    29 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Copy the content of g2data/albums into piwigo/galleries';
     29$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries';
    3030$lang['Submit the form at the end of this page'] = 'Submit the form at the end of this page';
    3131$lang['Install and activate plugins:'] = 'Install and activate plugins:';
     
    3838$lang['column prefix'] = 'column prefix';
    3939$lang['Start import'] = 'Start import';
     40$lang['No Menalto tables found!'] = 'No Menalto tables found!';
     41$lang['useless on Gallery3'] = 'useless on Gallery3';
    4042?>
  • extensions/menalto2piwigo/language/es_ES/plugin.lang.php

    r28869 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Copiar el contenido de g2data/albums dentro de piwigo/galerías';
     23$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Copiar el contenido de g2data/albums (Gallery2) or var/albums (Gallery3) dentro de piwigo/galerías';
    2424$lang['How to use it?'] = 'Como utilizarlo ';
    2525$lang['Import'] = 'Importar';
     
    2727$lang['Imported properties:'] = 'Importar propriedades:';
    2828$lang['Install and activate plugins:'] = 'Instalar y activar plugins';
    29 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Importar los datos del plugins Menalto2Piwigo hasta una instalación Menalto Gallery2 dentro de Piwio';
     29$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Importar los datos del plugins Menalto2Piwigo hasta una instalación Menalto Gallery2/Gallery3 dentro de Piwio';
    3030$lang['Name and description for albums'] = 'Nombre y descripción para álbumes';
    3131$lang['Start import'] = 'Empezar la importación';
  • extensions/menalto2piwigo/language/fr_FR/plugin.lang.php

    r28825 r29070  
    2121
    2222$lang['Import from Menalto'] = 'Importer depuis Menalto';
    23 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Le plugin Menalto2Piwigo importe les données depuis une installation Menalto Gallery2 sur Piwigo.';
     23$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Le plugin Menalto2Piwigo importe les données depuis une installation Menalto Gallery2/Gallery3 sur Piwigo.';
    2424$lang['Imported properties:'] = 'Propriétés importées :';
    2525$lang['Title and description for photos'] = 'Titre et description des photos';
     
    2727$lang['User comments on photos'] = 'Commentaires utilisateur sur les photos';
    2828$lang['How to use it?'] = 'Comment l\'utiliser ?';
    29 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Copier le contenu de g2data/albums dans piwigo/galleries';
     29$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Copier le contenu de g2data/albums (Gallery2) ou var/albums (Gallery3) dans piwigo/galleries';
    3030$lang['Submit the form at the end of this page'] = 'Valider le formulaire en bas de cette page';
    3131$lang['Install and activate plugins:'] = 'Installer et activer les plugins :';
     
    3838$lang['column prefix'] = 'Préfixe des colonnes';
    3939$lang['Start import'] = 'Lancer l\'import';
     40$lang['No Menalto tables found!'] = 'Aucune table Menalto trouvée !';
     41$lang['useless on Gallery3'] = 'inutile sur Gallery3';
    4042?>
  • extensions/menalto2piwigo/language/it_IT/plugin.lang.php

    r28921 r29070  
    3131$lang['column prefix'] = 'prefisso colonne';
    3232$lang['Start import'] = 'Avvia importazione';
    33 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Plugin Menalto2Piwigo importa dati da una installazione di Menalto Gallery2 in Piwigo.';
     33$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Plugin Menalto2Piwigo importa dati da una installazione di Menalto Gallery2/Gallery3 in Piwigo.';
    3434$lang['Name and description for albums'] = 'Nome e descrizione per gli album';
    35 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Copia il contenuto di g2data/albums in piwigo/galleries';
     35$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Copia il contenuto di g2data/albums (Gallery2) or var/albums (Gallery3) in piwigo/galleries';
    3636$lang['Import'] = 'Importa';
    3737$lang['Import from Menalto'] = 'Importa da Menalto';
  • extensions/menalto2piwigo/language/lv_LV/plugin.lang.php

    r28855 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo spraudnis importē datus Piwigo no Menalto Gallery2 instalācijas.';
     23$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo spraudnis importē datus Piwigo no Menalto Gallery2/Gallery3 instalācijas.';
    2424$lang['Submit the form at the end of this page'] = 'Apstiprināt formu šīs lapas beigās';
    2525$lang['column prefix'] = 'kolonas prefikss';
     
    3333$lang['database name'] = 'datubāzes nosaukums';
    3434$lang['Start import'] = 'Sākt importu';
    35 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Kopēt g2data/albums saturu piwigo/galleries';
     35$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Kopēt g2data/albums (Gallery2) or var/albums (Gallery3) saturu piwigo/galleries';
    3636$lang['Install and activate plugins:'] = 'Instalēt un aktivēt spraudņus';
    3737$lang['Imported properties:'] = 'Importētās īpašības';
  • extensions/menalto2piwigo/language/pt_BR/plugin.lang.php

    r28860 r29070  
    3232$lang['Start import'] = 'Iniciar importação';
    3333$lang['Name and description for albums'] = 'Nome e descrição para albuns';
    34 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'O plugin Menalto2Piwigo importa dados de instalação do Menalto Gallery2 para o Piwigo.';
     34$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'O plugin Menalto2Piwigo importa dados de instalação do Menalto Gallery2/Gallery3 para o Piwigo.';
    3535$lang['Install and activate plugins:'] = 'Instalar e ativar plugins:';
    3636$lang['Imported properties:'] = 'Propriedades importadas:';
     
    3838$lang['Import'] = 'Importar';
    3939$lang['How to use it?'] = 'Como usar isto?';
    40 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Copiar o conteúdo de g2data/albums para piwigo/gallaries';
     40$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Copiar o conteúdo de g2data/albums (Gallery2) or var/albums (Gallery3) para piwigo/gallaries';
  • extensions/menalto2piwigo/language/ru_RU/plugin.lang.php

    r28871 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Плагин Menalto2Piwigo импортирует данные из Menalto Gallery2 для установки их в Piwigo';
    24 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Копирование содержимого альбомов g2data в галереи Piwigo';
     23$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Плагин Menalto2Piwigo импортирует данные из Menalto Gallery2/Gallery3 для установки их в Piwigo';
     24$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Копирование содержимого альбомов g2data в галереи Piwigo';
    2525$lang['How to use it?'] = 'Как пользоваться?';
    2626$lang['Import'] = 'Импорт';
  • extensions/menalto2piwigo/language/sk_SK/plugin.lang.php

    r28828 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo doplnky načítajú dáta z Menalto Gallery2 do Piwigo.';
     23$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo doplnky načítajú dáta z Menalto Gallery2/Gallery3 do Piwigo.';
    2424$lang['table prefix'] = 'prefix tabuľky';
    2525$lang['database user'] = 'používateľ databázy';
     
    3838$lang['Import'] = 'Načítanie';
    3939$lang['How to use it?'] = 'Ako to použiť?';
    40 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'Kopírovať obsah g2data/albums do piwigo/galleries';
     40$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'Kopírovať obsah g2data/albums (Gallery2) or var/albums (Gallery3) do piwigo/galleries';
  • extensions/menalto2piwigo/language/tr_TR/plugin.lang.php

    r28965 r29070  
    3333$lang['Install and activate plugins:'] = 'Eklentileri yükle ve etkinleştir:';
    3434$lang['Start import'] = 'İçe aktarmayı başlat';
    35 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo eklentileri, bir Menalto Gallery2 yüklemesindeki verileri Piwigo\'ya aktarır.';
     35$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo eklentileri, bir Menalto Gallery2/Gallery3 yüklemesindeki verileri Piwigo\'ya aktarır.';
    3636$lang['database host'] = 'veri tabanı barındırıcısı';
    3737$lang['Title and description for photos'] = 'Fotoğraflar için başlık ve açıklama';
    3838$lang['Submit the form at the end of this page'] = 'Bu sayfanın sonundaki formu gönder';
    3939$lang['Name and description for albums'] = 'Albümler için isim ve açıklama';
    40 $lang['Copy the content of g2data/albums into piwigo/galleries'] = 'g2data/albums içeriklerini piwigo/galleries içerisine kopyala';
     40$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = 'g2data/albums (Gallery2) or var/albums (Gallery3) içeriklerini piwigo/galleries içerisine kopyala';
  • extensions/menalto2piwigo/language/zh_CN/plugin.lang.php

    r28941 r29070  
    2121// | USA.                                                                  |
    2222// +-----------------------------------------------------------------------+
    23 $lang['Copy the content of g2data/albums into piwigo/galleries'] = '将 g2data/albums 中的内容复制到 piwigo/galleries';
     23$lang['Copy the content of g2data/albums (Gallery2) or var/albums (Gallery3) into piwigo/galleries'] = '将 g2data/albums (Gallery2) or var/albums (Gallery3) 中的内容复制到 piwigo/galleries';
    2424$lang['How to use it?'] = '如何使用?';
    2525$lang['Import'] = '导入';
     
    2727$lang['Imported properties:'] = '已导入内容:';
    2828$lang['Install and activate plugins:'] = '安装并启用插件:';
    29 $lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2 installation into Piwigo.'] = 'Menalto2Piwigo 插件用于将 Menalto Gallery2 中的数据导入 Piwigo。';
     29$lang['Menalto2Piwigo plugin imports data from a Menalto Gallery2/Gallery3 installation into Piwigo.'] = 'Menalto2Piwigo 插件用于将 Menalto Gallery2/Gallery3 中的数据导入 Piwigo。';
    3030$lang['Name and description for albums'] = '相册名称与描述';
    3131$lang['Start import'] = '开始导入';
Note: See TracChangeset for help on using the changeset viewer.