pieforms-commit Mailing List for Pieforms
Status: Alpha
Brought to you by:
oracleshinoda
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(73) |
Dec
(83) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(16) |
Feb
(19) |
Mar
(12) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(2) |
Dec
(45) |
2008 |
Jan
(20) |
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(7) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
(2) |
13
|
14
|
15
|
16
|
17
|
18
(8) |
19
|
20
|
21
|
22
|
23
|
24
|
25
(2) |
26
|
27
|
28
|
29
|
30
|
31
|
From: <ora...@us...> - 2007-03-12 22:50:37
|
Revision: 193 http://svn.sourceforge.net/pieforms/?rev=193&view=rev Author: oracleshinoda Date: 2007-03-12 15:50:37 -0700 (Mon, 12 Mar 2007) Log Message: ----------- Merged i18n fixes from trunk Modified Paths: -------------- pieforms-php5/branches/0.2.0/src/pieform/elements/calendar.php pieforms-php5/branches/0.2.0/src/pieform/rules/integer.php pieforms-php5/branches/0.2.0/src/pieform/rules/maxlength.php pieforms-php5/branches/0.2.0/src/pieform/rules/minlength.php pieforms-php5/branches/0.2.0/src/pieform/rules/regex.php Modified: pieforms-php5/branches/0.2.0/src/pieform/elements/calendar.php =================================================================== --- pieforms-php5/branches/0.2.0/src/pieform/elements/calendar.php 2007-03-12 22:46:39 UTC (rev 192) +++ pieforms-php5/branches/0.2.0/src/pieform/elements/calendar.php 2007-03-12 22:50:37 UTC (rev 193) @@ -134,7 +134,7 @@ $value = strtotime($global[$name]); if ($value === false) { - $form->set_error($name, 'TODO (error for invalid calendar value)'); + $form->set_error($name, $form->i18n('element', 'calendar', 'invalidvalue', $element)); return null; } return $value; @@ -147,4 +147,15 @@ return null; } +/** + * i18n for calendar + */ +function pieform_element_calendar_i18n() { + return array( + 'en.utf8' => array( + 'invalidvalue' => 'Invalid date/time specified' + ) + ); +} + ?> Modified: pieforms-php5/branches/0.2.0/src/pieform/rules/integer.php =================================================================== --- pieforms-php5/branches/0.2.0/src/pieform/rules/integer.php 2007-03-12 22:46:39 UTC (rev 192) +++ pieforms-php5/branches/0.2.0/src/pieform/rules/integer.php 2007-03-12 22:50:37 UTC (rev 193) @@ -39,7 +39,7 @@ } } -function pieform_i18n_rule_integer() { +function pieform_rule_integer_i18n() { return array( 'en.utf8' => array( 'integer' => 'The field must be an integer' Modified: pieforms-php5/branches/0.2.0/src/pieform/rules/maxlength.php =================================================================== --- pieforms-php5/branches/0.2.0/src/pieform/rules/maxlength.php 2007-03-12 22:46:39 UTC (rev 192) +++ pieforms-php5/branches/0.2.0/src/pieform/rules/maxlength.php 2007-03-12 22:50:37 UTC (rev 193) @@ -39,7 +39,7 @@ } } -function pieform_i18n_rule_maxlength() { +function pieform_rule_maxlength_i18n() { return array( 'en.utf8' => array( 'maxlength' => 'This field must be at most %d characters long' Modified: pieforms-php5/branches/0.2.0/src/pieform/rules/minlength.php =================================================================== --- pieforms-php5/branches/0.2.0/src/pieform/rules/minlength.php 2007-03-12 22:46:39 UTC (rev 192) +++ pieforms-php5/branches/0.2.0/src/pieform/rules/minlength.php 2007-03-12 22:50:37 UTC (rev 193) @@ -39,7 +39,7 @@ } } -function pieform_i18n_rule_minlength() { +function pieform_rule_minlength_i18n() { return array( 'en.utf8' => array( 'minlength' => 'This field must be at least %d characters long', Modified: pieforms-php5/branches/0.2.0/src/pieform/rules/regex.php =================================================================== --- pieforms-php5/branches/0.2.0/src/pieform/rules/regex.php 2007-03-12 22:46:39 UTC (rev 192) +++ pieforms-php5/branches/0.2.0/src/pieform/rules/regex.php 2007-03-12 22:50:37 UTC (rev 193) @@ -40,7 +40,7 @@ } } -function pieform_i18n_rule_regex() { +function pieform_rule_regex_i18n() { return array( 'en.utf8' => array( 'regex' => 'This field is not in valid form' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ora...@us...> - 2007-03-12 22:46:39
|
Revision: 192 http://svn.sourceforge.net/pieforms/?rev=192&view=rev Author: oracleshinoda Date: 2007-03-12 15:46:39 -0700 (Mon, 12 Mar 2007) Log Message: ----------- Fixed up i18n for several elements and rules Modified Paths: -------------- pieforms-php5/trunk/src/pieform/elements/calendar.php pieforms-php5/trunk/src/pieform/rules/integer.php pieforms-php5/trunk/src/pieform/rules/maxlength.php pieforms-php5/trunk/src/pieform/rules/minlength.php pieforms-php5/trunk/src/pieform/rules/regex.php Modified: pieforms-php5/trunk/src/pieform/elements/calendar.php =================================================================== --- pieforms-php5/trunk/src/pieform/elements/calendar.php 2007-02-27 04:47:10 UTC (rev 191) +++ pieforms-php5/trunk/src/pieform/elements/calendar.php 2007-03-12 22:46:39 UTC (rev 192) @@ -134,7 +134,7 @@ $value = strtotime($global[$name]); if ($value === false) { - $form->set_error($name, 'TODO (error for invalid calendar value)'); + $form->set_error($name, $form->i18n('element', 'calendar', 'invalidvalue', $element)); return null; } return $value; @@ -147,4 +147,15 @@ return null; } +/** + * i18n for calendar + */ +function pieform_element_calendar_i18n() { + return array( + 'en.utf8' => array( + 'invalidvalue' => 'Invalid date/time specified' + ) + ); +} + ?> Modified: pieforms-php5/trunk/src/pieform/rules/integer.php =================================================================== --- pieforms-php5/trunk/src/pieform/rules/integer.php 2007-02-27 04:47:10 UTC (rev 191) +++ pieforms-php5/trunk/src/pieform/rules/integer.php 2007-03-12 22:46:39 UTC (rev 192) @@ -39,7 +39,7 @@ } } -function pieform_i18n_rule_integer() { +function pieform_rule_integer_i18n() { return array( 'en.utf8' => array( 'integer' => 'The field must be an integer' Modified: pieforms-php5/trunk/src/pieform/rules/maxlength.php =================================================================== --- pieforms-php5/trunk/src/pieform/rules/maxlength.php 2007-02-27 04:47:10 UTC (rev 191) +++ pieforms-php5/trunk/src/pieform/rules/maxlength.php 2007-03-12 22:46:39 UTC (rev 192) @@ -39,7 +39,7 @@ } } -function pieform_i18n_rule_maxlength() { +function pieform_rule_maxlength_i18n() { return array( 'en.utf8' => array( 'maxlength' => 'This field must be at most %d characters long' Modified: pieforms-php5/trunk/src/pieform/rules/minlength.php =================================================================== --- pieforms-php5/trunk/src/pieform/rules/minlength.php 2007-02-27 04:47:10 UTC (rev 191) +++ pieforms-php5/trunk/src/pieform/rules/minlength.php 2007-03-12 22:46:39 UTC (rev 192) @@ -39,7 +39,7 @@ } } -function pieform_i18n_rule_minlength() { +function pieform_rule_minlength_i18n() { return array( 'en.utf8' => array( 'minlength' => 'This field must be at least %d characters long', Modified: pieforms-php5/trunk/src/pieform/rules/regex.php =================================================================== --- pieforms-php5/trunk/src/pieform/rules/regex.php 2007-02-27 04:47:10 UTC (rev 191) +++ pieforms-php5/trunk/src/pieform/rules/regex.php 2007-03-12 22:46:39 UTC (rev 192) @@ -40,7 +40,7 @@ } } -function pieform_i18n_rule_regex() { +function pieform_rule_regex_i18n() { return array( 'en.utf8' => array( 'regex' => 'This field is not in valid form' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |