Data8_DataCaptureValidation - Version 1.0.6

Version Notes

Added locale file to enable translating.

Download this release

Release Info

Developer Data8
Extension Data8_DataCaptureValidation
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/code/community/Data8/DataCaptureValidation/etc/config.xml CHANGED
@@ -25,6 +25,15 @@
25
  </data8_datacapturevalidation_checkout>
26
  </updates>
27
  </layout>
 
 
 
 
 
 
 
 
 
28
  </frontend>
29
  <adminhtml>
30
  <acl>
25
  </data8_datacapturevalidation_checkout>
26
  </updates>
27
  </layout>
28
+ <translate>
29
+ <modules>
30
+ <Data8_DataCaptureValidation>
31
+ <files>
32
+ <default>Data8_DataCaptureValidation.csv</default>
33
+ </files>
34
+ </Data8_DataCaptureValidation>
35
+ </modules>
36
+ </translate>
37
  </frontend>
38
  <adminhtml>
39
  <acl>
app/design/frontend/default/default/template/data8/datacapturevalidation/data8_javascript.phtml CHANGED
@@ -105,7 +105,7 @@
105
 
106
  <?php if (Mage::getStoreConfig('Data8/Data8_group/Data8_emailValidationLevel',Mage::app()->getStore()) != 'None') { ?>
107
 
108
- Validation.add('data8-email-validation', 'Please check your email address', function(value, element) {
109
  if (!value)
110
  return true;
111
  var result = element.data8_email_validation_result;
@@ -125,7 +125,7 @@
125
 
126
  <?php if (Mage::getStoreConfig('Data8/Data8_group/Data8_telephoneValidation',Mage::app()->getStore())) { ?>
127
 
128
- Validation.add('data8-telephone-validation', 'Please check your telephone number', function(value, element) {
129
  if (!value)
130
  return true;
131
  var result = element.data8_telephone_validation_result;
105
 
106
  <?php if (Mage::getStoreConfig('Data8/Data8_group/Data8_emailValidationLevel',Mage::app()->getStore()) != 'None') { ?>
107
 
108
+ Validation.add('data8-email-validation', '<?php echo $this->__('Please check your email address') ?>', function(value, element) {
109
  if (!value)
110
  return true;
111
  var result = element.data8_email_validation_result;
125
 
126
  <?php if (Mage::getStoreConfig('Data8/Data8_group/Data8_telephoneValidation',Mage::app()->getStore())) { ?>
127
 
128
+ Validation.add('data8-telephone-validation', '<?php echo $this->__('Please check your telephone number') ?>', function(value, element) {
129
  if (!value)
130
  return true;
131
  var result = element.data8_telephone_validation_result;
app/locale/en_US/Data8_DataCaptureValidation.csv ADDED
@@ -0,0 +1,2 @@
 
 
1
+ "Please check your email address","Please check your email address"
2
+ "Please check your telephone number","Please check your telephone number"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Data8_DataCaptureValidation</name>
4
- <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -10,11 +10,11 @@
10
  <description>* Adds postcode lookup functionality to all address entry screens, speeding up the checkout process and improving the deliverability of parcels. Covers all UK addresses and degrades gracefully when a different country is selected.&#xD;
11
  * Adds extensive telephone number validation for all UK and North American telephone numbers and degrades gracefully when a different country is selected.&#xD;
12
  * Adds extensive international email address validation.</description>
13
- <notes>Fixed Firefox &amp; Chrome compatibility.</notes>
14
  <authors><author><name>Data8</name><user>data8_technical</user><email>technical@data-8.co.uk</email></author></authors>
15
- <date>2012-07-12</date>
16
- <time>14:56:37</time>
17
- <contents><target name="magecommunity"><dir name="Data8"><dir name="DataCaptureValidation"><dir name="Block"><file name="Javascript.php" hash="16f9e4084dd2f20ca6588a39edcc1f0c"/></dir><file name="EmailValidationTypeList.php" hash="89910b62ec4efe9c4eada99b76d8b2cd"/><dir name="Helper"><file name="Data.php" hash="e8c6af1f98bf0f9640134b24dc642122"/></dir><file name="LicenseTypeList.php" hash="ddd66dd3149d083ecd69555bd4ba1a52"/><dir name="controllers"><file name="IndexController.php" hash="8d82912789ff1b1494aa56345ff5d7d9"/></dir><dir name="etc"><file name="config.xml" hash="37b7ffa4921af00ee82a44c54d129e36"/><file name="system.xml" hash="c1a609fa83e13d2c1ccab80d3890f6a9"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Data8_DataCaptureValidation.xml" hash="506c38f100fa1cf2b8eda1f72b694810"/></dir><dir name="template"><dir name="data8"><dir name="datacapturevalidation"><file name="data8_javascript.phtml" hash="bbdbfeba1886147029de27eb90e98123"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="Data8"><file name="address.js" hash="f03ee3c3bf1bebabfb0518b8f0bd46b9"/><file name="jquery-1.7.1.min.js" hash="2c57990a020cc3a35c4a603413d67a28"/><file name="magentoaddress.js" hash="f164aeeb0e9904fcbceb4ac3ce9d9ce7"/><file name="validation.js" hash="2f164db255c20476b4b29449b6be3147"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Data8_DataCaptureValidation.xml" hash="9c16925bf791b39a2e51dd40552b6429"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.7.0.0</max></package></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Data8_DataCaptureValidation</name>
4
+ <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
10
  <description>* Adds postcode lookup functionality to all address entry screens, speeding up the checkout process and improving the deliverability of parcels. Covers all UK addresses and degrades gracefully when a different country is selected.&#xD;
11
  * Adds extensive telephone number validation for all UK and North American telephone numbers and degrades gracefully when a different country is selected.&#xD;
12
  * Adds extensive international email address validation.</description>
13
+ <notes>Added locale file to enable translating.</notes>
14
  <authors><author><name>Data8</name><user>data8_technical</user><email>technical@data-8.co.uk</email></author></authors>
15
+ <date>2012-08-20</date>
16
+ <time>09:48:06</time>
17
+ <contents><target name="magecommunity"><dir name="Data8"><dir name="DataCaptureValidation"><dir name="Block"><file name="Javascript.php" hash="16f9e4084dd2f20ca6588a39edcc1f0c"/></dir><file name="EmailValidationTypeList.php" hash="89910b62ec4efe9c4eada99b76d8b2cd"/><dir name="Helper"><file name="Data.php" hash="e8c6af1f98bf0f9640134b24dc642122"/></dir><file name="LicenseTypeList.php" hash="ddd66dd3149d083ecd69555bd4ba1a52"/><dir name="controllers"><file name="IndexController.php" hash="8d82912789ff1b1494aa56345ff5d7d9"/></dir><dir name="etc"><file name="config.xml" hash="1f1ce2961df39faeac18070051f01893"/><file name="system.xml" hash="c1a609fa83e13d2c1ccab80d3890f6a9"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Data8_DataCaptureValidation.xml" hash="506c38f100fa1cf2b8eda1f72b694810"/></dir><dir name="template"><dir name="data8"><dir name="datacapturevalidation"><file name="data8_javascript.phtml" hash="00ac46ea0ca8a082052d5dfe72aec3f5"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="Data8"><file name="address.js" hash="f03ee3c3bf1bebabfb0518b8f0bd46b9"/><file name="jquery-1.7.1.min.js" hash="2c57990a020cc3a35c4a603413d67a28"/><file name="magentoaddress.js" hash="f164aeeb0e9904fcbceb4ac3ce9d9ce7"/><file name="validation.js" hash="2f164db255c20476b4b29449b6be3147"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Data8_DataCaptureValidation.xml" hash="9c16925bf791b39a2e51dd40552b6429"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Data8_DataCaptureValidation.csv" hash="845e7bce7a102df9aefb67abace15a1c"/></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.1.0</min><max>1.7.0.0</max></package></required></dependencies>
20
  </package>