original_string: public static function i18n($pattern, array $options = array())
  		{
  
  			// Trim the pattern
  			$pattern = rtrim($pattern, '/ ');
  
  			// Do the default options
  			$options = array_merge(array(
  				"controller" => "\\ChickenWire\\I18n\\I18nController"
  			), $options);
  
  			// Create basic route for all
  			Route::match($pattern, array_merge(array(
  				"action" => "all"
  			), $options));
  
  			// Get current language
  			Route::match($pattern . '/current', array_merge(array(
  				"action" => "current"
  			), $options));
  
  			// All sub requests
  			Route::match($pattern . '/current/{*path}', array_merge(array(
  				"action" => "current"
  			), $options));
  
  			// All sub requests with a language
  			Route::match($pattern . '/{*path}', array_merge(array(
  				"action" => "all"
  			), $options));
  
  		}
code: public static function i18n($pattern, array $options = array())
  		{
  
  			// Trim the pattern
  			$pattern = rtrim($pattern, '/ ');
  
  			// Do the default options
  			$options = array_merge(array(
  				"controller" => "\\ChickenWire\\I18n\\I18nController"
  			), $options);
  
  			// Create basic route for all
  			Route::match($pattern, array_merge(array(
  				"action" => "all"
  			), $options));
  
  			// Get current language
  			Route::match($pattern . '/current', array_merge(array(
  				"action" => "current"
  			), $options));
  
  			// All sub requests
  			Route::match($pattern . '/current/{*path}', array_merge(array(
  				"action" => "current"
  			), $options));
  
  			// All sub requests with a language
  			Route::match($pattern . '/{*path}', array_merge(array(
  				"action" => "all"
  			), $options));
  
  		}
code_tokens: public static function i18n ( $ pattern , array $ options = array ( ) ) { // Trim the pattern $ pattern = rtrim ( $ pattern , '/ ' ) ; // Do the default options $ options = array_merge ( array ( "controller" => "\\ChickenWire\\I18n\\I18nController" ) , $ options ) ; // Create basic route for all Route :: match ( $ pattern , array_merge ( array ( "action" => "all" ) , $ options ) ) ; // Get current language Route :: match ( $ pattern . '/current' , array_merge ( array ( "action" => "current" ) , $ options ) ) ; // All sub requests Route :: match ( $ pattern . '/current/{*path}' , array_merge ( array ( "action" => "current" ) , $ options ) ) ; // All sub requests with a language Route :: match ( $ pattern . '/{*path}' , array_merge ( array ( "action" => "all" ) , $ options ) ) ; }
docstring: Create a pattern for client-side I18n requests
  @param  string  The base pattern to link to the I18n controller
  @param  array   Additional options
  @return void
docstring_tokens: Create a pattern for client - side I18n requests