Commit Graph

65 Commits

Author SHA1 Message Date
Marcel Morgan
2ddbe87e7a Update documentation to use Rails.application instead
References to ``AppName::Application` removed in favour of ``Rails.application``
as generated with a new rails 4.1 app.

[ci skip]
2014-04-13 05:52:04 -05:00
Nikolay Shebanov
3f70c69437 Fix default_url_options example in i18n guide [ci skip] 2014-04-03 05:46:44 +04:00
sukolsak
69ba49dd85 Fix a grammatical error in the i18n guide [ci skip] 2014-03-12 15:03:04 -07:00
Xavier Noria
e00ab2dab9 Revert "Don't symbolize tainted data." [ci skip]
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.
2014-02-11 17:18:19 +01:00
devlin zed
ec0664a6eb Don't symbolize tainted data.
`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.
2014-02-11 10:44:45 -05:00
edogawaconan
b10f45ce75 Missing closing parenthesis. 2014-02-04 11:46:59 +09:00
T.J. Schuck
72bb3fc297 Change all "can not"s to the correct "cannot". 2014-01-03 17:02:31 -05:00
Vijay Dev
a3b1105ada Merge branch 'master' of github.com:lifo/docrails 2013-12-20 00:10:30 +05:30
Vijay Dev
1406630b21 Revert "Fix on-site markdown rendering [ci skip]"
This reverts commit 427db6b9d2b35a72f3c017eb19a2e1e800b0a7a3.

[ci skip]
2013-12-19 22:50:25 +05:30
Vijay Dev
f858691744 Revert "Underscore in markdown should be escaped with backslash [ci skip]"
This reverts commit b58f3a641795e1777aa3e12a853c34ff512acfb9.

Reason: Discussion in b58f3a6417

[ci skip]
2013-12-19 22:50:17 +05:30
Ivan
e838fa068f Added absence parameter to pluralization table
Added `absence` parameter to table in section `5.1.2 Error Message Interpolation`.
2013-12-16 10:13:35 +03:00
Harshad Sabne
427db6b9d2 Fix on-site markdown rendering [ci skip] 2013-11-28 00:03:51 +05:30
Harshad Sabne
b58f3a6417 Underscore in markdown should be escaped with backslash [ci skip]
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.
2013-11-26 23:25:34 +05:30
Harshad Sabne
a4bba9ce8d Globalize has moved to a new repository
From (svenfuchs/globalize3) to (globalize/globalize)
2013-11-25 11:25:13 +05:30
Xavier Noria
17c29a0df0 Merge remote-tracking branch 'docrails/master'
Conflicts:
	activesupport/lib/active_support/core_ext/hash/deep_merge.rb
	activesupport/lib/active_support/core_ext/hash/keys.rb
