aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations_i18n_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* I18n: Introduce I18n.load_path in favor of I18n.load_translations and change ↵Sven Fuchs2008-09-201-1/+5
| | | | | | Simple backend to load translations lazily. [#1048 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* add activerecord tests to make sure the deprecated %s and %d interpolation ↵Sven Fuchs2008-09-101-1/+15
| | | | | | | | syntax still works [#1016 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* add activerecord tests for deprecation of %s and %d in error messages (and ↵Sven Fuchs2008-09-101-0/+12
| | | | | | translations in general) Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* translates when a message symbol has been set on builtin validationsIain Hecker2008-08-311-0/+33
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* strip trailing whitespaceJeremy Kemper2008-08-251-157/+157
|
* Ruby 1.9 compat: fix test error masked by old String#each behaviorJeremy Kemper2008-08-251-1/+1
|
* Custom error messages scope improvedIain Hecker2008-08-211-23/+75
|
* Locale file changed to yamlIain Hecker2008-08-201-1/+1
|
* Added :value as interpolation variable available to error messagesIain Hecker2008-08-201-2/+2
|
* Introduced AR::Base.human_name to validationsIain Hecker2008-08-201-2/+2
|
* Cleaned up ActiveRecord i18n scopingIain Hecker2008-08-141-75/+80
|
* fixing unit tests for active_record validations_i18nSven Fuchs2008-08-131-2/+2
|
* fix validations_i18n tests for changed locale file formatSven Fuchs2008-08-131-1/+1
|
* update i18n usage for pluralization hashes (api change)Sven Fuchs2008-08-101-10/+188
|
* align with changes in i18nSven Fuchs2008-07-061-3/+3
|
* use :default for human_attribute_nameSven Fuchs2008-07-041-1/+1
|
* remove core extensions in favor of I18n#translate and I18n#localizeSven Fuchs2008-07-021-1/+1
|
* Make sure mocha is availableLuca Guidi2008-06-271-266/+310
|
* rather cosmetic improvements of test coverageSven Fuchs2008-06-231-3/+59
|
* incorporate #translate usage with several default keysSven Fuchs2008-06-211-51/+35
| | | | | (use first default key that resolves to a translation). this might, depending on the backend implementation save some expensive lookups (like db lookups)
* Renamed lang/ to locale/ because that's what we seem toSven Fuchs2008-06-211-1/+1
| | | | | | standarize on. Also, in future this place can be used for data/code that's not literally translations but conceptually belongs to the locale (like custom pluralization algorithms etc.).
* Changed process of storing translations from theSven Fuchs2008-06-211-40/+40
| | | | | | | | | 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.
* rename Backend::Simple#add_translations to set_translationsSven Fuchs2008-06-201-40/+40
| | | | because it overwrites existing translations
* integrating I18n into RailsSven Fuchs2008-06-191-0/+539