Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
do you consider return default key in I18N
  • __(comm.you) if not language file, it is can return the key you. not it is return nothing.
    it is bad for pages.
  • It should return the key. If it doesn't, and you're using a recent version, report it as a bug on https://github.com/fuel/core/issues so it can be fixed.
  • i use 1.2rc
  • i use
    <?php
    class Lang extends Fuel\Core\Lang {
     
     public static function get($line, array $params = array(), $default = null)
     { 
      return \Str::tr(\Fuel::value(\Arr::get(static::$lines, $line, $default)), $params)?:$line; 
      
     }
    }
    
    
    
    in APPPATH.'classes/lang.php'
    Autoloader::add_classes(array(
     // Add classes you want to override here
     // Example: 'View' => APPPATH.'classes/view.php',
     'Lang' => APPPATH.'classes/lang.php',
    ));
    
    
    
    to solve this .
    thank you .
    fuelphp is nice.
  • If you encounter a bug or issue, don't work around it, report it! Other people might be interested in a bug fixed too!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion