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/functions_html.inc.php

    r5014 r5021  
    293293  {
    294294    echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
    295     echo '<div style="text-align:center;">'.l10n('access_forbiden').'<br>';
    296     echo '<a href="'.get_root_url().'identification.php">'.l10n('identification').'</a>&nbsp;';
    297     echo '<a href="'.make_index_url().'">'.l10n('home').'</a></div>';
     295    echo '<div style="text-align:center;">'.l10n('You are not authorized to access the requested page').'<br>';
     296    echo '<a href="'.get_root_url().'Identification.php">'.l10n('Identification').'</a>&nbsp;';
     297    echo '<a href="'.make_index_url().'">'.l10n('Home').'</a></div>';
    298298    echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size
    299299    exit();
     
    400400{
    401401  global $page;
    402   $title = count($page['tags']) > 1 ? l10n('Tags') : l10n('Tag');
     402  $title = count($page['tags']) > 1 ? l10n('Tag') : l10n('Tag');
    403403  $title.= ' ';
    404404
     
    415415        )
    416416      .'" title="'
    417       .l10n('See elements linked to this tag only')
     417      .l10n('See images linked to this tag only')
    418418      .'">'
    419419      .$page['tags'][$i]['name']
     
    432432          )
    433433        .'" style="border:none;" title="'
    434         .l10n('remove this tag')
     434        .l10n('remove this tag from the list')
    435435        .'"><img src="'
    436436        .get_root_url().get_themeconf('icon_dir').'/remove_s.png'
Note: See TracChangeset for help on using the changeset viewer.