Changeset 1932 for trunk/admin


Ignore:
Timestamp:
Mar 29, 2007, 9:04:54 PM (18 years ago)
Author:
rub
Message:

o add missing $lang
o use of l10n_dec
o normalize file header

Location:
trunk/admin
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/comments.php

    r1915 r1932  
    9090    array_push(
    9191      $page['infos'],
    92       sprintf(
    93         l10n('%d user comments validated'),
     92      l10n_dec(
     93        '%d user comment validated', '%d user comments validated',
    9494        count($to_validate)
    9595        )
     
    108108    array_push(
    109109      $page['infos'],
    110       sprintf(
    111         l10n('%d user comments rejected'),
     110      l10n_dec(
     111        '%d user comment rejected', '%d user comments rejected',
    112112        count($to_reject)
    113113        )
  • trunk/admin/group_list.php

    r1900 r1932  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     6// +-----------------------------------------------------------------------+
     7// | file          : $Id$
    98// | last update   : $Date$
    109// | last modifier : $Author$
     
    196195      'NAME' => $row['name'],
    197196      'IS_DEFAULT' => (get_boolean($row['is_default']) ? ' ['.l10n('is_default_group').']' : ''),
    198       'MEMBERS' => sprintf(l10n('%d members'), $counter),
     197      'MEMBERS' => l10n_dec('%d member', '%d members', $counter),
    199198      'U_MEMBERS' => $members_url.$row['id'],
    200199      'U_DELETE' => $del_url.$row['id'],
  • trunk/admin/history.php

    r1929 r1932  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     6// +-----------------------------------------------------------------------+
    87// | file          : $Id$
    98// | last update   : $Date$
     
    614613    'summary',
    615614    array(
    616       'NB_LINES' => sprintf(
    617         l10n('%d lines filtered'),
     615      'NB_LINES' => l10n_dec(
     616        '%d line filtered', '%d lines filtered',
    618617        $page['nb_lines']
    619618        ),
    620619      'FILESIZE' => $summary['total_filesize'].' KB',
    621       'USERS' => sprintf(
    622         l10n('%d users'),
     620      'USERS' => l10n_dec(
     621        '%d user', '%d users',
    623622        $summary['nb_members'] + $summary['nb_guests']
    624623        ),
    625624      'MEMBERS' => sprintf(
    626         l10n('%d members: %s'),
    627         $summary['nb_members'],
     625        l10n_dec('%d member', '%d members', $summary['nb_members']).': %s',
    628626        implode(
    629627          ', ',
     
    631629          )
    632630        ),
    633       'GUESTS' => sprintf(
    634         l10n('%d guests'),
     631      'GUESTS' => l10n_dec(
     632        '%d guest', '%d guests',
    635633        $summary['nb_guests']
    636634        ),
  • trunk/admin/include/functions.php

    r1926 r1932  
    14661466  array_push(
    14671467    $page['infos'],
    1468     sprintf(
    1469       l10n('%d categories moved'),
     1468    l10n_dec(
     1469      '%d category moved', '%d categories moved',
    14701470      count($categories)
    14711471      )
  • trunk/admin/intro.php

    r1900 r1932  
    55// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
     7// | file          : $Id$
    98// | last update   : $Date$
    109// | last modifier : $Author$
     
    192191    'PHP_VERSION' => phpversion(),
    193192    'MYSQL_VERSION' => $mysql_version,
    194     'DB_ELEMENTS' => sprintf(l10n('%d elements'), $nb_elements),
     193    'DB_ELEMENTS' => l10n_dec('%d element', '%d elements', $nb_elements),
    195194    'DB_CATEGORIES' =>
    196       sprintf(
    197         l10n('%d categories including %d physical and %d virtual'),
    198         $nb_categories,
    199         $nb_physical,
    200         $nb_virtual
    201         ),
    202     'DB_IMAGE_CATEGORY' =>sprintf(l10n('%d associations'), $nb_image_category),
    203     'DB_TAGS' => sprintf(l10n('%d tags'), $nb_tags),
    204     'DB_IMAGE_TAG' => sprintf(l10n('%d associations'), $nb_image_tag),
    205     'DB_USERS' => sprintf(l10n('%d users'), $nb_users),
    206     'DB_GROUPS' => sprintf(l10n('%d groups'), $nb_groups),
    207     'DB_COMMENTS' => sprintf(l10n('%d comments'), $nb_comments),
     195      l10n_dec('cat_inclu_part1_S', 'cat_inclu_part1_P',
     196        $nb_categories).
     197      l10n_dec('cat_inclu_part2_S', 'cat_inclu_part2_P',
     198        $nb_physical).
     199      l10n_dec('cat_inclu_part3_S', 'cat_inclu_part3_P',
     200        $nb_virtual),
     201    'DB_IMAGE_CATEGORY' => l10n_dec('%d association', '%d associations', $nb_image_category),
     202    'DB_TAGS' => l10n_dec('%d tag', '%d tags', $nb_tags),
     203    'DB_IMAGE_TAG' => l10n_dec('%d association', '%d associations', $nb_image_tag),
     204    'DB_USERS' => l10n_dec('%d user', '%d users', $nb_users),
     205    'DB_GROUPS' => l10n_dec('%d group', '%d groups', $nb_groups),
     206    'DB_COMMENTS' => l10n_dec('%d comment', '%d comments', $nb_comments),
    208207    'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade',
    209208    'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo',
  • trunk/admin/tags.php

    r1900 r1932  
    55// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    7 // | branch        : BSF (Best So Far)
    87// | file          : $Id$
    98// | last update   : $Date$
     
    136135  array_push(
    137136    $page['infos'],
    138     sprintf(
    139       l10n('The %d following tags were deleted : %s'),
    140       count($tag_names),
     137    l10n_dec(
     138      'The %d following tag were deleted',
     139      'The %d following tags were deleted',
     140      count($tag_names)).' : '.
    141141      implode(', ', $tag_names)
    142       )
    143142    );
    144143}
  • trunk/admin/user_list.php

    r1930 r1932  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    271271      array_push(
    272272        $page['infos'],
    273         sprintf(
    274           l10n('%d users deleted'),
     273        l10n_dec(
     274          '%d user deleted', '%d users deleted',
    275275          count($collection)
    276276          )
Note: See TracChangeset for help on using the changeset viewer.