Changeset 8984


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

[extensions] - rv_sitemap - add localisation

Location:
extensions/rv_sitemap
Files:
10 added
2 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');
  • extensions/rv_sitemap/sitemap.tpl

    r3417 r8984  
    77
    88<fieldset>
    9 <legend>Global</legend>
     9<legend>{'Global'|@translate}</legend>
    1010<p>
    11   <label for="filename">Filename<input type="input" name="filename" value="{$FILENAME}" /></label> <a href="{$U_FILENAME}">{$U_FILENAME}</a>
     11  <label for="filename">{'Filename'|@translate} <input type="input" name="filename" value="{$FILENAME}" /></label> <a href="{$U_FILENAME}">{$U_FILENAME}</a>
    1212  <label for="gzip">Gzip<input type="checkbox" name="gzip" {$GZIP_CHECKED} /></label>
    1313</p>
    1414{foreach from=$specials item=special}
    15     <label><input type="checkbox" {$special.CHECKED} name="special_{$special.NAME}"/>{$special.LABEL}</label>
     15    <label><input type="checkbox" {$special.CHECKED} name="special_{$special.NAME}"/> {$special.LABEL} </label>
    1616    <input type="input" size="4" name="special_prio_{$special.NAME}" value="{$special.PRIO}"/>
    1717        <select name="special_freq_{$special.NAME}" >
    18           {html_options values=$frequencies output=$frequencies selected=$special.FREQ}
     18          {html_options values=$frequencies output=$frequenciesT selected=$special.FREQ}
    1919        </select>
    2020    <br/>
     
    2323
    2424<fieldset>
    25 <legend>Categories</legend>
     25<legend>{'Categories'|@translate}</legend>
    2626<select style="width:500px" name="categories[]" multiple="multiple" size="15">
    2727  {html_options options=$categories selected=$categories_selected}
    2828</select>
    29 <label for="prio_categories">Priority<input name="prio_categories" size="4" value="{$PRIO_CATEGORIES}" /></label>
    30 <label for="freq_categories">Frequency
     29<label for="prio_categories">{'Priority'|@translate} <input name="prio_categories" size="4" value="{$PRIO_CATEGORIES}" /></label>
     30<label for="freq_categories">{'Frequency'|@translate}
    3131<select name="freq_categories" >
    32   {html_options values=$frequencies output=$frequencies selected=$freq_categories_selected}
     32  {html_options values=$frequencies output=$frequenciesT selected=$freq_categories_selected}
    3333</select>
    3434</label>
     
    3636
    3737<fieldset>
    38 <legend>Tags</legend>
     38<legend>{'Tags'|@translate}</legend>
    3939<select style="width:200px" name="tags[]" multiple="multiple" size="15">
    4040  {html_options options=$tags selected=$tags_selected}
    4141</select>
    42 <label for="prio_tags">Priority<input name="prio_tags" size="4" value="{$PRIO_TAGS}" /></label>
    43 <label for="freq_tags">Frequency
     42<label for="prio_tags">{'Priority'|@translate} <input name="prio_tags" size="4" value="{$PRIO_TAGS}" /></label>
     43<label for="freq_tags">{'Frequency'|@translate}
    4444<select name="freq_tags" >
    45   {html_options values=$frequencies output=$frequencies selected=$freq_tags_selected}
     45  {html_options values=$frequencies output=$frequenciesT selected=$freq_tags_selected}
    4646</select>
    4747</label>
Note: See TracChangeset for help on using the changeset viewer.