aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/i18n.md
Commit message (Collapse)AuthorAgeFilesLines
* Remove dynamic_form gem references in guidesCarles Jove i Buxeda2019-04-301-21/+0
| | | | This gem has not been updated since April 2014 and 2 of the 4 methods it introduces have been broken since Rails 4
* Use official database name [ci skip]Ryuta Kamizono2019-04-031-1/+1
| | | | | | | | * s/Postgres/PostgreSQL/ * s/MYSQL/MySQL/, s/Mysql/MySQL/ * s/Sqlite/SQLite/ Replaced all newly added them after 6089b31.
* Update links and code examples in the guides to use HTTPS where the host ↵Nathaniel Suchy2019-03-061-3/+3
| | | | supports it.
* Add reasoning for `I18n.with_locale` and explanation that the problem isDusan Orlovic2019-01-101-2/+4
| | | | | | about leak into subsequent requests. [ci skip]
* Fix example of I18n setting in the guide [ci skip]bogdanvlviv2019-01-041-1/+1
| | | | Since #34356 logging `locale` value is more correct
* Make i18n locale setting docs use around_actionGannon McGibbon2018-10-311-15/+23
| | | | | | | | | Changes `I18n.locale` assignment in docs to use `I18n.with_locale` in `around_action` to ensure locale resetting after action processing. [ci skip] [Gannon McGibbon + Leonardo Tegon]
* Document `deep_interpolation` parameter for bulk lookupsOliver Günther2018-10-251-0/+20
| | | | | | | | | | | | | | | | | Bulk lookups are sort of an edge case, I have not heard of them until a colleague of mine decided to dynamically iterate over a growing set of translations and receiving them in bulk as a hash with `I18n.t 'welcome'` as in the example above. When passing an interpolation to these bulk lookups, they will only be performed when also passing `deep_interpolation: true`. **Without passing `deep_interpolation` flag:** ```ruby I18n.t 'welcome', app_name: 'book store' # => {:title=>"Welcome!", :content=>"Welcome to the %{app_name}"} **With passing `deep_interpolation`:** I18n.t 'welcome', deep_interpolation: true, app_name: 'book store' # => {:title=>"Welcome!", :content=>"Welcome to the book store"} ``` I found this digging in the I18n lookup backend, the flag is listed on [I18n's Rubydoc](https://www.rubydoc.info/github/svenfuchs/i18n/master/I18n) but not otherwise listed. Since bulk lookups are mentioned here, I suggest to add a note with this flag along with it.
* Fix typo of duplicated `the` [ci skip]ohbarye2018-10-241-1/+1
|
* [ci skip] Clarify load_paths behaviourGannon McGibbon2018-10-221-0/+2
| | | | | | | Clarify `I18n.load_paths` vs `Rails.application.config.i18n.load_paths` behaviour. [Gannon McGibbon + Alberto Almagro Sotelo]
* [ci skip] Remove explicit to_s for consistency with other exampleTrevor Wistaff2018-10-161-1/+1
|
* [ci skip] corrects more grammar awkwardness, replacing denylist with ↵Mina Slater2018-08-221-2/+2
| | | | restricted list and consistently use permitted
* [ci skip] fixes a few more grammar issues, changing a to an before the word ↵Mina Slater2018-08-221-1/+1
| | | | allowlist
* [ci skip] change all instances of blacklist and whitelist to denylist and ↵Mina Slater2018-08-211-3/+3
| | | | allowlist
* Rails guides are now served over httpsPaul McMahon2018-07-241-1/+1
| | | | | http links will be redirected to the https version, but still better to just directly link to the https version.
* Added a lot of Oxford commasAnthony Crumley2018-05-101-4/+4
| | | | | | | [ci skip] A regular expression was used to find a lot of missing Oxford commas and add them. The regular expression was as follows. ", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
* Use string-based fields. [ci skip]Cassidy Kobewka2018-04-161-4/+4
|
* Inclusive Language in Documentation Examples [ci skip]Cassidy Kobewka2018-04-151-9/+9
|
* Update some i18n references in guides (#32182)Chris Salzberg2018-03-091-8/+17
| | | | | | | * Remove reference to Globalize::Backend::Static as this class no longer exists. * Remove reference to google group * Remove confusing reference to Globalize3 * Add section on translating stored content
* 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]