Show
Ignore:
Timestamp:
01/04/2008 01:39:15 PM (12 months ago)
Author:
Geert
Message:
  • Fixed #302 (Translators: update validation file please)
  • Some minor (whitespace) cleanups
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Validation.php

    r1646 r1672  
    936936                        return TRUE; 
    937937 
    938                 $this->add_error('valid_type', $this->current_field, 'alphabetical'); 
     938                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.alpha')); 
    939939                return FALSE; 
    940940        } 
     
    955955                        return TRUE; 
    956956 
    957                 $this->add_error('valid_type', $this->current_field, 'alphabetical'); 
     957                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.alpha')); 
    958958                return FALSE; 
    959959        } 
     
    974974                        return TRUE; 
    975975 
    976                 $this->add_error('valid_type', $this->current_field, 'alphabetical'); 
     976                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.alpha')); 
    977977                return FALSE; 
    978978        } 
     
    993993                        return TRUE; 
    994994 
    995                 $this->add_error('valid_type', $this->current_field, 'alphabetical'); 
     995                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.alpha')); 
    996996                return FALSE; 
    997997        } 
     
    10121012                        return TRUE; 
    10131013 
    1014                 $this->add_error('valid_type', $this->current_field, 'alphabetical, dash, and underscore'); 
     1014                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.alpha_dash')); 
    10151015                return FALSE; 
    10161016        } 
     
    10311031                        return TRUE; 
    10321032 
    1033                 $this->add_error('valid_type', $this->current_field, 'alphabetical, dash, and underscore'); 
     1033                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.alpha_dash')); 
    10341034                return FALSE; 
    10351035        } 
     
    10501050                        return TRUE; 
    10511051 
    1052                 $this->add_error('valid_type', $this->current_field, 'digit'); 
     1052                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.digit')); 
    10531053                return FALSE; 
    10541054        } 
     
    10691069                        return TRUE; 
    10701070 
    1071                 $this->add_error('valid_type', $this->current_field, 'digit'); 
     1071                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.digit')); 
    10721072                return FALSE; 
    10731073        } 
     
    10881088                    return TRUE; 
    10891089 
    1090                 $this->add_error('valid_type', $this->current_field, 'numeric'); 
     1090                $this->add_error('valid_type', $this->current_field, Kohana::lang('validation.numeric')); 
    10911091                return FALSE; 
    10921092        }