Skip to content

tandibar/translation_default_scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TranslationDefaultScope
=======================

You can specify a default_scope in any view which is always merged into translate and t (of I18n).


Example
=======

	self.default_scope = [:always, :prepend, :this, :scope]
	...
	t(:key, :scope => [:to, :be, :appended])
	# calls t(:key, :scope => [:always, :prepend, :this, :scope, :to, :be, :appended])
	
Copyright (c) 2009 Caroo GmbH, released under the MIT license

About

Add default_scope to translation method in views

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published