Jeremy Kemper
bb3dd6ad2e
Ruby 1.9 compat: update bundled i18n lib
2008-08-23 21:51:06 -07:00
Jeremy Kemper
92a7239a3d
Ruby 1.9: silence some warnings for block args shadowing local vars
2008-08-23 16:03:00 -07:00
Sven Fuchs
d6989aa0e1
I18n: use :other instead of :many as default key for pluralization to better conform w/ cldr pluralization rules
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-08-23 21:23:00 +02:00
Sven Fuchs
a2d67403ac
remove warning in i18n gem
2008-08-20 17:52:54 +02:00
Sven Fuchs
c379582064
switch to class and instance instead of a module for the simple backend
2008-08-19 14:25:51 +02:00
Sven Fuchs
906e79396b
fix bug in I18n::Backend::Simple (A default array of non-existant keys returns the default array)
2008-08-13 13:43:02 +02:00
Sven Fuchs
78677cf6af
update activesupport/vendor i18n gem
2008-08-13 11:42:02 +02:00
Sven Fuchs
572f73fae6
update i18n gem and clean up dir structure within i18n-0.0.1
2008-08-10 21:44:35 +02:00
Joshua Peek
8c2e839e5a
Fix some warnings in i18n lib
2008-07-19 11:04:23 -05:00
Jeremy Kemper
636e6b7138
Merge branch 'master' into i18n-merge
...
Conflicts:
actionpack/lib/action_view/helpers/form_options_helper.rb
activerecord/lib/active_record/validations.rb
2008-07-17 11:52:56 -07:00
Pratik Naik
0432d15164
Merge with docrails.
2008-07-16 13:01:23 +01:00
Sven Fuchs
fbe1823117
add i18n lib files
2008-07-16 04:16:08 +02:00
Sven Fuchs
731fca8cf6
remove i18n lib subproject
2008-07-16 04:15:31 +02:00
Sven Fuchs
84816ae981
align with changes in i18n
2008-07-06 21:20:02 +02:00
Sven Fuchs
8f74ba96c4
remove core extensions in favor of I18n#translate and I18n#localize
2008-07-02 19:21:07 +02:00
Sven Fuchs
8bfdabbd8b
incorporate #translate usage with several default keys
...
(use first default key that resolves to a translation). this might, depending
on the backend implementation save some expensive lookups (like db lookups)
2008-06-21 17:50:37 +02:00
Sven Fuchs
c1e2506494
Changed process of storing translations from the
...
client libraries to the backend: clients now can pass a block to
backend#populate which can contain code to load and register translations.
This makes sense for backends that persist their translations (e.g. to db)
so the repeated loading and passing of translations throughout the server
startup would be wasted resources.
2008-06-21 11:27:19 +02:00
Sven Fuchs
585c8c17c3
rename Backend::Simple#add_translations to set_translations
...
because it overwrites existing translations
2008-06-20 09:13:20 +02:00
Sven Fuchs
45d41f0dad
integrating I18n into Rails
2008-06-19 16:25:27 +02:00
Joshua Peek
b415538b5d
Updated bundled TZInfo gem to version 0.3.9 for Ruby 1.9 compat
2008-06-14 15:18:55 -05:00
Nate Wiger
a34cc42a2c
- Updated tzinfo to use Rational() instead of Rational.new! due to "private method new!" in Ruby 1.9 - Added ^object_id$ as ignore pattern to fixing "redefining object_id" issue in Ruby 1.9
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-05-19 19:07:01 -07:00
Jeremy Kemper
f122ca5874
Ruby 1.9 compat: don't shadow local with block var
2008-05-01 14:05:55 -07:00
Geoff Buesing
2ccfcc42b0
TZInfo: Removing unneeded TimezoneProxy class
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9153 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 23:49:52 +00:00
Geoff Buesing
9c124a98b3
TZInfo: Removing unneeded TimezoneIndexDefinition, since we're not including Indexes::Timezones
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 23:27:17 +00:00
Geoff Buesing
d4493bc562
Bundling abbreviated version of TZInfo gem 0.3.8: only the classes and zone definitions required to support Rails time zone features are included. If a recent version of the full TZInfo gem is installed, this will take precedence over the bundled version
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 22:24:35 +00:00
Jeremy Kemper
09d98f1331
Bundled memcache client consistently returns server responses and checks for errors
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-01 08:25:46 +00:00
David Heinemeier Hansson
2a9ad9ccbc
Moved the caching stores from ActionController::Caching::Fragments::* to ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 21:05:12 +00:00
David Heinemeier Hansson
9d56d12360
Remove things that trip up RDoc
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-09 20:06:36 +00:00
Jeremy Kemper
aa4165cb7e
Bundle xml-simple 1.0.11
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-10 23:02:11 +00:00
Jeremy Kemper
bf724d4acc
Update bundled xml-simple to 1.0.11 and prefer installed gems
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-10 23:01:55 +00:00
Jeremy Kemper
e7040b09e8
Rebundle Builder 2.1.2 but prefer a newer RubyGem if available.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-10 23:01:41 +00:00
Jeremy Kemper
1f5c4365a7
Unbundle Builder in favor of a gem dependency.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 01:05:42 +00:00
David Heinemeier Hansson
e3b49c052b
Fixed spelling errors ( closes #9706 ) [tarmo/rmm5t]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 14:18:47 +00:00
Jeremy Kemper
041b9b8a1c
Some 1.9 forward compatibility
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-14 00:34:43 +00:00
Sam Stephenson
3202fbabe6
Refactor ActiveSupport::JSON to be less obtuse. Add support for JSON decoding by way of Syck with ActiveSupport::JSON.decode(json_string). Prevent hash keys that are JavaScript reserved words from being unquoted during encoding.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-18 07:05:58 +00:00
David Heinemeier Hansson
0aa0c84c17
Nodoc the irrelevant (from 1.2)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-26 21:37:38 +00:00
Jeremy Kemper
7b07baac27
Unbundle flexmock.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5917 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-13 07:15:07 +00:00
David Heinemeier Hansson
7ed7930769
Make RDoc not spew errors on install because of HTML comments in code comments
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-31 19:28:28 +00:00
Michael Koziarski
ea433f15bf
update XmlSimple to 1.0.10. Closes #6532 . [nicksieger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 20:10:53 +00:00
Jeremy Kemper
7ca2b657f0
Update bundled flexmock to latest 0.4.3.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-11-02 09:59:52 +00:00
Jeremy Kemper
965ae90bc6
Eliminate Active Support warnings.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-08-29 08:24:04 +00:00
David Heinemeier Hansson
36dc94a6a1
Added Hash.create_from_xml(string) which will create a hash from a XML string and even typecast if possible [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-16 10:07:13 +00:00
David Heinemeier Hansson
7c326a3b54
Added Jim Weirich's excellent FlexMock class to vendor (Copyright 2003, 2004 by Jim Weirich (jim@weriichhouse.org)) -- it's not automatically required, though, so require 'flexmock' is still necessary [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-06-16 09:55:18 +00:00
David Heinemeier Hansson
71a570ffd7
Updated to Builder 2.0 [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4260 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-25 02:47:44 +00:00
Rick Olson
47ffc04621
move vendor inside lib so that rake freeze_edge works
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-08 16:54:57 +00:00