Changeset 21308 in spip-zone


Ignore:
Timestamp:
Jul 6, 2008, 11:29:37 PM (11 years ago)
Author:
webmaster@…
Message:

Cat-Agenda: translation

Location:
_plugins_/_dev_/acs/models/cat/composants/agenda
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/acs/models/cat/composants/agenda/agenda.html

    r21067 r21308  
    11#CACHE{7200}
    22<div id="agenda">
    3   <INCLURE {fond=composants/agenda/inc-agenda}{calendrier_mois}{calendrier_annee}{env}{self}>
     3  <INCLURE {fond=composants/agenda/inc-agenda}{calendrier_mois}{calendrier_annee}{env}{self}{lang=#LANG}>
    44</div>
  • _plugins_/_dev_/acs/models/cat/composants/agenda/inc-agenda.html

    r21067 r21308  
    11#CACHE{7200}
    22<?php
     3
    34include_once _DIR_RESTREINT_ABS."base/abstract_sql.php";
    45
     
    1617$calendrier_mois=$_GET['calendrier_mois'];
    1718$calendrier_annee=$_GET['calendrier_annee'];
     19$lang = '#LANG';
     20$oldlang = $GLOBALS['spip_lang'];
     21$GLOBALS['spip_lang'] = $lang;
    1822$months = array('', _T('acs:agenda_janvier'), _T('acs:agenda_fevrier'), _T('acs:agenda_mars'),
    1923         _T('acs:agenda_avril'), _T('acs:agenda_mai'), _T('acs:agenda_juin'), _T('acs:agenda_juillet'),
     
    2125         _T('acs:agenda_novembre'), _T('acs:agenda_decembre'));
    2226$days = array(_T('acs:agenda_di'), _T('acs:agenda_lu'), _T('acs:agenda_ma'), _T('acs:agenda_me'), _T('acs:agenda_je'), _T('acs:agenda_ve'), _T('acs:agenda_sa'));
     27$GLOBALS['spip_lang'] = $oldlang;
    2328if ($test_mini_agenda_deja_present!=1 &&!function_exists('mkdate')) {
    2429        function mkdate($month, $day, $year) {
     
    3843                  {$texte_URL = $texte_URL."&amp;".$texte_remplacement;}
    3944              }
    40     return $texte_URL;
     45    return $texte_URL.'&lang=#LANG';
    4146        }
    4247}
  • _plugins_/_dev_/acs/models/cat/composants/agenda/lang/agenda_en.php

    r21067 r21308  
    1414'septembre' => 'September',
    1515'octobre' => 'October',
    16 'nov' => 'November',
    17 'decembre' => 'Dececember',
     16'novembre' => 'November',
     17'decembre' => 'December',
    1818'di' => 'su',
    1919'lu' => 'mo',
Note: See TracChangeset for help on using the changeset viewer.