Is it possible to switch off I18n/Globalize3 fallbacks per Rails model basis? I.e. some models use fallback, some don't.
Switch off I18n/Globalize3 fallbacks per Rails model basis
305 Views Asked by user789909 At
1
There are 1 best solutions below
Related Questions in FALLBACK
- PHP include/require: Prevent fallback in path resolution
- Hystrix: Doing network call in getFallBack()
- PHPExcel: Setting font fallback?
- CSS calc not working in Safari and fallback
- Page Load Timeout Length with Cache Manifest Fallback
- Symfony2 twig mobile template fallback
- jQuery CDN timeout fallback
- IE 7 fallback in CSS
- Problems with SVG in Internet Explorer
- Wordpress the_content() filter check if image exists
- GDI+ - Why the MeasureString function fails with a Courier font?
- Dynamic html5 audio flash player
- Visual Studio Fallback error - Programming C++
- How to set more than one fallback endpoints in WCF
- MySQL: select default row (not default values) if other row not available
Related Questions in GLOBALIZE3
- form_for mixing id and locale parameters
- Globalize3 and creating object in all languages
- Rails dynamic field additing (multilanguage)
- Are duplicate translations necessary for same strings in Globalize3?
- Ruby on Rails NoMethodError "undefined method `translates'"
- Annotating Rails models that have Globalize3 translation tables
- Couldn't find Category without an ID
- Can you implement custom fallbacks for Globalize3?
- Globalize3 - Error on migration when trying to add translations to an existing model
- Rails: Globalize3 and batch_translations
- Active admin input field with locale
- Globilize updates all translations, except the 'title'
- nil class when changing the language from :de to :en but not the other way round
- I18n with friendly-id and globalize3 - avoid duplicate content (seo)
- Trouble upgrading Ruby on Rails from version 3.2.13 to 4.0.0
Related Questions in RAILS-I18N
- Access YAML list in Rails translation
- I18n month translation
- Default I18n scope in controller with Grape
- adding path_prefix in root_url
- Rails I18n Customize Interpolation symbols
- Ruby on Rails, how to use i18n look up on nested polymorphic?
- Day name translation (I18n) doesn't seem to work
- How to remove or edit the pluralization for comments and likes in rails
- split I18n into sperate files
- Rails I18n translation missing despite being defined in en.yml
- I18n adding "-US" to the en locale
- returning specific values extracted from an hstore (Postgres + hstore_translate gem)
- Rails i18n nested translations with ActiveRecord backend
- Rails Internacionalization datagrid
- Rails custom validation error messages on attributes of another model
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, it is possible by overriding the
globalize_fallbacksmethod in your model. Take for example a post model with translated title and content:You simply specify that the requested locale can only fallback to itself, no matter what is defined in your global configuration.