Ignore:
Timestamp:
Jan 30, 2011, 2:49:54 PM (13 years ago)
Author:
ddtddt
Message:

[extensions] - rv_sitemap - add localisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_sitemap/sitemap.php

    r8666 r8984  
    11<?php
    22defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
     3
     4define('RVS_DIR' , basename(dirname(__FILE__)));
     5define('RVS_PATH' , PHPWG_PLUGINS_PATH . RVS_DIR . '/');
     6load_language('plugin.lang', RVS_PATH);
    37
    48function sitemaps_get_config_file_name()
     
    7276
    7377
     78
     79$frequenciesT = array(
     80    '',
     81    l10n('always'),
     82    l10n('hourly'),
     83    l10n('daily'),
     84    l10n('weekly'),
     85    l10n('monthly'),
     86    l10n('yearly'),
     87    l10n('never'),
     88  );
    7489
    7590$frequencies = array(
     
    8398    'never',
    8499  );
    85 
     100 
    86101$specials = array(
    87102  'categories' => array('L'=>l10n('Home'), 'P'=>0.9),
    88   'best_rated' => array( 'L'=>l10n('Best rated'), 'P'=>0.8 ) ,
     103  'best_rated' => array('L'=>l10n('Best rated'), 'P'=>0.8 ) ,
    89104  'most_visited' => array('L'=>l10n('Most visited'), 'P'=>0.8 ),
    90105  'recent_pics' => array('L'=>l10n('Recent photos'), 'P'=>0.8, 'F'=>'weekly' ),
     
    304319
    305320$template->assign('frequencies', $frequencies);
     321$template->assign('frequenciesT', $frequenciesT);
    306322
    307323$template->set_filename('sitemap', dirname(__FILE__).'/sitemap.tpl');
Note: See TracChangeset for help on using the changeset viewer.