diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-11-06 13:52:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 13:52:10 +0000 |
commit | 7d1d6c4c0bde7364aeb66c22514a78bd9f8f1ecd (patch) | |
tree | 278623497e4aee3e3dded130257df2eb23568c0b /activesupport | |
parent | 12aa9e5b2d38224b10b70b7970ec20f47edf7ad2 (diff) | |
parent | afc188fd7600b62bb9b43cd41eb9b9ea4d77a2e2 (diff) | |
download | rails-7d1d6c4c0bde7364aeb66c22514a78bd9f8f1ecd.tar.gz rails-7d1d6c4c0bde7364aeb66c22514a78bd9f8f1ecd.tar.bz2 rails-7d1d6c4c0bde7364aeb66c22514a78bd9f8f1ecd.zip |
Merge pull request #31066 from Leyka/patch-1
Fix french spelling mistake
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/inflector/transliterate.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/inflector/transliterate.rb b/activesupport/lib/active_support/inflector/transliterate.rb index e689f0718e..9fb3a2e0af 100644 --- a/activesupport/lib/active_support/inflector/transliterate.rb +++ b/activesupport/lib/active_support/inflector/transliterate.rb @@ -71,23 +71,23 @@ module ActiveSupport # a 'pretty' URL. # # parameterize("Donald E. Knuth") # => "donald-e-knuth" - # parameterize("^trés|Jolie-- ") # => "tres-jolie" + # parameterize("^très|Jolie-- ") # => "tres-jolie" # # To use a custom separator, override the `separator` argument. # # parameterize("Donald E. Knuth", separator: '_') # => "donald_e_knuth" - # parameterize("^trés|Jolie__ ", separator: '_') # => "tres_jolie" + # parameterize("^très|Jolie__ ", separator: '_') # => "tres_jolie" # # To preserve the case of the characters in a string, use the `preserve_case` argument. # # parameterize("Donald E. Knuth", preserve_case: true) # => "Donald-E-Knuth" - # parameterize("^trés|Jolie-- ", preserve_case: true) # => "tres-Jolie" + # parameterize("^très|Jolie-- ", preserve_case: true) # => "tres-Jolie" # # It preserves dashes and underscores unless they are used as separators: # - # parameterize("^trés|Jolie__ ") # => "tres-jolie__" - # parameterize("^trés|Jolie-- ", separator: "_") # => "tres_jolie--" - # parameterize("^trés_Jolie-- ", separator: ".") # => "tres_jolie--" + # parameterize("^très|Jolie__ ") # => "tres-jolie__" + # parameterize("^très|Jolie-- ", separator: "_") # => "tres_jolie--" + # parameterize("^très_Jolie-- ", separator: ".") # => "tres_jolie--" # def parameterize(string, separator: "-", preserve_case: false) # Replace accented chars with their ASCII equivalents. |