aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/i18n.md
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetic changes [ci skip]Yauheni Dakuka2017-11-301-1/+1
|
* Update mailing list URL in I18n guide [ci skip]Yoshiyuki Hirano2017-10-171-3/+3
|
* Update action_controller_overview.md [ci skip]Yauheni Dakuka2017-09-191-1/+1
|
* Use YAML syntax highlight for `config/locales/en.yml` [ci skip]Ryuta Kamizono2017-08-291-1/+1
|
* Update Rails I18n API guide [ci skip]Yoshiyuki Hirano2017-08-291-10/+10
|
* Use https instead of http in guide [ci skip]Yoshiyuki Hirano2017-08-231-2/+2
|
* Clarify i18n guide for how pluralization rules work by defaultSage Ross2017-07-071-2/+20
| | | | The guide misleadingly indicates that the I18n gem will apply the CLDR pluralization rules for each language. This is not the case; only the English algorithm, with support for :zero, :one, and :other, is available by default. Locale-specific pluralization rules require additional configuration and must be supplied by the application (or by another gem).
* Update i18n guide to cover :zero key support in pluralization [ci skip]Anne Johnson2017-02-261-2/+8
|
* Fix typo in I18n Guide [ci skip]Erol Fornoles2017-02-171-1/+1
|
* Added warning for reserved YAML keywords.Rich Seviora2017-01-301-0/+29
| | | | | | Update i18n.md Addressed Feedback
* update links of pluralization in i18n guideHisashi Kamezawa2017-01-181-1/+1
|
* Add instructions for available_locales [skip ci]Jari Jokinen2017-01-041-5/+10
|
* Add missing `+` around a some literals.bogdanvlviv2016-10-271-1/+1
| | | | | | Mainly around `nil` [ci skip]
* [ci skip] Broken links in documentation fixRasmus Kjellberg2016-08-301-1/+1
|
* i18n documentation for required belongs_to messageIan C. Anderson2016-08-171-0/+1
| | | | | | | | | | | | | | | | | When you don't explicitly provide `optional: true` to a `belongs_to` definition, rails adds a validation to ensure presence of the `belongs_to` validation. However, when the validation is added, it is added with a message key of `:required`, which was not documented in the "Translations for Active Record Models" section of the i18n guides. Here are the lines that add the `:required` message: https://github.com/rails/rails/blob/c3e3577f9d5058382504773bf0d32afa15cb131e/activerecord/lib/active_record/associations/builder/belongs_to.rb#L136-L138 This commit adds the "non-optional association" validation to the table, so rails users know how to override the message for this validation. The default message is "must exist".
* List names of error interpolation variables.Malcolm Locke2016-08-051-1/+1
|
* Fix broken linkKazuhiro NISHIYAMA2016-07-151-1/+1
|
* - :scissors: space in code to match previous defaults.Vipul A M2016-05-231-3/+1
| | | | - Grammar edits.
* Update i18n guide about how to change locale and translations paths [ci skip]Prathamesh Sonpatki2016-05-221-4/+5
| | | | | | - config/application.rb no longer has comments about how to specify load paths or change default locale after https://github.com/rails/rails/commit/28dcadc0140dfdeb.
* remove obsolete i18n links from guides [ci skip]Greg Molnar2016-03-101-5/+3
|
* Fix small typo in Rails guides [ci skip]Mehmet Emin İNAÇ2016-02-151-1/+1
|
* corrects a typoDavid English2015-12-211-1/+1
|
* ApplicationRecord documentation passGenadi Samokovarov2015-12-171-1/+1
| | | | | | | This is a pass over the documentation which fills the missing gaps of `ApplicationRecord`. [ci skip]
* Clarify i18n active[model/record] key differencesJames Coleman2015-11-081-0/+2
| | | | I spent a decent amount of time the other day trying to figure out why my active model including class wasn't generating the properly localized validation messages, and a note like this would have saved me a lot of time.
* [ci skip] Change 'an URL' to 'a URL' as URL doesn't have a vowel soundtanmay30112015-10-061-1/+1
|
* Update i18n.md [ci skip]Thiago Augusto2015-09-221-2/+2
|
* Update documentation to remove 'desirable' suggestion for what is not a ↵Avner Cohen2015-09-161-1/+1
| | | | clear cut approach
* [ci skip] Make clear what `this method` isyui-knk2015-06-241-1/+1
| | | | | | | | | | In this sentence, there are three candidates of `this method` * default_url_options * url_for * helper method(s) so make it clear.
* i18n guide: warn about default_url_options caching and locale selectors [ci ↵Xavier Noria2015-06-151-4/+6
| | | | skip]
* A few documentation tweaks [ci skip]Robin Dupret2015-06-071-1/+4
| | | | [Robin Dupret & Shunsuke Aida]
* Enhance the "Passing Variables to Translations" partEvan Prothro2015-05-041-19/+48
| | | | | | | | | Add more information about passing variables to translation definitions and also merge this part with the "Interpolation" one as the latter didn't bring any new information. Moreover, each one was referring to the other for further information. [ci skip]
* Updates various prose to the i18n guideEvan Prothro2015-05-041-49/+57
| | | | [ci skip]
* Fix typos and improve the documentationJon Atack2015-04-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a squash of the following commits, from first to last: - Fix minor, random things I’ve come across lately that individually did not seem worth making a PR for, so I saved them for one commit. One common error is using “it’s” (which is an abbreviation of “it is”) when the possessive “its” should be used for indicating possession. - Changes include the name of a test, so remove the `[skip ci]` (thanks @senny). - Line wrap the changes at 80 chars and add one more doc fix. - Add a missing line wrap in the Contributing to Ruby on Rails Guide. - Line wrap the `TIP` section in the Contributing to Ruby on Rails Guide as well. Rendering the guide locally with `bundle exec rake guides:generate` did not show any change in on-screen formatting after adding the line wrap. The HTML generated is (extra line added to illustrate where the line wrap takes place): <div class="info"><p>Please squash your commits into a single commit when appropriate. This simplifies future cherry picks and also keeps the git log clean.</p></div> - Squash commits.
* change REQUEST_URI to PATH_INFOMehmet Emin İNAÇ2015-04-041-1/+1
| | | | | request.env['REQUEST_URI'] returns full URI of the resource request.env['PATH_INFO'] returns only path of the resource
* Added missing closing brace in sample code for safe HTML translationsChristian Ress2015-03-131-1/+1
| | | | Closes #19321. [ci skip]
* Remove reference to workingwithrails.com since it is being retiredRichard Venneman2015-02-271-5/+2
|
* Fix code sample for custom exception handler [ci skip]Bart2015-02-191-2/+2
|
* Tiny documentation edits [ci skip]Robin Dupret2015-02-151-2/+3
|
* Document lazy lookup behavior for controllersCarlos Ramirez III2015-02-031-0/+19
| | | | | | | | Pull request #7082 added lazy lookup to controllers using the translate method, but the documentation still stated that it was available for views only. [ci skip]
* Add missing options to Error Message Interpolation guide [CI skip]Wojciech Wnętrzak2015-01-211-1/+2
|
* Underscore typo [ci skip]Jared Fine2015-01-161-1/+1
|
* - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | - Changed `IN` to `ON` in all note sentences in guides.
* warn about reading guides in GitHubXavier Noria2014-12-231-0/+2
| | | | References #18148.
* [ci skip] fix class nameyui-knk2014-11-291-1/+1
|
* [ci skip] removing ruby-i18n.org/wiki link that is not available and using ↵Gaurav Sharma2014-10-091-9/+6
| | | | “gems” instead of plugins
* i18n guide: clarify interpolation rules in _html keys [ci skip]Xavier Noria2014-09-101-0/+16
|
* Merge pull request #16097 from nishantmodak/correct_mdZachary Scott2014-07-081-3/+3
|\ | | | | correct markdown usage [ci skip]
| * correct markdown usage [ci skip]Nishant Modak2014-07-091-3/+3
| |
* | Update Rails versions [ci skip]Robin Dupret2014-07-071-2/+2
|/ | | | | | | | | | | | | As discussed in #15304, we need to automate this process but for now, having out-of-date versions is not ideal. Since master targets 4.2.0, let's also update references to the last 4.1 version to 4.2.0. Finally, let's remove mentions to versions when this is not needed. The guides cover the features of the current version anyway. [Juanito Fatas + Robin Dupret]
* Pluralize paramsMauro George2014-06-031-1/+1
|