aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/number_helper_i18n_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Infer currency negative format from positive one.Tsutomu Kuroda2012-01-051-0/+7
| | | | | | | | When a locale file sets the format of the positive currency value as '%n %u', the default negative currency format should be '-%n %u'. Cherry-picked from master (6724c8c8)
* Added :negative_format option to number_to_currency function [#5894 ↵Don Wilson2010-11-021-1/+4
| | | | | | state:resolved] Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* Rename tests to avoid name collisions and warnings when running rake task.Emilio Tagua2010-09-281-5/+5
|
* Added default currency values to NumberHelper and pass them to I18n.translateSantiago Pastorino2010-05-171-0/+17
| | | | | | [#4604 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename unsignificant to insignificant.José Valim2010-03-231-4/+4
|
* Adds number_to_human and several improvements in NumberHelper. [#4239 ↵Bernardo de Pádua2010-03-221-51/+77
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-55/+53
|
* Improve i18n support for number_to_human_size helper:Yaroslav Markin2009-01-271-5/+19
| | | | | | | | | | | | * now using pluralization properly * storage unit translations moved to number.human.storage_units.units * introduced number.human.storage_units.format for languages that do not follow "{{number}} {{unit}}" format (Japanese) NOTE: I18n table changed, you will need to update your translations. [#1634 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add i18n for number_to_human_size() helper storage units. Translation key is ↵Yaroslav Markin2008-11-231-0/+3
| | | | | | | | number.human.storage_units. [#1448 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* use :en as a default locale (in favor of :en-US)Sven Fuchs2008-11-181-15/+15
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Fixed i18n bulk translate issues in NumberHelperClemens Kofler2008-08-041-13/+13
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Updated NumberHelper: Full i18n support (except number_to_phone), ↵Clemens Kofler2008-07-291-5/+41
| | | | | | consolidated API (almost all methods now support :precision, :delimiter and :separator). Added deprecation notices for old API. Added tests for new options [#716 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* align with changes in i18nSven Fuchs2008-07-061-1/+1
|
* Make sure mocha is availableLuca Guidi2008-06-271-7/+9
|
* update tests according to removal of self.locale from helpersSven Fuchs2008-06-231-11/+0
|
* check self.locale instead of request.locale in helpersSven Fuchs2008-06-221-3/+3
|
* Changed process of storing translations from theSven Fuchs2008-06-211-1/+1
| | | | | | | | | 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-1/+1
| | | | because it overwrites existing translations
* integrating I18n into RailsSven Fuchs2008-06-191-0/+27