Changeset 1144

Show
Ignore:
Timestamp:
10/30/08 23:55:17 (2 months ago)
Author:
laurentj
Message:

ticket #731: Unit tests for jtpl standalone. added also error messages in english

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/jtpl-standalone-tests.mn

    r1142 r1144  
    9797  collectable.2 
    9898 
    99 sd lib/jelix/tpl/tests_std
     99sd lib/jelix/tpl/tests
    100100dd tests/ 
    101101   exemple.php 
    102102   test.tpl 
     103   index.php 
     104   compiler.php 
     105   expressions_parsing.php 
    103106 
     107sd lib/diff 
     108dd tests/diff 
     109   diffhtml.php 
     110   difflib.php 
     111 
     112sd lib/jelix-modules/junittests/classes 
     113dd tests/simpletest/ 
     114   junittestcase.class.php 
     115 
     116sd lib/jelix/tpl/tests/ 
     117dd tests/simpletest/ 
     118   myhtmlreporter.class.php 
     119 
     120    
  • trunk/build/manifests/jtpl-standalone.mn

    r1142 r1144  
    1010sd lib/jelix/plugins/tpl/common 
    1111dd plugins/common 
     12  block.stripws.php 
    1213  cfunction.include.php 
    1314  function.counter.php 
     
    1516  function.counter_reset.php 
    1617  function.counter_reset_all.php 
     18  function.cycle.php 
     19  function.cycle_init.php 
     20  function.cycle_reset.php 
    1721  modifier.cat.php 
    1822  modifier.count_array.php 
     
    2327  modifier.date_format.php 
    2428  modifier.indent.php 
     29  modifier.number_format.php 
    2530  modifier.regex_replace.php 
    2631  modifier.replace.php 
     
    3338sd lib/jelix/plugins/tpl/html 
    3439dd plugins/html 
     40  block.swf.php 
     41  cfunction.const.php 
     42  cfunction.swfbiscuit.php 
    3543  modifier.nl2br.php 
     44  function.image.php 
    3645 
    3746sd lib/jelix/plugins/tpl/text 
    3847dd plugins/text 
     48  cfunction.const.php 
    3949 
    4050sd lib/jelix/plugins/tpl/xul 
    4151dd plugins/xul 
     52  cfunction.const.php 
     53 
     54sd lib/jelix/plugins/tpl/xml 
     55dd plugins/xml 
     56  cfunction.const.php 
    4257 
    4358sd lib/jelix/tpl/locales/ 
    4459dd locales/ 
    4560  fr.php 
     61  en.php 
    4662 
    4763sd lib/jelix/tpl/temp/ 
  • trunk/lib/jelix/tpl/jtpl_standalone_prepend.php

    r1143 r1144  
    3333     * the lang activated in the templates 
    3434     */ 
    35     static $lang = 'fr'; 
     35    static $lang = 'en'; 
    3636 
    3737    /** 
  • trunk/lib/jelix/tpl/locales/fr.php

    r1142 r1144  
    22 
    33jTplConfig::$localizedMessages =array( 
    4     'errors.tpl.not.found'=>'Le fichier template %s est introuvable', 
    54    'file.directory.notexists'=>'Le répertoire demandé (%s) n\'existe pas', 
    65    'file.directory.notwritable'=>'Impossible d\'écrire le fichier %s, assurez vous que le répertoire %s autorise l\'écriture', 
    76    'file.write.error'=>'Un problème est survenu lors de l\'écriture du fichier %s en utilisant le fichier temporaire %s', 
     7 
    88    'errors.tpl.tag.syntax.invalid'=>'Dans le template %2$s La syntaxe de balise %1$s est invalide', 
    99    'errors.tpl.tag.function.invalid'=>'Dans le template %2$s La syntaxe de la fonction %1$s est invalide', 
     10    'errors.tpl.tag.function.unknow'=>'Dans le template %2$s La fonction %1$s est inconnue', 
    1011    'errors.tpl.tag.modifier.invalid'=>'Dans le tag %s du template %3$s La syntaxe du modificateur %2$s est invalide', 
    1112    'errors.tpl.tag.modifier.unknow'=>'Dans le tag %s du template %3$s Le modificateur %2$s est inconnu', 
    1213    'errors.tpl.tag.block.end.missing'=>'Dans le template %2$s, la fin d\'un bloc %1$s est manquant', 
    1314    'errors.tpl.tag.block.begin.missing'=>'Dans le template %2$s, le début d\'un bloc %1$s est manquant', 
    14     'errors.tpl.tag.argument.unknow'=>'Dans le template %2$s L\'argument %1$s est inconnu', 
    15     'errors.tpl.tag.function.unknow'=>'Dans le template %2$s La fonction %1$s est inconnue', 
    16     'errors.tpl.tag.meta.unknow'=>'Dans le template %2$s La balise meta %1$s est inconnue', 
    17     'errors.tpl.tag.meta.invalid'=>'Dans le template %2$s La syntaxe de la meta %1$s est invalide', 
    1815    'errors.tpl.tag.phpsyntax.invalid'=>'Dans le tag %s du template %3$s, le code php %2$s n\'est pas autorisé', 
    1916    'errors.tpl.tag.locale.invalid'=>'Dans le tag %s du template %s, clef de localisation vide', 
    2017    'errors.tpl.tag.character.invalid'=>'Dans le tag %s du template %3$s, le caractère  %2$s n\'est pas autorisé', 
    2118    'errors.tpl.tag.bracket.error'=>'Dans le tag %s du template %s, il y a des erreurs au niveau des parenthèses', 
     19    'errors.tpl.not.found'=>'Le fichier template %s est introuvable', 
     20    'errors.tpl.tag.meta.unknow'=>'Dans le template %2$s La balise meta %1$s est inconnue', 
     21    'errors.tpl.tag.meta.invalid'=>'Dans le template %2$s La syntaxe de la meta %1$s est invalide', 
    2222    'errors.tplplugin.block.too.few.arguments'=>'Dans le tag %s du template %s, arguments manquants', 
    2323    'errors.tplplugin.block.too.many.arguments'=>'Dans le tag %s du template %s, arguments en trop', 
     24    'errors.tplplugin.block.bad.argument.number'=>'Dans le tag %s du template %3$s, nombre d\'arguments incorrect (%2$s attendus)', 
    2425    'errors.tpl.tag.constant.notallowed'=>'Dans le tag %s du template %3$s, les constantes (%2$s) sont interdites', 
     26    'errors.tpl.tag.locale.end.missing'=>'Dans le tag %s du template %s, il manque la fin de la clef de localisation', 
     27    'errors.tplplugin.cfunction.bad.argument.number'=>'Dans le tag %s du template %3$s, nombre d\'arguments incorrect (%2$s attendus)', 
     28    'errors.tplplugin.cmodifier.bad.argument.number'=>'Dans le modificateur %s dans le template %3$s, nombre d\'arguments incorrect (%2$s attendus)', 
     29    'errors.tplplugin.untrusted.not.available'=>'Le tag %s dans le template %2$s n\'est pas autorisé dans un template sans confiance', 
     30    'errors.tplplugin.function.argument.unknow'=>'Dans le tag %2$s du template %3$s l\'argument %1$s est inconnu', 
     31    'errors.tplplugin.function.invalid'=>'Dans le tag %1$s du template %3$s la syntaxe est invalide', 
    2532); 
    2633 
Download in other formats: Unified Diff Zip Archive