Changeset 2667

Show
Ignore:
Timestamp:
05/13/08 03:23:53 (2 months ago)
Author:
Geert
Message:

Follow-up to r2628. Using generic i18n messages for loading of drivers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/system/i18n/en_US/archive.php

    r1772 r2667  
    33$lang = array 
    44( 
    5         'driver_not_supported' => 'The requested Archive driver, %s, was not found.', 
    6         'driver_implements'    => 'The requested Archive driver, %s, does not implement Archive_Driver.', 
    75        'directory_unwritable' => 'The directory you requested to save the file in, %s, is unwritable. Please correct the permissions and try again.', 
    86        'filename_conflict'    => 'The requested archive filename, %s, already exists and is not writable. Please remove the conflicting file and try again.' 
  • trunk/system/i18n/en_US/cache.php

    r2377 r2667  
    44( 
    55        'undefined_group'      => 'The %s group is not defined in your configuration.', 
    6         'driver_not_supported' => 'The requested Cache driver, %s, was not found.', 
    7         'driver_implements'    => 'The requested Cache driver, %s, does not implement Cache_Driver.', 
    86        'extension_not_loaded' => 'The %s PHP extension must be loaded to use this driver.', 
    97        'unwritable'           => 'The configured storage location, <tt>%s</tt>, is not writable.', 
  • trunk/system/i18n/en_US/database.php

    r2413 r2667  
    66        'error'                 => 'There was an SQL error: %s', 
    77        'connection'            => 'There was an error connecting to the database: %s', 
    8         'driver_not_supported'  => 'The requested Database driver, %s, was not found.', 
    98        'invalid_dsn'           => 'The DSN you supplied is not valid: %s', 
    109        'must_use_set'          => 'You must set a SET clause for your query.', 
  • trunk/system/i18n/en_US/image.php

    r1921 r2667  
    44( 
    55        'getimagesize_missing'    => 'The Image library requires the <tt>getimagesize</tt> PHP function, which is not available in your installation.', 
    6         'driver_not_supported'    => 'The requested Image driver, %s, was not found.', 
    76        'unsupported_method'      => 'Your configured driver does not support the %s image transformation.', 
    87        'file_not_found'          => 'The specified image, %s, was not found. Please verify that images exist by using <tt>file_exists</tt> before manipulating them.', 
  • trunk/system/i18n/en_US/payment.php

    r1952 r2667  
    33$lang = array 
    44( 
    5         'driver_not_supported'     => 'The requested Payment driver, %s, was not found.', 
    6         'driver_implements'        => 'The requested Payment driver, %s, does not implement Payment_Driver.', 
    75        'required'                 => 'Some required fields were not supplied: %s', 
    86        'gateway_connection_error' => 'An error occured connecting to the payment gateway. Please contact the webmaster if this problem persists.', 
  • trunk/system/i18n/en_US/session.php

    r1866 r2667  
    33$lang = array 
    44( 
    5         'driver_not_supported' => 'The requested Session driver, %s, was not found.', 
    6         'driver_implements'    => 'The requested Session driver, %s, does not implement Session_Driver.', 
    75        'invalid_session_name' => 'The session_name, %s, is invalid. It should contain only alphanumeric characters and at least one letter should be present.', 
    86); 
  • trunk/system/i18n/nl_NL/archive.php

    r1866 r2667  
    33$lang = array 
    44( 
    5         'driver_not_supported' => 'De %s Archive driver werd niet gevonden.', 
    6         'driver_implements'    => 'De %s Archive driver implementeert de Archive_Driver interface niet.', 
    75        'directory_unwritable' => 'De directory die je opgaf om het bestand in op te slaan, %s, is niet schrijfbaar. Stel de correcte permissies in en probeer opnieuw.', 
    86        'filename_conflict'    => 'De bestandsnaam die je opgaf voor het archief, %s, bestaat al en is niet schrijfbaar. Verwijder dat bestand en probeer opnieuw.' 
  • trunk/system/i18n/nl_NL/cache.php

    r2377 r2667  
    44( 
    55        'undefined_group'      => 'De %s groep is niet gedefinieerd in uw configuratie.', 
    6         'driver_not_supported' => 'De %s Cache driver werd niet gevonden.', 
    7         'driver_implements'    => 'De %s Cache driver implementeert de Cache_Driver interface niet.', 
    86        'extension_not_loaded' => 'De %s PHP extensie moet geladen zijn om deze driver te gebruiken.', 
    97        'unwritable'           => 'De geconfigureerde opslaglocatie, <tt>%s</tt>, is niet schrijfbaar.', 
  • trunk/system/i18n/nl_NL/core.php

    r2325 r2667  
    99        'resource_not_found'    => 'De opgevraagde %s, <tt>%s</tt>, kon niet gevonden worden.', 
    1010        'invalid_filetype'      => 'Het opgevraagde bestandstype, <tt>.%s</tt>, wordt niet toegestaan door het view configuratiebestand.', 
     11        'view_set_filename'     => 'Je moet de view bestandsnaam opgeven voordat je render aanroept.', 
    1112        'no_default_route'      => 'Zet een default route in <tt>config/routes.php</tt>.', 
    1213        'no_controller'         => 'Kohana kon geen controller aanduiden om deze pagina te verwerken: %s', 
     
    1819        'errors_disabled'       => 'Ga naar de <a href="%s">homepage</a> of <a href="%s">probeer opnieuw</a>.', 
    1920 
     21        // Drivers 
     22        'driver_implements'     => 'De %s driver voor de %s library moet de %s interface implementeren.', 
     23        'driver_not_found'      => 'De %s driver voor de %s library werd niet gevonden.', 
     24 
    2025        // Resource names 
    2126        'controller'            => 'controller', 
  • trunk/system/i18n/nl_NL/database.php

    r2428 r2667  
    66        'error'                 => 'Er was een SQL fout: %s', 
    77        'connection'            => 'Fout bij het verbinden met de database: %s', 
    8         'driver_not_supported'  => 'De %s database driver werd niet gevonden.', 
    98        'invalid_dsn'           => 'De DSN die je opgaf is ongeldig: %s', 
    109        'must_use_set'          => 'Je moet een SET clause opgeven voor je query.', 
  • trunk/system/i18n/nl_NL/image.php

    r1921 r2667  
    44( 
    55        'getimagesize_missing'    => 'De Image library vereist de <tt>getimagesize</tt> PHP functie en die is niet beschikbaar op dit systeem.', 
    6         'driver_not_supported'    => 'De %s Image driver werd niet gevonden.', 
    76        'unsupported_method'      => 'De huidige Image driver ondersteunt volgende transformatie niet: %s.', 
    87        'file_not_found'          => 'De opgegeven afbeelding, %s, werd niet gevonden. Controleer a.u.b. eerst of afbeeldingen bestaan via de <tt>file_exists</tt> functie voordat je ze begint te bewerken.', 
  • trunk/system/i18n/nl_NL/payment.php

    r1952 r2667  
    33$lang = array 
    44( 
    5         'driver_not_supported'     => 'De %s Payment driver werd niet gevonden.', 
    6         'driver_implements'        => 'De %s Payment driver implementeert de Payment_Driver interface niet.', 
    75        'required'                 => 'Sommige verplichte velden werden niet ingevuld: %s', 
    86        'gateway_connection_error' => 'Er ging iets mis bij het verbinden met de payment gateway. Contacteer a.u.b. de webmaster als dit probleem aanhoudt.', 
  • trunk/system/i18n/nl_NL/session.php

    r1866 r2667  
    33$lang = array 
    44( 
    5         'driver_not_supported' => 'De %s Session driver werd niet gevonden.', 
    6         'driver_implements'    => 'De %s Session driver implementeert de Session_Driver interface niet.', 
    75        'invalid_session_name' => 'De sessie naam, %s, is ongeldig. Hij mag alleen maar bestaan uit alfanumerieke karakters en moet minstens één letter bevatten.', 
    86); 
  • trunk/system/libraries/Archive.php

    r2016 r2667  
    3434                // Load the driver 
    3535                if ( ! Kohana::auto_load($driver)) 
    36                         throw new Kohana_Exception('archive.driver_not_supported', $type); 
     36                        throw new Kohana_Exception('core.driver_not_found', $type, get_class($this)); 
    3737 
    3838                // Initialize the driver 
     
    4141                // Validate the driver 
    4242                if ( ! ($this->driver instanceof Archive_Driver)) 
    43                         throw new Kohana_Exception('archive.driver_implements', $type); 
     43                        throw new Kohana_Exception('core.driver_implements', $type, get_class($this), 'Archive_Driver'); 
    4444 
    4545                Log::add('debug', 'Archive Library initialized'); 
  • trunk/system/libraries/Cache.php

    r2593 r2667  
    6969                // Load the driver 
    7070                if ( ! Kohana::auto_load($driver)) 
    71                         throw new Kohana_Exception('cache.driver_not_supported', $this->config['driver']); 
     71                        throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 
    7272 
    7373                // Initialize the driver 
     
    7676                // Validate the driver 
    7777                if ( ! ($this->driver instanceof Cache_Driver)) 
    78                         throw new Kohana_Exception('cache.driver_implements', $this->config['driver']); 
     78                        throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Cache_Driver'); 
    7979 
    8080                Log::add('debug', 'Cache Library initialized'); 
  • trunk/system/libraries/Database.php

    r2593 r2667  
    179179                // Load the driver 
    180180                if ( ! Kohana::auto_load($driver)) 
    181                         throw new Kohana_Database_Exception('database.driver_not_supported', $this->config['connection']['type']); 
     181                        throw new Kohana_Database_Exception('core.driver_not_found', $this->config['connection']['type'], get_class($this)); 
    182182 
    183183                // Initialize the driver 
     
    186186                // Validate the driver 
    187187                if ( ! ($this->driver instanceof Database_Driver)) 
    188                         throw new Kohana_Database_Exception('database.driver_not_supported', 'Database drivers must use the Database_Driver interface.'); 
     188                        throw new Kohana_Database_Exception('core.driver_implements', $this->config['connection']['type'], get_class($this), 'Database_Driver'); 
    189189 
    190190                Log::add('debug', 'Database Library initialized'); 
  • trunk/system/libraries/Image.php

    r2593 r2667  
    111111                // Load the driver 
    112112                if ( ! Kohana::auto_load($driver)) 
    113                         throw new Kohana_Exception('image.driver_not_supported', $this->config['driver']); 
     113                        throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 
    114114 
    115115                // Initialize the driver 
    116116                $this->driver = new $driver($this->config['params']); 
    117117 
     118                // Validate the driver 
    118119                if ( ! ($this->driver instanceof Image_Driver)) 
    119                         throw new Kohana_Exception('image.invalid_driver', $driver); 
     120                        throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Image_Driver'); 
    120121        } 
    121122 
  • trunk/system/libraries/Payment.php

    r2209 r2667  
    7575                // Load the driver 
    7676                if ( ! Kohana::auto_load($driver)) 
    77                         throw new Kohana_Exception('payment.driver_not_supported', $this->config['driver']); 
     77                        throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this)); 
    7878 
    7979                // Get the driver specific settings 
     
    8585                // Validate the driver 
    8686                if ( ! ($this->driver instanceof Payment_Driver)) 
    87                         throw new Kohana_Exception('payment.driver_implements', $this->config['driver']); 
     87                        throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'Payment_Driver'); 
    8888        } 
    8989 
  • trunk/system/libraries/Session.php

    r2649 r2667  
    6262                                // Load the driver 
    6363                                if ( ! Kohana::auto_load($driver)) 
    64                                         throw new Kohana_Exception('session.driver_not_supported', self::$config['driver']); 
     64                                        throw new Kohana_Exception('core.driver_not_found', self::$config['driver'], get_class($this)); 
    6565 
    6666                                // Initialize the driver 
     
    6969                                // Validate the driver 
    7070                                if ( ! (self::$driver instanceof Session_Driver)) 
    71                                         throw new Kohana_Exception('session.driver_implements', self::$config['driver']); 
     71                                        throw new Kohana_Exception('core.driver_implements', self::$config['driver'], get_class($this), 'Session_Driver'); 
    7272 
    7373                                // Register non-native driver as the session handler