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/cat_options.php

    r3282 r5021  
    161161// TabSheet initialization
    162162$opt_link = $link_start.'cat_options&section=';
    163 $tabsheet->add('status', l10n('cat_security'), $opt_link.'status');
    164 $tabsheet->add('visible', l10n('lock'), $opt_link.'visible');
    165 $tabsheet->add('upload', l10n('upload'), $opt_link.'upload');
    166 $tabsheet->add('comments', l10n('comments'), $opt_link.'comments');
     163$tabsheet->add('status', l10n('Public / Private'), $opt_link.'status');
     164$tabsheet->add('visible', l10n('Lock'), $opt_link.'visible');
     165$tabsheet->add('Upload', l10n('Upload'), $opt_link.'Upload');
     166$tabsheet->add('Comments', l10n('Comments'), $opt_link.'Comments');
    167167if ($conf['allow_random_representative'])
    168168{
     
    209209    $template->assign(
    210210      array(
    211         'L_SECTION' => l10n('cat_upload_title'),
    212         'L_CAT_OPTIONS_TRUE' => l10n('authorized'),
    213         'L_CAT_OPTIONS_FALSE' => l10n('forbidden'),
     211        'L_SECTION' => l10n('Select uploadable categories'),
     212        'L_CAT_OPTIONS_TRUE' => l10n('Authorized'),
     213        'L_CAT_OPTIONS_FALSE' => l10n('Forbidden'),
    214214        )
    215215      );
     
    230230    $template->assign(
    231231      array(
    232         'L_SECTION' => l10n('cat_comments_title'),
    233         'L_CAT_OPTIONS_TRUE' => l10n('authorized'),
    234         'L_CAT_OPTIONS_FALSE' => l10n('forbidden'),
     232        'L_SECTION' => l10n('Authorize users to add comments on selected categories'),
     233        'L_CAT_OPTIONS_TRUE' => l10n('Authorized'),
     234        'L_CAT_OPTIONS_FALSE' => l10n('Forbidden'),
    235235        )
    236236      );
     
    251251    $template->assign(
    252252      array(
    253         'L_SECTION' => l10n('cat_lock_title'),
    254         'L_CAT_OPTIONS_TRUE' => l10n('unlocked'),
    255         'L_CAT_OPTIONS_FALSE' => l10n('locked'),
     253        'L_SECTION' => l10n('Lock categories'),
     254        'L_CAT_OPTIONS_TRUE' => l10n('Unlocked'),
     255        'L_CAT_OPTIONS_FALSE' => l10n('Locked'),
    256256        )
    257257      );
     
    272272    $template->assign(
    273273      array(
    274         'L_SECTION' => l10n('cat_status_title'),
    275         'L_CAT_OPTIONS_TRUE' => l10n('cat_public'),
    276         'L_CAT_OPTIONS_FALSE' => l10n('cat_private'),
     274        'L_SECTION' => l10n('Manage authorizations for selected categories'),
     275        'L_CAT_OPTIONS_TRUE' => l10n('Public category'),
     276        'L_CAT_OPTIONS_FALSE' => l10n('Private category'),
    277277        )
    278278      );
Note: See TracChangeset for help on using the changeset viewer.