- 05 4月, 2015 1 次提交
-
-
由 Adam Prescott 提交于
4.2.1 introduced a change to the way `translate`/`t` works with an option of `default: [[]]`. In 4.2.0, this would give a default value of `[]`, but in 4.2.1, it leads to a missing translation. `default: [[]]` is again allowed for cases where a default of `[]` is needed. This addresses GitHub issue 19640.
-
- 21 3月, 2015 1 次提交
-
-
由 Rafael Mendonça França 提交于
Strip nils out of default translations. Fixes #19419
-
- 27 2月, 2015 1 次提交
-
-
由 Ulisses Almeida 提交于
The previous version of rails(4.2.0) you can pass objects to the default option of translation helper. For example: ```ruby t('foo', default: 1) ``` But on rails 4.2.1 version this kind of use stopped to work, because started only to accept String types. Now with this fix we can use orther value types on this helper again.
-
- 03 1月, 2015 1 次提交
-
-
由 Justin Coyne 提交于
Previously default translation keys that didn't end in `_html`, but came after a missing key that ended in `_html` were being returned as html_safe. Now they are not. Fixes #18257
-
- 19 11月, 2014 1 次提交
-
-
由 Christopher Dell 提交于
Previously, when the `:raise` options was set to `false`, it would get overwritten to `true`, preventing custom exception handlers to be used.
-
- 06 9月, 2014 1 次提交
-
-
由 Rajarshi Das 提交于
not required include ActionView::Helpers::TagHelper in test as well
-
- 14 8月, 2014 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 13 5月, 2014 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Josep Jaume Rey 提交于
`options[:default]` and `options[:raise]` can be mistakenly added to the `options` hash. This can be a problem if you're reusing the same object.
-
- 27 1月, 2014 1 次提交
-
-
由 Kassio Borges 提交于
Add a config to setup whether raise exception for missing translation or not.
-
- 05 12月, 2013 1 次提交
-
-
由 Shota Fukumori (sora_h) 提交于
Before ec16ba75, ActionView::Helpers::TranslationHelper#translate has raised errors with specifying options[:raise] to true. This should work by this fix: begin t(:"translations.missing", raise: true) rescue I18n::MissingTranslationData p :hello! end
-
- 03 12月, 2013 1 次提交
-
-
由 Michael Koziarski 提交于
i18n doesn't depend on active support which means it can't use our html_safe code to do its escaping when generating the spans. Rather than try to sanitize the output from i18n, just revert to our old behaviour of rescuing the error and constructing the tag ourselves. Fixes: CVE-2013-4491
-
- 20 6月, 2013 1 次提交
-
-
由 Piotr Sarnacki 提交于
-
- 29 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 23 5月, 2012 1 次提交
-
-
由 Philip Arndt 提交于
* Added tests for 'else' case in ActionView::Helpers::TranslationHelper#wrap_translate_defaults * Also updated the testing syntax of translation.html_safe? asserts to provide better output upon failure.
-
- 05 5月, 2012 1 次提交
-
-
- 30 4月, 2012 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 19 11月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 18 11月, 2011 3 次提交
-
-
由 lest 提交于
-
由 Xavier Noria 提交于
Reason: After another round of discussion, it has been decided to let interpolation deal with unsafe strings as it should do. This reverts commit d57d8098.
-
由 Xavier Noria 提交于
-
- 23 7月, 2011 1 次提交
-
-
由 gnagno 提交于
-
- 15 6月, 2011 2 次提交
-
-
由 Damien Mathieu 提交于
Signed-off-by: NAndrew White <andyw@pixeltrix.co.uk>
-
由 Andrew White 提交于
-
- 11 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 01 5月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 26 4月, 2011 1 次提交
-
-
由 Sven Fuchs 提交于
bump the i18n gem to 0.6.0beta1 and update docs for the i18n exception handler [#6739 state:committed] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 05 3月, 2011 1 次提交
-
-
由 R.T. Lechow 提交于
-
- 04 3月, 2011 1 次提交
-
-
由 R.T. Lechow 提交于
-
- 05 12月, 2010 3 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Sven Fuchs 提交于
Don't catch exceptions here. Instead only declare that we want exceptions to be rescued as :html, but also let users configure reactions to exceptions in I18n. Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 10 10月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 17 6月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 11 6月, 2010 1 次提交
-
-
由 Evgeniy Dolzhenko 提交于
-
- 25 5月, 2010 3 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
Revert "translation method for arrays on TranslationHelper module returns an array where values for keys of the form (.|_)html keys are html_safe" This reverts commit 05c95b5c. Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-