Ignore:
Timestamp:
Oct 20, 2009, 10:55:57 PM (15 years ago)
Author:
vdigital
Message:

[Public Piwigo WordPress Widget] Don't make any mistake it is a WordPress sidebar widget!

.po and .mo files provided by Laurent Duretz (Thanks to him)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Public_Piwigo_WordPress_Widget/Public_WP_Piwigo_code.php

    r4055 r4073  
    6262        $cats = unserialize($response);
    6363        if ($cats["stat"] == 'ok') {
    64                 echo '<ul style="clear: both;"><li>' . __('Pictures categories') . '<ul>';
     64                echo '<ul style="clear: both;"><li>' . __('Pictures categories','pwg') . '<ul>';
    6565                foreach ($cats["result"]["categories"] as $cat) {
    6666                        echo '<li><a title="' . $cat['name'] . '" href="' . $piwigo_url . 'index.php?category/' . $cat['id'] . '">' . $cat['name'] . '</a></li>';
     
    7575
    7676if ($most_visited == 'true')
    77         echo '<li><a title="' . __('Most visited') . '" href="' . $piwigo_url . 'index.php?most_visited' . '">' . __('Most visited') . '</a></li>';
     77        echo '<li><a title="' . __('Most visited','pwg') . '" href="' . $piwigo_url . 'index.php?most_visited' . '">' . __('Most visited','pwg') . '</a></li>';
    7878
    7979if ($best_rated == 'true')
    80         echo '<li><a title="' . __('Best rated') . '" href="' . $piwigo_url . 'index.php?best_rated' . '">' . __('Best rated') . '</a></li>';
     80        echo '<li><a title="' . __('Best rated','pwg') . '" href="' . $piwigo_url . 'index.php?best_rated' . '">' . __('Best rated','pwg') . '</a></li>';
    8181
    8282if ($most_commented == 'true')
    83         echo '<li><a title="' . __('Most commented') . '" href="' . $piwigo_url . 'index.php?most_commented' . '">' . __('Most commented') . '</a></li>';
     83        echo '<li><a title="' . __('Most commented','pwg') . '" href="' . $piwigo_url . 'index.php?most_commented' . '">' . __('Most commented','pwg') . '</a></li>';
    8484
    8585if ($random == 'true')
    86         echo '<li><a title="' . __('Random') . '" href="' . $piwigo_url . 'random.php' . '">' . __('Random') . '</a></li>';
     86        echo '<li><a title="' . __('Random','pwg') . '" href="' . $piwigo_url . 'random.php' . '">' . __('Random','pwg') . '</a></li>';
    8787
    8888if ($recent_pics == 'true')
    89         echo '<li><a title="' . __('Recent pics') . '" href="' . $piwigo_url . 'index.php?recent_pics' . '">' . __('Recent pics') . '</a></li>';
     89        echo '<li><a title="' . __('Recent pics','pwg') . '" href="' . $piwigo_url . 'index.php?recent_pics' . '">' . __('Recent pics','pwg') . '</a></li>';
    9090
    9191if ($calendar == 'true')
    92         echo '<li><a title="' . __('Calendar') . '" href="' . $piwigo_url . 'index.php?created-monthly-calendar' . '">' . __('Calendar') . '</a></li>';
     92        echo '<li><a title="' . __('Calendar','pwg') . '" href="' . $piwigo_url . 'index.php?created-monthly-calendar' . '">' . __('Calendar','pwg') . '</a></li>';
    9393
    9494if ($tags == 'true')
    95         echo '<li><a title="' . __('Tags') . '" href="' . $piwigo_url . 'tags.php' . '">' . __('Tags') . '</a></li>';
     95        echo '<li><a title="' . __('Tags','pwg') . '" href="' . $piwigo_url . 'tags.php' . '">' . __('Tags','pwg') . '</a></li>';
    9696
    9797if ($comments == 'true')
    98         echo '<li><a title="' . __('Comments') . '" href="' . $piwigo_url . 'comments.php' . '">' . __('Comments') . '</a></li>';
     98        echo '<li><a title="' . __('Comments','pwg') . '" href="' . $piwigo_url . 'comments.php' . '">' . __('Comments','pwg') . '</a></li>';
    9999
    100100
Note: See TracChangeset for help on using the changeset viewer.