lib/utopia/localization.rb
# A wrapper to provide easy access to locale related data in the request.
A wrapper to provide easy access to locale related data in the request.
A wrapper to provide easy access to locale related data in the request .
def request_preferred_locale(env)
			path = Path[env[Rack::PATH_INFO]]
			if request_locale = @all_locales.patterns[path.first]
				path.delete_at(0)
				yield request_locale, path
			end
		end
def request_preferred_locale ( env ) path = Path [ env [ Rack :: PATH_INFO ] ] if request_locale = @all_locales . patterns [ path . first ] path . delete_at ( 0 ) yield request_locale , path end end
A wrapper to provide easy access to locale related data in the request.
A wrapper to provide easy access to locale related data in the request .
# Remove the localization prefix:
env