jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Sonar Plugins
  • Sonar Plugins
  • SONARPLUGINS-172

Support for other currencies

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Wish Wish
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: TECHDEBT-0.3
  • Fix Version/s: None
  • Component/s: Technical Debt
  • Labels:
    None
  • Number of attachments :
    2

Description

Would it make sense to allow a configuration value for the currency in use?

It probably seems silly, but living in a country with a different currency, the $ sign in front of the debt always confuses you a little.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    currency.patch
    14/Aug/09 12:49 PM
    4 kB
    Stephan Erlank
  2. File
    diff.technical-debt
    16/Apr/10 7:02 AM
    6 kB
    Benoit Sibaud

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Stephan Erlank added a comment - 14/Aug/09 12:49 PM

Initial patch attached.

Show
Stephan Erlank added a comment - 14/Aug/09 12:49 PM Initial patch attached.
Hide
Permalink
Taciano Tres added a comment - 21/Aug/09 4:30 PM

Why not use NumberFormat#getCurrencyInstance(java.util.Locale) (http://java.sun.com/j2se/1.4.2/docs/api/java/text/NumberFormat.html#getCurrencyInstance(java.util.Locale)) to format the values? Wouldn't solve the problem?

Show
Taciano Tres added a comment - 21/Aug/09 4:30 PM Why not use NumberFormat#getCurrencyInstance(java.util.Locale) ( http://java.sun.com/j2se/1.4.2/docs/api/java/text/NumberFormat.html#getCurrencyInstance(java.util.Locale )) to format the values? Wouldn't solve the problem?
Hide
Permalink
Stephan Erlank added a comment - 22/Aug/09 1:35 AM

That would be first prize, I just can't figure out how to do it in the .erb template. Maybe you can submit a patch?

Show
Stephan Erlank added a comment - 22/Aug/09 1:35 AM That would be first prize, I just can't figure out how to do it in the .erb template. Maybe you can submit a patch?
Hide
Permalink
Simon Brandhof added a comment - 24/Aug/09 2:36 AM

You can use the following code in ruby templates :

<%= t('number.currency.format.unit')-%>

Have a look at these files to get all the currencies by locale.

Show
Simon Brandhof added a comment - 24/Aug/09 2:36 AM You can use the following code in ruby templates : <%= t('number.currency.format.unit')-%> Have a look at these files to get all the currencies by locale.
Hide
Permalink
Benoit Sibaud added a comment - 16/Apr/10 7:02 AM

Up to date patch (SVN trunk)

Show
Benoit Sibaud added a comment - 16/Apr/10 7:02 AM Up to date patch (SVN trunk)

People

  • Assignee:
    Unassigned
    Reporter:
    Stephan Erlank
Vote (9)
Watch (7)

Dates

  • Created:
    06/Aug/09 10:49 AM
    Updated:
    16/Apr/10 7:02 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.