Ignore:
Timestamp:
Mar 2, 2010, 3:54:22 PM (15 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/section_init.inc.php

    r5014 r5021  
    238238  else
    239239  {
    240     $page['title'] = l10n('no_category');
     240    $page['title'] = l10n('Home');
    241241  }
    242242
     
    362362        'items' => $search_result['items'],
    363363        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    364                   .l10n('search_result').'</a>',
     364                  .l10n('Search results').'</a>',
    365365        )
    366366      );
     
    376376      $page,
    377377      array(
    378         'title' => l10n('favorites')
     378        'title' => l10n('Favorites')
    379379            )
    380380    );
     
    457457      array(
    458458        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    459                   .l10n('recent_pics_cat').'</a>',
     459                  .l10n('Recent pictures').'</a>',
    460460        'items' => array_from_query($query, 'id'),
    461461        )
     
    470470      $page,
    471471      array(
    472         'title' => l10n('recent_cats_cat'),
     472        'title' => l10n('Recent categories'),
    473473        )
    474474      );
     
    495495      array(
    496496        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    497                   .$conf['top_number'].' '.l10n('most_visited_cat').'</a>',
     497                  .$conf['top_number'].' '.l10n('Most visited').'</a>',
    498498        'items' => array_from_query($query, 'id'),
    499499        )
     
    521521      array(
    522522        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    523                   .$conf['top_number'].' '.l10n('best_rated_cat').'</a>',
     523                  .$conf['top_number'].' '.l10n('Best rated').'</a>',
    524524        'items' => array_from_query($query, 'id'),
    525525        )
     
    544544      array(
    545545        'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
    546                     .l10n('random_cat').'</a>',
     546                    .l10n('Random pictures').'</a>',
    547547        'items' => array_from_query($query, 'id'),
    548548        )
Note: See TracChangeset for help on using the changeset viewer.