2013-11-24 20:00:24 +01:00
Jacob Evan Shreve
c796cc2ba7 Added a missing close parenthesis to i18n.md 2013-11-21 22:18:17 -05:00
Harshad Sabne
deeeaef6d2 Fix broken Wikipedia link. 2013-11-13 20:48:40 +05:30
Vijay Dev
216ec8d559 Merge branch 'master' of github.com:rails/docrails 2013-11-07 23:32:47 +05:30
Derek Prior
0e41b0a87a Clarify HTML Safe Translations [ci-skip]
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.
2013-11-05 11:16:04 -05:00
Jay Hayes
614b203e1d Fixes typo 2013-10-20 19:51:19 -05:00
Jay Hayes
da1d2fb483 Update I18n guide to note the additional features of the translate view helper 2013-10-19 10:33:47 -05:00
Grayson Wright
52f3717569 [Documentation] Add a missing validation to I18n docs
The guide was missing a description of the error message
interpolation for validates_numericality_of with
the :only_integer option.
2013-09-24 17:07:57 -04:00
Juanito Fatas
1355956d6f [ci skip] Fix links in section 5.3 of i18n.md
Now all links point to the correct line number.
2013-09-10 01:48:51 +08:00
Juanito Fatas
451f433205 [ci skip] Add missing setting locale code snippet.
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.
2013-09-10 01:48:44 +08:00
Juanito Fatas
0096b1535d [ci skip] Change link name of Rails i18n wiki.
Actually it's Ruby i18n link.
2013-09-09 14:12:02 +08:00
Paul Nikitochkin
2c8bc2cdcd Use Ruby on Rails Coding Conventions for code examples in the guides
* 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]
2013-09-06 21:42:29 +03:00
Xavier Noria
b77f25cb84 cleans the guides sources from fancy non-ASCII stuff 2013-08-23 17:59:11 +02:00
Sadjow Leão
23c5d6d9ad Add plural form example for AR I18n section [ci skip] 2013-08-13 00:06:03 -03:00
Iain Beeston
78f953dff8 Updated the guide to say that the localisation file for validation messages is in activemodel, not activerecord 2013-08-03 21:39:46 +10:00
Wojciech Wnętrzak
ce757c4c7e Added missing closing bracket for markdown url in guides [ci skip] 2013-08-01 12:21:21 +02:00
Ankit Gupta
4509f9eaed Fixing the broken URL [skip ci] 2013-07-29 14:24:55 +01:00
Vijay Dev
69e7e6ba89 Merge branch 'master' of github.com:rails/docrails 2013-07-06 00:08:40 +05:30
Mihail Evsyukov
867138aa99 Specify request method in guides [ci skip] 2013-07-04 23:45:58 +03:00
Robin Dupret
82551712b3 Complete a sentence in i18n guide's introduction
Add a list of what will be covered into this guide
2013-06-30 12:34:46 +02:00
Wouter van Lelyveld
8c0fc98214 Fixing links to accept_language plugin/middleware 2013-06-27 09:18:52 +02:00
Rajarshi Das
931df6da30 fix the path of action view from actionpack/lib/action_view => actionview/lib/action_view 2013-06-21 16:56:43 +05:30
Sunny Ripert
70b302b189 Remove double spaces in code examples 2013-05-28 14:38:02 +02:00
Prathamesh Sonpatki
730dd1a96b Github -> GitHub [ci skip] 2013-05-05 17:56:24 +05:30
hughkelsey
3c530dbc77 Added missing ')' on routing_filter link 2013-04-23 12:29:11 -07:00
Yves Senn
c918298c8e describe Action Mailer I18n subject lookup 2013-04-04 13:22:12 +02:00
Carlos Antonio da Silva
2bca2f6418 Revert "updating i18n guide with locale config location."
This reverts commit 46902908910c041e268429d674bbe084399cc664.
2013-01-22 09:28:07 -02:00
Gosha Arinich
0acf92184d prefer american spelling of 'behavior' 2013-01-07 11:47:27 +03:00
Henare Degan
0939a812a0 Globalize2 is only compatible with Rails 2 so link to Globalize3 instead 2012-12-09 23:17:33 +11:00
Francesco Rodriguez
f19e41fb16 update guides to use _action callbacks [ci skip] 2012-12-07 23:43:46 -05:00
Chris Walquist
c41576ea45 match text with translation file example 2012-12-02 14:37:18 -06:00
Steve Klabnik
d16a1b9e8b Normalize on 'After reading this guide, you will know:'
We have three or four different introduction sentences to the guides.
After this commit, we use the same one everywhere.
2012-11-29 14:25:02 -08:00
Steve Klabnik
6dcae8ae9c Add periods to the bullet points in guides.
Talked with @fxn about this. Bullet points should have periods at the ends.
2012-11-29 05:14:08 -08:00
burningTyger
8dabfbebdb use em-dashes instead of two minuses in guides 2012-11-10 23:00:00 +01:00
Francesco Rodriguez
2ef4d5ed5c fix output messages - docs [ci skip] 2012-10-22 14:27:55 -05:00
Rafael Mendonça França
9eeb00976d Revert "divided into folder with the language"
This reverts commit f5b9ed4fbc3215a5fce48985ea372ad3f1182252.

REASON: Translation work can not be done in the docrails repository
2012-10-17 10:15:55 -03:00