Changeset 5310


Ignore:
Timestamp:
Mar 24, 2010, 4:02:36 PM (11 years ago)
Author:
plg
Message:

bug fixed: certainly an automatic script had converted "included" into
"excluded".

improvement: make the code easier to read for missing language keys detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/search_rules.php

    r5196 r5310  
    3131function inc_exc_str($is_included)
    3232{
    33   return $is_excluded ? l10n('excluded') : l10n('excluded');
     33  return $is_included ? l10n('included') : l10n('excluded');
    3434}
    3535
     
    161161  {
    162162    $lang_items = array(
    163       'date'   => 'became available on %s',
    164       'period' => 'became available between %s (%s) and %s (%s)',
    165       'after'  => 'became available after %s (%s)',
    166       'before' => 'became available before %s (%s)',
     163      'date'   => l10n('became available on %s'),
     164      'period' => l10n('became available between %s (%s) and %s (%s)'),
     165      'after'  => l10n('became available after %s (%s)'),
     166      'before' => l10n('became available before %s (%s)'),
    167167      );
    168168  }
     
    170170  {
    171171    $lang_items = array(
    172       'date'   => 'created on %s',
    173       'period' => 'created between %s (%s) and %s (%s)',
    174       'after'  => 'created after %s (%s)',
    175       'before' => 'created before %s (%s)',
     172      'date'   => l10n('created on %s'),
     173      'period' => l10n('created between %s (%s) and %s (%s)'),
     174      'after'  => l10n('created after %s (%s)'),
     175      'before' => l10n('created before %s (%s)'),
    176176      );
    177177  }
     
    188188      strtoupper($datefield),
    189189      sprintf(
    190           l10n($lang_items['date']),
     190          $lang_items['date'],
    191191          format_date($search['fields'][ $keys['date'] ])
    192192          )
     
    199199      strtoupper($datefield),
    200200      sprintf(
    201           l10n($lang_items['period']),
     201          $lang_items['period'],
    202202
    203203          format_date($search['fields'][ $keys['after'] ]['date']),
     
    214214      strtoupper($datefield),
    215215      sprintf(
    216           l10n($lang_items['before']),
     216          $lang_items['before'],
    217217
    218218          format_date($search['fields'][ $keys['before'] ]['date']),
     
    226226      strtoupper($datefield),
    227227      sprintf(
    228           l10n($lang_items['after']),
     228          $lang_items['after'],
    229229
    230230          format_date($search['fields'][ $keys['after'] ]['date']),
Note: See TracChangeset for help on using the changeset viewer.