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/admin/group_list.php

    r4325 r5021  
    7373  array_push(
    7474    $page['infos'],
    75     sprintf(l10n('group "%s" deleted'), $groupname)
     75    sprintf(l10n('group \"%s\" deleted'), $groupname)
    7676    );
    7777}
     
    8585  if (empty($_POST['groupname']))
    8686  {
    87     array_push($page['errors'], l10n('group_add_error1'));
     87    array_push($page['errors'], l10n('The name of a group must not contain \" or \' or be empty.'));
    8888  }
    8989  if (count($page['errors']) == 0)
     
    9898    if ($count != 0)
    9999    {
    100       array_push($page['errors'], l10n('group_add_error2'));
     100      array_push($page['errors'], l10n('This name is already used by another group.'));
    101101    }
    102102  }
     
    114114    array_push(
    115115      $page['infos'],
    116       sprintf(l10n('group "%s" added'), $_POST['groupname'])
     116      sprintf(l10n('group \"%s\" added'), $_POST['groupname'])
    117117      );
    118118  }
     
    142142  array_push(
    143143    $page['infos'],
    144     sprintf(l10n('group "%s" updated'), $groupname)
     144    sprintf(l10n('group \"%s\" updated'), $groupname)
    145145    );
    146146}
     
    189189    array(
    190190      'NAME' => $row['name'],
    191       'IS_DEFAULT' => (get_boolean($row['is_default']) ? ' ['.l10n('is_default_group').']' : ''),
     191      'IS_DEFAULT' => (get_boolean($row['is_default']) ? ' ['.l10n('default').']' : ''),
    192192      'MEMBERS' => l10n_dec('%d member', '%d members', $counter),
    193193      'U_MEMBERS' => $members_url.$row['id'],
Note: See TracChangeset for help on using the changeset viewer.