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

    r5014 r5021  
    174174    $user['internal_status']['guest_must_be_guest'] === true)
    175175{
    176   $header_msgs[] = l10n('guest_must_be_guest');
     176  $header_msgs[] = l10n('Bad status for user "guest", using default status. Please notify the webmaster.');
    177177}
    178178
    179179if ($conf['gallery_locked'])
    180180{
    181   $header_msgs[] = l10n('gallery_locked_message');
     181  $header_msgs[] = l10n('The gallery is locked for maintenance. Please, come back later.');
    182182
    183183  if ( script_basename() != 'identification' and !is_admin() )
     
    186186    @header('Retry-After: 900');
    187187    header('Content-Type: text/html; charset='.get_pwg_charset());
    188     echo '<a href="'.get_absolute_root_url(false).'identification.php">'.l10n('gallery_locked_message').'</a>';
     188    echo '<a href="'.get_absolute_root_url(false).'identification.php">'.l10n('The gallery is locked for maintenance. Please, come back later.').'</a>';
    189189    echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size
    190190    exit();
     
    204204if (is_adviser())
    205205{
    206   $header_msgs[] = l10n('adviser_mode_enabled');
     206  $header_msgs[] = l10n('Adviser mode enabled');
    207207}
    208208
Note: See TracChangeset for help on using the changeset viewer.