Ignore:
Timestamp:
Mar 2, 2010, 3:54:22 PM (14 years ago)
Author:
nikrou
Message:

Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals

Todo : managing plugins in the same way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/menubar.inc.php

    r5014 r5021  
    149149        array(
    150150          'URL' => make_index_url(array('section' => 'favorites')),
    151           'TITLE' => l10n('favorite_cat_hint'),
    152           'NAME' => l10n('favorite_cat')
     151          'TITLE' => l10n('display my favorites pictures'),
     152          'NAME' => l10n('My favorites')
    153153          );
    154154    }
     
    157157      array(
    158158        'URL' => make_index_url(array('section' => 'most_visited')),
    159         'TITLE' => l10n('most_visited_cat_hint'),
    160         'NAME' => l10n('most_visited_cat')
     159        'TITLE' => l10n('display most visited pictures'),
     160        'NAME' => l10n('Most visited')
    161161      );
    162162
     
    166166        array(
    167167          'URL' => make_index_url(array('section' => 'best_rated')),
    168           'TITLE' => l10n('best_rated_cat_hint'),
    169           'NAME' => l10n('best_rated_cat')
     168          'TITLE' => l10n('display best rated items'),
     169          'NAME' => l10n('Best rated')
    170170        );
    171171    }
     
    174174      array(
    175175        'URL' => get_root_url().'random.php',
    176         'TITLE' => l10n('random_cat_hint'),
    177         'NAME' => l10n('random_cat'),
     176        'TITLE' => l10n('display a set of random pictures'),
     177        'NAME' => l10n('Random pictures'),
    178178        'REL'=> 'rel="nofollow"'
    179179      );
     
    182182      array(
    183183        'URL' => make_index_url(array('section' => 'recent_pics')),
    184         'TITLE' => l10n('recent_pics_cat_hint'),
    185         'NAME' => l10n('recent_pics_cat'),
     184        'TITLE' => l10n('display most recent pictures'),
     185        'NAME' => l10n('Recent pictures'),
    186186      );
    187187
     
    189189      array(
    190190        'URL' => make_index_url(array('section' => 'recent_cats')),
    191         'TITLE' => l10n('recent_cats_cat_hint'),
    192         'NAME' => l10n('recent_cats_cat'),
     191        'TITLE' => l10n('display recently updated categories'),
     192        'NAME' => l10n('Recent categories'),
    193193      );
    194194
     
    205205            )
    206206          ),
    207         'TITLE' => l10n('calendar_hint'),
    208         'NAME' => l10n('calendar'),
     207        'TITLE' => l10n('display each day with pictures, month per month'),
     208        'NAME' => l10n('Calendar'),
    209209        'REL'=> 'rel="nofollow"'
    210210      );
     
    231231    $block->data['search'] =
    232232      array(
    233         'TITLE'=>l10n('hint_search'),
     233        'TITLE'=>l10n('search'),
    234234        'NAME'=>l10n('Search'),
    235235        'URL'=> get_root_url().'search.php',
     
    240240    $block->data['comments'] =
    241241      array(
    242         'TITLE'=>l10n('hint_comments'),
    243         'NAME'=>l10n('comments'),
     242        'TITLE'=>l10n('See last users comments'),
     243        'NAME'=>l10n('Comments'),
    244244        'URL'=> get_root_url().'comments.php',
    245245      );
     
    248248    $block->data['about'] =
    249249      array(
    250         'TITLE'     => l10n('about_page_title'),
     250        'TITLE'     => l10n('About Piwigo'),
    251251        'NAME'      => l10n('About'),
    252252        'URL' => get_root_url().'about.php',
Note: See TracChangeset for help on using the changeset viewer.