Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pluralize params | Mauro George | 2014-06-03 | 1 | -1/+1 |
| | |||||
* | Add default_i18n_subject to the guides | Mauro George | 2014-06-03 | 1 | -0/+18 |
| | | | | [ci skip] | ||||
* | Include label value in i18n attribute lookup | Joshua Cody | 2014-05-06 | 1 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | | Previously, only the object and method name from the label tag were used when looking up the translation for a label. If a value is given for the label, this ought to be additionally used. The following: # form.html.erb <%= form_for @post do |f| %> <%= f.label :type, value: "long" %> <% end %> # en.yml en: activerecord: attributes: post/long: "Long-form Post" Used to simply return "long", but now it will return "Long-form Post". | ||||
* | [skip ci] Reorder i18n guide | Kyle Heironimus | 2014-04-16 | 1 | -54/+54 |
| | | | | | | | | | | Currently, the section called "How to store your custom translations" has several subheadings that make no sense, such as "Translations for ActiveRecord models." These make more sense under the "Overview of the I18n API Features" section. I moved the "How to store..." section down to the more appropriate sub-headings "Using Different Backends" and "Using Different Exception Handlers" and removed the "Customize your i18n setup" header. | ||||
* | [ci skip] Avoid suggesting dangerous code in i18n guide | Mike MacDonald | 2014-04-15 | 1 | -2/+2 |
| | | | | | | | | Calling `to_sym` on user input opens apps up to Denial of Service attacks, via the symbol table being expanded to consume vast swathes of memory. It is a fairly common configuration to have DNS configured such that all subdomains route to your Rails app, in which case an attacker visits `www1.foo.com`, `www2.foo.com`, and so on until something gives. It is far less likely to have this problem with TLDs, so that change was only for consistency. | ||||
* | Update documentation to use Rails.application instead | Marcel Morgan | 2014-04-13 | 1 | -1/+1 |
| | | | | | | | References to ``AppName::Application` removed in favour of ``Rails.application`` as generated with a new rails 4.1 app. [ci skip] | ||||
* | Fix default_url_options example in i18n guide [ci skip] | Nikolay Shebanov | 2014-04-03 | 1 | -5/+4 |
| | |||||
* | Fix a grammatical error in the i18n guide [ci skip] | sukolsak | 2014-03-12 | 1 | -1/+1 |
| | |||||
* | Revert "Don't symbolize tainted data." [ci skip] | Xavier Noria | 2014-02-11 | 1 | -5/+1 |
| | | | | | | | | Reason: i18n whitelists now locales without passing through symbols, see https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L278. Therefore, this snippet is no longer a good practice. This reverts commit ec0664a6eb8906fcd31a53a1efad69bdc7fe6f5b. | ||||
* | Don't symbolize tainted data. | devlin zed | 2014-02-11 | 1 | -1/+5 |
| | | | | | | | `I18n.locale=` symbolizes its argument, so passing it `params[:locale]` allows one to DOS your application by visiting `...?locale=` URLS repeatedly, with unique values, until the never-GCed symbols monopolize the available memory. | ||||
* | Missing closing parenthesis. | edogawaconan | 2014-02-04 | 1 | -1/+1 |
| | |||||
* | Change all "can not"s to the correct "cannot". | T.J. Schuck | 2014-01-03 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-12-20 | 1 | -1/+1 |
|\ | |||||
| * | Revert "Fix on-site markdown rendering [ci skip]" | Vijay Dev | 2013-12-19 | 1 | -1/+1 |
| | | | | | | | | | | | | This reverts commit 427db6b9d2b35a72f3c017eb19a2e1e800b0a7a3. [ci skip] | ||||
| * | Revert "Underscore in markdown should be escaped with backslash [ci skip]" | Vijay Dev | 2013-12-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | This reverts commit b58f3a641795e1777aa3e12a853c34ff512acfb9. Reason: Discussion in https://github.com/rails/docrails/commit/b58f3a641795e1777aa3e12a853c34ff512acfb9 [ci skip] | ||||
| * | Fix on-site markdown rendering [ci skip] | Harshad Sabne | 2013-11-28 | 1 | -1/+1 |
| | | |||||
| * | Underscore in markdown should be escaped with backslash [ci skip] | Harshad Sabne | 2013-11-26 | 1 | -1/+1 |
| | | | | | | In the absence of proper escaping the first link was getting messed up and remaining part of the sentence (2nd link) was not displayed in the rendered markdown on the website though it was displaying correctly in the repository markdown file. | ||||
| * | Globalize has moved to a new repository | Harshad Sabne | 2013-11-25 | 1 | -1/+1 |
| | | | | | | From (svenfuchs/globalize3) to (globalize/globalize) | ||||
* | | Added `absence` parameter to pluralization table | Ivan | 2013-12-16 | 1 | -0/+1 |
|/ | | | Added `absence` parameter to table in section `5.1.2 Error Message Interpolation`. | ||||
* | Merge remote-tracking branch 'docrails/master' | Xavier Noria | 2013-11-24 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb | ||||
| * | Fix broken Wikipedia link. | Harshad Sabne | 2013-11-13 | 1 | -1/+1 |
| | | |||||
* | | Added a missing close parenthesis to i18n.md | Jacob Evan Shreve | 2013-11-21 | 1 | -1/+1 |
|/ | |||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2013-11-07 | 1 | -1/+7 |
|\ | |||||
| * | Fixes typo | Jay Hayes | 2013-10-20 | 1 | -1/+1 |
| | | |||||
| * | Update I18n guide to note the additional features of the `translate` view helper | Jay Hayes | 2013-10-19 | 1 | -1/+7 |
| | | |||||
* | | Clarify HTML Safe Translations [ci-skip] | Derek Prior | 2013-11-05 | 1 | -1/+1 |
|/ | | | | | | I think it's confusing to say "Use them in views without escaping." We use all keys in views without escaping - the escaping is done for us automatically _unless_ we call html_safe or the key ends in _html. | ||||
* | [Documentation] Add a missing validation to I18n docs | Grayson Wright | 2013-09-24 | 1 | -0/+1 |
| | | | | | The guide was missing a description of the error message interpolation for validates_numericality_of with the :only_integer option. | ||||
* | [ci skip] Fix links in section 5.3 of i18n.md | Juanito Fatas | 2013-09-10 | 1 | -5/+5 |
| | | | | Now all links point to the correct line number. | ||||
* | [ci skip] Add missing setting locale code snippet. | Juanito Fatas | 2013-09-10 | 1 | -0/+11 |
| | | | | | | | | This is for 3 Internationalizing your Application of i18n.md. Missing the code as mentioned in 2.3, setting locale. Without this, the example to add config/locales/pirate.yml will not work. | ||||
* | [ci skip] Change link name of Rails i18n wiki. | Juanito Fatas | 2013-09-09 | 1 | -1/+1 |
| | | | | Actually it's Ruby i18n link. | ||||
* | Use Ruby on Rails Coding Conventions for code examples in the guides | Paul Nikitochkin | 2013-09-06 | 1 | -4/+5 |
| | | | | | | | | * Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip] | ||||
* | cleans the guides sources from fancy non-ASCII stuff | Xavier Noria | 2013-08-23 | 1 | -10/+10 |
| | |||||
* | Add plural form example for AR I18n section [ci skip] | Sadjow Leão | 2013-08-13 | 1 | -0/+13 |
| | |||||
* | Updated the guide to say that the localisation file for validation messages ↵ | Iain Beeston | 2013-08-03 | 1 | -1/+1 |
| | | | | is in activemodel, not activerecord | ||||
* | Added missing closing bracket for markdown url in guides [ci skip] | Wojciech Wnętrzak | 2013-08-01 | 1 | -1/+1 |
| | |||||
* | Fixing the broken URL [skip ci] | Ankit Gupta | 2013-07-29 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2013-07-06 | 1 | -0/+5 |
|\ | |||||
| * | Complete a sentence in i18n guide's introduction | Robin Dupret | 2013-06-30 | 1 | -0/+5 |
| | | | | | | Add a list of what will be covered into this guide | ||||
* | | Specify request method in guides [ci skip] | Mihail Evsyukov | 2013-07-04 | 1 | -1/+1 |
| | | |||||
* | | Fixing links to accept_language plugin/middleware | Wouter van Lelyveld | 2013-06-27 | 1 | -1/+1 |
|/ | |||||
* | fix the path of action view from actionpack/lib/action_view => ↵ | Rajarshi Das | 2013-06-21 | 1 | -3/+3 |
| | | | | actionview/lib/action_view | ||||
* | Remove double spaces in code examples | Sunny Ripert | 2013-05-28 | 1 | -1/+1 |
| | |||||
* | Github -> GitHub [ci skip] | Prathamesh Sonpatki | 2013-05-05 | 1 | -3/+3 |
| | |||||
* | Added missing ')' on routing_filter link | hughkelsey | 2013-04-23 | 1 | -1/+1 |
| | |||||
* | describe Action Mailer I18n subject lookup | Yves Senn | 2013-04-04 | 1 | -0/+22 |
| | |||||
* | Revert "updating i18n guide with locale config location." | Carlos Antonio da Silva | 2013-01-22 | 1 | -1/+1 |
| | | | | This reverts commit 46902908910c041e268429d674bbe084399cc664. | ||||
* | prefer american spelling of 'behavior' | Gosha Arinich | 2013-01-07 | 1 | -2/+2 |
| | |||||
* | Globalize2 is only compatible with Rails 2 so link to Globalize3 instead | Henare Degan | 2012-12-09 | 1 | -1/+1 |
| | |||||
* | update guides to use _action callbacks [ci skip] | Francesco Rodriguez | 2012-12-07 | 1 | -4/+4 |
| | |||||
* | match text with translation file example | Chris Walquist | 2012-12-02 | 1 | -1/+1 |
| |