Changeset 580
- Timestamp:
- 09/13/07 20:23:31 (1 year ago)
- Files:
-
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix/docs/ns/jforms.rng (modified) (1 diff)
- trunk/lib/jelix/docs/ns/jforms.rng (modified) (1 diff)
- trunk/lib/jelix/forms/jFormsCompiler.class.php (modified) (2 diffs)
- trunk/lib/jelix/forms/jFormsCompiler.class.php (modified) (2 diffs)
- trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html.php (modified) (2 diffs)
- trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.ISO-8859-1.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.ISO-8859-1.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.UTF-8.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_EN/formserr.UTF-8.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.UTF-8.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/en_US/formserr.UTF-8.properties
r552 r580 15 15 invalid.form.builder = (814) The type "%s" of form constructor is invalid (form=%s) 16 16 invalid.upload.control.name = (815) The given control name "%s" is invalid or the corresponding control is not an upload (form=%s) 17 content.missing=(816) content of %1$s tag is missing (file %2$s) 17 18 18 19 js.err.invalid= "%s" field is invalid trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties
r552 r580 15 15 invalid.form.builder = (814) Le type "%s" de constructeur de formulaire est invalide (form=%s) 16 16 invalid.upload.control.name = (815) Le nom de controle indiqu�%s" est invalide ou le control n'est pas un upload (form=%s) 17 content.missing=(816) le contenu de %1$s est manquant (fichier %2$s) 17 18 18 19 js.err.invalid=La saisie de "%s" est invalide trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties
r552 r580 15 15 invalid.form.builder = (814) Le type "%s" de constructeur de formulaire est invalide (form=%s) 16 16 invalid.upload.control.name = (815) Le nom de controle indiqu�%s" est invalide ou le control n'est pas un upload (form=%s) 17 content.missing=(816) le contenu de %1$s est manquant (fichier %2$s) 17 18 18 19 js.err.invalid=La saisie de "%s" est invalide trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.UTF-8.properties
r552 r580 15 15 invalid.form.builder = (814) Le type "%s" de constructeur de formulaire est invalide (form=%s) 16 16 invalid.upload.control.name = (815) Le nom de controle indiqué "%s" est invalide ou le control n'est pas un upload (form=%s) 17 content.missing=(816) le contenu de %1$s est manquant (fichier %2$s) 17 18 18 19 js.err.invalid=La saisie de "%s" est invalide trunk/lib/jelix/core-modules/jelix/locales/fr_FR/formserr.UTF-8.properties
r552 r580 15 15 invalid.form.builder = (814) Le type "%s" de constructeur de formulaire est invalide (form=%s) 16 16 invalid.upload.control.name = (815) Le nom de controle indiqué "%s" est invalide ou le control n'est pas un upload (form=%s) 17 content.missing=(816) le contenu de %1$s est manquant (fichier %2$s) 17 18 18 19 js.err.invalid=La saisie de "%s" est invalide trunk/lib/jelix/docs/ns/jforms.rng
r578 r580 62 62 <optional> 63 63 <element name="confirm"> 64 <empty/> 65 <choice> 66 <attribute name="label" /> 64 <choice> 65 <text /> 66 <group> 67 <emtpy/> 67 68 <attribute name="labellocale" /> 68 </choice> 69 </group> 70 </choice> 69 71 </element> 70 72 </optional> trunk/lib/jelix/docs/ns/jforms.rng
r578 r580 62 62 <optional> 63 63 <element name="confirm"> 64 <empty/> 65 <choice> 66 <attribute name="label" /> 64 <choice> 65 <text /> 66 <group> 67 <emtpy/> 67 68 <attribute name="labellocale" /> 68 </choice> 69 </group> 70 </choice> 69 71 </element> 70 72 </optional> trunk/lib/jelix/forms/jFormsCompiler.class.php
r578 r580 274 274 if(isset($control->confirm)) { 275 275 $label=''; 276 if(isset($control->confirm['l abel'])){277 $label = " '".str_replace("'","\\'",(string)$control->confirm['label'])."';";278 }elseif( isset($control->confirm['labellocale'])){279 $label = " jLocale::get('".(string)$control->confirm['labellocale']."');";276 if(isset($control->confirm['locale'])){ 277 $label = "jLocale::get('".(string)$control->confirm['locale']."');"; 278 }elseif( "" != (string)$control->confirm) { 279 $label = "'".str_replace("'","\\'",(string)$control->confirm)."';"; 280 280 }else{ 281 throw new jException('jelix~formserr. attribute.missing',array('label','confirm',$this->sourceFile));281 throw new jException('jelix~formserr.content.missing',array('confirm',$this->sourceFile)); 282 282 } 283 283 $source[]='$ctrl2 = new jFormsControlSecretConfirm(\''.(string)$control['ref'].'_confirm\');'; … … 381 381 $source[]='$js.="jForms.tControl = new jFormsControl(\''.(string)$control['ref'].'\', \'".$label."\', \''.$dt.'\');\n";'; 382 382 if($hasConfirm){ 383 if(isset($control->confirm['l abel'])){384 $source[]='$label2 = str_replace("\'","\\\'", \''.str_replace("'","\\'",(string)$control->confirm['label']).'\');';383 if(isset($control->confirm['locale'])){ 384 $source[]='$label2 = str_replace("\'","\\\'",jLocale::get(\''.(string)$control->confirm['locale'].'\'));'; 385 385 }else{ 386 $source[]='$label2 = str_replace("\'","\\\'", jLocale::get(\''.(string)$control->confirm['labellocale'].'\'));';386 $source[]='$label2 = str_replace("\'","\\\'",\''.str_replace("'","\\'",(string)$control->confirm).'\');'; 387 387 } 388 388 $source[]='$js.="jForms.tControl2 = new jFormsControl(\''.(string)$control['ref'].'_confirm\', \'".$label2."\', \''.$dt.'\');\n";'; trunk/lib/jelix/forms/jFormsCompiler.class.php
r578 r580 274 274 if(isset($control->confirm)) { 275 275 $label=''; 276 if(isset($control->confirm['l abel'])){277 $label = " '".str_replace("'","\\'",(string)$control->confirm['label'])."';";278 }elseif( isset($control->confirm['labellocale'])){279 $label = " jLocale::get('".(string)$control->confirm['labellocale']."');";276 if(isset($control->confirm['locale'])){ 277 $label = "jLocale::get('".(string)$control->confirm['locale']."');"; 278 }elseif( "" != (string)$control->confirm) { 279 $label = "'".str_replace("'","\\'",(string)$control->confirm)."';"; 280 280 }else{ 281 throw new jException('jelix~formserr. attribute.missing',array('label','confirm',$this->sourceFile));281 throw new jException('jelix~formserr.content.missing',array('confirm',$this->sourceFile)); 282 282 } 283 283 $source[]='$ctrl2 = new jFormsControlSecretConfirm(\''.(string)$control['ref'].'_confirm\');'; … … 381 381 $source[]='$js.="jForms.tControl = new jFormsControl(\''.(string)$control['ref'].'\', \'".$label."\', \''.$dt.'\');\n";'; 382 382 if($hasConfirm){ 383 if(isset($control->confirm['l abel'])){384 $source[]='$label2 = str_replace("\'","\\\'", \''.str_replace("'","\\'",(string)$control->confirm['label']).'\');';383 if(isset($control->confirm['locale'])){ 384 $source[]='$label2 = str_replace("\'","\\\'",jLocale::get(\''.(string)$control->confirm['locale'].'\'));'; 385 385 }else{ 386 $source[]='$label2 = str_replace("\'","\\\'", jLocale::get(\''.(string)$control->confirm['labellocale'].'\'));';386 $source[]='$label2 = str_replace("\'","\\\'",\''.str_replace("'","\\'",(string)$control->confirm).'\');'; 387 387 } 388 388 $source[]='$js.="jForms.tControl2 = new jFormsControl(\''.(string)$control['ref'].'_confirm\', \'".$label2."\', \''.$dt.'\');\n";'; trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html.php
r578 r580 216 216 50=>'<secret ref="pwd" xmlns="http://jelix.org/ns/forms/1.0"> 217 217 <label>Votre mot de passe</label> 218 <confirm label="confirmez" />218 <confirm>confirmez</confirm> 219 219 </secret>', 220 220 51=>'<secret ref="pwd" xmlns="http://jelix.org/ns/forms/1.0"> 221 221 <label>Votre mot de passe</label> 222 <confirm l abellocale="password.confirm" />222 <confirm locale="password.confirm" /> 223 223 </secret>', 224 224 52=>'<submit ref="validation" xmlns="http://jelix.org/ns/forms/1.0" … … 968 968 <confirm /> 969 969 </secret>', 970 'jelix~formserr.attribute.missing', 971 array('label','confirm','myfile') 970 'jelix~formserr.content.missing', 971 array('confirm','myfile') 972 ), 973 array( 974 '<secret ref="pwd" xmlns="http://jelix.org/ns/forms/1.0"> 975 <label>Votre mot de passe</label> 976 <confirm></confirm> 977 </secret>', 978 'jelix~formserr.content.missing', 979 array('confirm','myfile') 972 980 ), 973 981 array( trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html.php
r578 r580 216 216 50=>'<secret ref="pwd" xmlns="http://jelix.org/ns/forms/1.0"> 217 217 <label>Votre mot de passe</label> 218 <confirm label="confirmez" />218 <confirm>confirmez</confirm> 219 219 </secret>', 220 220 51=>'<secret ref="pwd" xmlns="http://jelix.org/ns/forms/1.0"> 221 221 <label>Votre mot de passe</label> 222 <confirm l abellocale="password.confirm" />222 <confirm locale="password.confirm" /> 223 223 </secret>', 224 224 52=>'<submit ref="validation" xmlns="http://jelix.org/ns/forms/1.0" … … 968 968 <confirm /> 969 969 </secret>', 970 'jelix~formserr.attribute.missing', 971 array('label','confirm','myfile') 970 'jelix~formserr.content.missing', 971 array('confirm','myfile') 972 ), 973 array( 974 '<secret ref="pwd" xmlns="http://jelix.org/ns/forms/1.0"> 975 <label>Votre mot de passe</label> 976 <confirm></confirm> 977 </secret>', 978 'jelix~formserr.content.missing', 979 array('confirm','myfile') 972 980 ), 973 981 array(
