sshelake / jquery-formatcurrency

Automatically exported from code.google.com/p/jquery-formatcurrency
GNU General Public License v3.0
0 stars 0 forks source link

Symbols settings priority - probleming customizing region symbols #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, the following priority is being used in the symbols setting:
  1. defaults
  2. default region
  3. custom symbols
  4. region symbols (with the culture thing)

This does not allow the customization of the region. In my case, I'd like to 
use "pt-BR" region, but remove only the "R$", so I used:
.formatCurrency({ symbol:"", region:"pt-BR" });

When using the region, the custom settings are overrided. As the custom symbols 
are the most specific, I'd like to suggest the following alteration in the 
priority order of symbol settings: 
  1. defaults
  2. default region
  3. region symbols (with the culture thing)
  4. custom symbols

Notice the alteration of points 3 e 4, making it possible to customize the 
regions. Please, let me hear the ressonancy on this topic.

Cheers,
CaioToOn!

Original issue reported on code.google.com by caiot...@gmail.com on 14 Dec 2010 at 1:34

GoogleCodeExporter commented 8 years ago
I also needed this and propose the following patch.

Original comment by hellosi...@gmail.com on 9 Dec 2011 at 4:07

Attachments: